Forum

> > CS2D > General > Cs2d Tibia ,Aquatic Monsters
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Cs2d Tibia ,Aquatic Monsters

4 replies
To the start Previous 1 Next To the start

old Cs2d Tibia ,Aquatic Monsters

eduxd0707
BANNED Off Offline

Quote
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

old Re: Cs2d Tibia ,Aquatic Monsters

eduxd0707
BANNED Off Offline

Quote
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*
;:: (\_(\
*: (=’ :’) :;*
•.. (,(”)(”)¤°. '-'

old Re: Cs2d Tibia ,Aquatic Monsters

Torque
User Off Offline

Quote
Instead of:
1
2
3
if statement == true then
	...
end
you should write:
1
2
3
if statement then
	...
end

Good luck with your coding experiments!
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview