- Forums
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Solucion Player sin Portrait
IR
moveevent
Solucion Player sin Portrait
By IrvingAzaelSG, 18 de set. de 2013 in Actions e Talkactions
error portrait
solucionado
item not found
script
1
1.2k
By IrvingAzaelSG, 18 de set. de 2013 in Actions e Talkactions
info
Group: Campones
Joined: 08/03/12
Posts: 13
Reputation: 0
Ultimamente en mi server tenia este problema
Que es cuando el player no tiene portrait.
Ahora agreguen este en movements/scripts/portrait
function onEquip (cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if not getItemAttribute(item.uid, "poke") then return true end for i, x in pairs(fotos) do if string.lower(getItemAttribute(item.uid, "poke")) == string.lower(i) then doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[i]) return true end end end function onDeEquip(cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if not getItemAttribute(item.uid, "poke") then return true end doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEGS).uid, 2395) if not doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEGS).uid, 2395) then doPlayerAddItem(cid, 2395, 1) return true end endAl momento de cambiar pokemon cuando no tenga portrait le agregare el portrait!!