- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Solucion Player sin Portrait
IR
moveevent
Solucion Player sin Portrait
Por IrvingAzaelSG, 18 de set. de 2013 em Actions e Talkactions
error portrait
solucionado
item not found
script
1
1.1k
Por IrvingAzaelSG, 18 de set. de 2013 em Actions e Talkactions
info
Grupo: Campones
Registrado: 08/03/12
Posts: 13
Reputação: 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!!