LucasFerraz
Systems Analyst
I need a script that:
1. When stepin player get teleport to a room and create a monster inside this room if have storage.(If player haven't storage he back to 'fromposition').
2. After 10mins IF player is in room yet he get teleported to a position.
3. Player can't enter if other player inside room.
4. If monster is alive inside he must be removed. (Maybe other player dead inside).
PS.layer must have storage to getin.
I made this script but it's not working.
1. When stepin player get teleport to a room and create a monster inside this room if have storage.(If player haven't storage he back to 'fromposition').
2. After 10mins IF player is in room yet he get teleported to a position.
3. Player can't enter if other player inside room.
4. If monster is alive inside he must be removed. (Maybe other player dead inside).
PS.layer must have storage to getin.
I made this script but it's not working.
Lua:
function onStepIn(cid, item, pos, fromPos)
if isPlayer(cid) and getCreatureStorage(cid, 65911) < 0 then
doTeleportThing(cid, {x=32442, y=31993, z=9})
doCreateMonster('The Horned Fox', {x=32440, y=31996, z=9})
setPlayerStorageValue(cid,75911,1)
doCreatureSay(cid, "You have ten minutes to kill and loot this boss, else you will lose that chance and will be kicked out.", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, fromPosition, CONST_ME_NONE)
end
end
if isPlayer(cid) and getCreatureStorage(cid, 75911) == 1 then
doCreatureSay(cid, "You already entered this room before.", TALKTYPE_ORANGE_1)
end
end
end
Last edited: