GhostWD
I'm in love with the var_dump()
- Joined
- Jan 25, 2009
- Messages
- 185
- Solutions
- 6
- Reaction score
- 29
Hi there
i tried to write some simple script for test and it's not working XD
someone could help me with that?
tfs 0.4
i tried to write some simple script for test and it's not working XD
Lua:
local pos = {x=192,y=541,z=7}
function onPrepareDeath(cid, deathList)
if (getCreatureName(deathList[1]) == "xxx") then
doTeleportThing(cid, pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have been absorbed by "..getCreatureName(deathList[1])..". Now you must escape from him!")
doCreatureAddHealth(cid,5000)
return false
end
end
tfs 0.4
Last edited: