DestinationSer
@echo off
- Joined
- Mar 7, 2009
- Messages
- 2,806
- Solutions
- 1
- Reaction score
- 676
Is there possible to make a tile who just allows you to go in if u have a certain amount of health or mana?
local health = 1000 -- change this
function onStepIn(cid, item, position, fromPosition)
if getCreatureHealth(cid) >= health then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have more than ".. health .." you can pass.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have ".. getCreatureHealth(cid) .." you need ".. health .." to pass.")
doTeleportThing(cid, fromPosition)
end
return true
end