Ir para conteúdo

changos

Membro
  • Registro em

  • Última visita

Solutions

  1. changos's post in (Resolvido)ITEM SKIN was marked as the answer   
    local dolls = { [6506] = {name='Noob',outfit = 19, voc={1,2,5,6}}, [11207] = {name='Puto',outfit = 9, voc={4,8}}, [9019] = {name='Pendejo',outfit = 12,voc={3,7}} } function onUse(cid,item,frompos,itemEx,topos) local r,v = dolls[item.itemid],getThingPos(cid) if r then if isInArray(r.voc,getPlayerVocation(cid)) then if getCreatureOutfit (cid).lookType ~= r.outfit then doCreatureChangeOutfit(cid, {lookType = r.outfit}) doPlayerSendTextMessage(cid,MESSAGE_FIRST,'Skin: '..r.name..'!') --doRemoveItem(item.uid,1) else doPlayerSendCancel(cid,'You already wear this outfit!') doSendMagicEffect(v,CONST_ME_POFF) end else doPlayerSendCancel(cid,'You have the wrong vocation!') doSendMagicEffect(v,CONST_ME_POFF) end else doPlayerSendCancel(cid,'Sorry not possible.') end return true end use this change the names and ids xd
    <action itemid="id;id;id" event="script" value="name.lua"/>
     
     
    with genders
     
    local dolls = { [6506] = {name='Noob',outfit = {18,19}, voc={1,2,5,6}}, [11207] = {name='Puto',outfit = {8,9}, voc={4,8}}, [9019] = {name='Pendejo',outfit = {11,12},voc={3,7}} } function onUse(cid,item,frompos,itemEx,topos) local r,v = dolls[item.itemid],getThingPos(cid) if r then if isInArray(r.voc,getPlayerVocation(cid)) then --for i = 1, 2 do if getCreatureOutfit (cid).lookType ~= r.outfit then doCreatureChangeOutfit(cid, {lookType = r.outfit[getPlayerSex(cid) + 1]}) doPlayerSendTextMessage(cid,MESSAGE_FIRST,'Skin: '..r.name..'!') --doRemoveItem(item.uid,1) else doPlayerSendCancel(cid,'You already wear this outfit!') doSendMagicEffect(v,CONST_ME_POFF) end --end else doPlayerSendCancel(cid,'You have the wrong vocation!') doSendMagicEffect(v,CONST_ME_POFF) end else doPlayerSendCancel(cid,'Sorry not possible.') end return true end  

Informação Importante

Confirmação de Termo