English Cs2d Tibia ,Aquatic Monsters

4 replies
Goto Page
To the start Previous 1 Next To the start
01.03.13 09:58:03 pm
Up
eduxd0707
BANNED
Offline Off
I came up with a way to make the monsters Move on water''''

Open Monster.lua
lua/Cs2dtibia/monsters.lua

Edit Part
function Monster:move(dir, amt)

Replace the part

if tile(tilex, tiley, 'walkable') and tile(tilex, tiley, 'frame') ~= 34 and not gettile(tilex, tiley).SAFE then

For

if tile(tilex, tiley, 'walkable') and (tile(tilex, tiley, 'frame') ~= 34 or self.waterMonster == true ) and not gettile(tilex, tiley).SAFE then

And add ''waterMonster = true'' for the monsters you want to walk on water

Exanple

Normal
name = 'Bulbasaur', health = 100,

Aquatic
name = 'Squirtle', waterMonster = true, health = 100,
edited 1×, last 03.03.13 02:41:19 am
01.03.13 10:34:25 pm
Up
Alistaire
User
Offline Off
Your brain must be the size of two elephants and a monkey. You genius.
IMG:http://i.imgur.com/5zhwOTP.png
01.03.13 11:18:18 pm
Up
Ashelin
BANNED
Offline Off
user eduxd0707 has written:
I came up with a way to make the monsters walk on water


God or Satan?

P.S I'm going to regret this.
03.03.13 02:40:37 am
Up
eduxd0707
BANNED
Offline Off
user Ashelin has written:
user eduxd0707 has written:
I came up with a way to make the monsters walk on water


God or Satan?

P.S I'm going to regret this.


'-'
Belzubub
And Lucifer , not satan


------------------------
@user Alistaire:

I'm not a child like you
I'm mature and grown to respect and know you?
If you prefer to reply cursing me I'll answer nop
Google Translate*
;:: (\_(\
*: (=’ :’) :;*
•.. (,(”)(”)¤°. '-'
03.03.13 10:44:30 am
Up
Torque
User
Offline Off
Instead of:
Code:
1
2
3
if statement == true then
     ...
end

you should write:
Code:
1
2
3
if statement then
     ...
end


Good luck with your coding experiments!
Relax, relate, release. Visit: www.lsdservers.boards.net
To the start Previous 1 Next To the start