Forum

> > CS2D > General > Cs2d Tibia ,Aquatic Monsters
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Cs2d Tibia ,Aquatic Monsters

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Cs2d Tibia ,Aquatic Monsters

eduxd0707
BANNED Off Offline

Zitieren
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,
1× editiert, zuletzt 03.03.13 02:41:19

alt Re: Cs2d Tibia ,Aquatic Monsters

eduxd0707
BANNED Off Offline

Zitieren
user Ashelin hat geschrieben
user eduxd0707 hat geschrieben
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*
;:: (\_(\
*: (=’ :’) :;*
•.. (,(”)(”)¤°. '-'

alt Re: Cs2d Tibia ,Aquatic Monsters

Torque
User Off Offline

Zitieren
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!
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht