I have a problem with PZ, players can enter PZ with fight on and they get PZ, when they left fight is back ....
I though about making walkon event with pz tile but ... im not sure is it good idea, wouldnt it slow down server very much?
Maybe i got something wrong in source? (where to search for it? i checked tile.h, tile.cpp, players.cpp didnt see anything wrong there i guess)
Making script with pz pushback if in fight condition ?? But also have no idea how it shall look ...
Strange is cuz though that if i add PZ at mapeditor, it shoudlnt let players enter there if in fight etc but it does ....
Tfs 0.4 rev 3777 client 8.6
Tried:
function onThink (interval)
if isPlayer (cid) and (getTilePzInfo (getCreaturePosition (cid)) and
getCreatureCondition (cid, CONDITION_INFIGHT)) then
doTeleportThing (cid, fromPosition, false)
doPlayerSendTextMessage (cid, 25, "while you can't enter . ")
end
return true
end
No errors at console, tried with true / false but not works; x
Pergunta
malyfanek 0
I have a problem with PZ, players can enter PZ with fight on and they get PZ, when they left fight is back ....
I though about making walkon event with pz tile but ... im not sure is it good idea, wouldnt it slow down server very much?
Maybe i got something wrong in source? (where to search for it? i checked tile.h, tile.cpp, players.cpp didnt see anything wrong there i guess)
Making script with pz pushback if in fight condition ?? But also have no idea how it shall look ...
Strange is cuz though that if i add PZ at mapeditor, it shoudlnt let players enter there if in fight etc but it does ....
Tfs 0.4 rev 3777 client 8.6
Tried:
function onThink (interval)
if isPlayer (cid) and (getTilePzInfo (getCreaturePosition (cid)) and
getCreatureCondition (cid, CONDITION_INFIGHT)) then
doTeleportThing (cid, fromPosition, false)
doPlayerSendTextMessage (cid, 25, "while you can't enter . ")
end
return true
end
No errors at console, tried with true / false but not works; x
Editado por malyfanekLink para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados