Tente assim nao sei se ira funfar!
function onStepIn(cid,item,pos)
if item.actionid == 4105 then
queststatus = getPlayerStorageValue(cid,4105)
if queststatus == -1 then
getPlayerPosition({x=1232,y=662,z=8})
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
Rep++


info
Grupo: Barão
Registrado: 07/10/07
Posts: 224
Reputação: +1
Olá;
fiz esse 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 endEle está sendo usado em um teleport, quando o player entra ele é jogado em um local onde tbm é sumonado um boss, que conforme esta no script é o Hide... até ai tudo bem.
Porém se alguem entra, e em seguida entra outro alguem, vao ser sumonados 2 Hides e haverá 2 players lá.
O que eu precisaria era que fosse adicionado nesse script algo que conferisse se há alguem já la matando o boss, acredito que seria algo como getplayer do ponto superior esquerdo ao ponto inferior direito da area onde fica o boss.
Enfim, se for possivel ajudar, pode ter certeza que terá meu REP+ e meus sinceros agradecimentos
Muito obrigado.