MUTANO
New Member
Hello;
I made this script:
It is being used in a teleport, when the player enters it is played in a place where a boss is also summoned, as it is in the script is the Hide ... So far so good.
But if someone comes in, and then someone else comes, will be summoned 2 Hides and 2 players will be there.
What I needed was that something had been added in this script that checks if there is already someone killing her boss, I believe that would be something like getplayer the upper left to lower right of the area where the boss is.
Finally, if possible help, my sincere thanks
Thank you.
I made this script:
function onStepIn(cid,item,pos)
if item.actionid == 4105 then
queststatus = getPlayerStorageValue(cid,4105)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"Kill the boss Hide!!")
doSummonCreature("Hide", {x=1232,y=662,z=8})
doTeleportThing(cid, {x=1239,y=659,z=8})
setPlayerStorageValue(cid,4105,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"Has nothing.")
doTeleportThing(cid, {x=504,y=325,z=7})
end
end
return TRUE
end
It is being used in a teleport, when the player enters it is played in a place where a boss is also summoned, as it is in the script is the Hide ... So far so good.
But if someone comes in, and then someone else comes, will be summoned 2 Hides and 2 players will be there.
What I needed was that something had been added in this script that checks if there is already someone killing her boss, I believe that would be something like getplayer the upper left to lower right of the area where the boss is.
Finally, if possible help, my sincere thanks
Thank you.