Quando duelo as vezes da um bug que fala que nao pode usar fly,surf,ride porque ta em duelo sendo que o duelo ja tenha terminado. minhas scripts são essas.
function onThink(cid, interval)
--//////////////////////// DUEL POR PARTY //////////////////////////////////////--
if isInParty(cid) and getPlayerStorageValue(cid, 52480) <= -1 then
local party = getPartyMembers(cid)
if #party >= 2 then
setPlayerStorageValue(cid, 52480, 1) --alterado v1.6 duel system
mano pq vc n pega a versao 1.6.1/2.6.1 do meu serv? o duel por party estava ms com alguns problemas.. e entao eu retirei ele e deixei soh por Order... ;x
info
Grupo: Campones
Registrado: 16/08/12
Posts: 92
Reputação: 0
Char no Tibia: Sedentaria
Quando duelo as vezes da um bug que fala que nao pode usar fly,surf,ride porque ta em duelo sendo que o duelo ja tenha terminado. minhas scripts são essas.
function onThink(cid, interval)
--//////////////////////// DUEL POR PARTY //////////////////////////////////////--
if isInParty(cid) and getPlayerStorageValue(cid, 52480) <= -1 then
local party = getPartyMembers(cid)
if #party >= 2 then
setPlayerStorageValue(cid, 52480, 1) --alterado v1.6 duel system
if getPlayerStorageValue(cid, 52481) <= -1 then
setPlayerStorageValue(cid, 52481, getPlayerStorageValue(party[2], 52481))
end
doSendAnimatedText(getThingPos(cid), "BATTLE", COLOR_ELECTRIC)
return true
end
doPlayerSetVocation(cid, 8)
openChannelDialog(cid)
setPlayerStorageValue(cid, 52480, 1)
end
return true
end