Ir para conteúdo

[Encerrado] outfit


lol08

Posts Recomendados

Gostaria de saber porque adiciono o addon doll e o addon nao entra no char nao aparece la fala que adc o item some mais o addon nada ? porfavor me ajudem

 

 

 

 

 

function onSay(cid, words, param)
local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={335} }
local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={336} }
local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"}
local param = string.lower(param)
if (not isPremium(cid)) then
doPlayerSendCancel(cid, "Você nao tem premium account.")
return TRUE
end
if(getPlayerItemCount(cid, 9693) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 9693, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
if(getPlayerSex(cid) == 0)then
doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
else
doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
end

Link para o comentário
Compartilhar em outros sites

tenta isto:

 

 

function onSay(cid, words, param)
local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={335} }
local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={336} }
local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"}
local param = string.lower(param)
if (not isPremium(cid)) then
doPlayerSendCancel(cid, "Você nao tem premium account.")
return true
end
if(getPlayerItemCount(cid, 9693) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 9693, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
if(getPlayerSex(cid) == 0)then
doPlayerAddAddons(cid, femaleOutfits[param][1], 3)
else
doPlayerAddAddons(cid, maleOutfits[param][1], 3)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
end
Link para o comentário
Compartilhar em outros sites

Gostaria de informar que vários servidores de pokémon usam um método de alteração de storage para adicionar e remover outfits, ao invés do uso da função doPlayerAddAddons. Talvez seja este o problema.

Se possível, poste seu outfits.xml.

Link para o comentário
Compartilhar em outros sites

<?xml version="1.0"?>

<outfits>

<!-- NORMAL -->


<outfit id="1">

<list gender="0" lookType="511" name="Trainer"/>

<list gender="1" lookType="510" name="Trainer"/>

</outfit>

<outfit id="2">

<list gender="0" lookType="3286" name="Elite Trainer"/>

<list gender="1" lookType="3286" name="Elite Trainer"/>

</outfit>

<outfit id="3" quest="181602">

<list gender="0" lookType="512" name="Rapper"/>

<list gender="1" lookType="545" name="Rapper"/>

</outfit>

<outfit id="4" quest="181601">

<list gender="0" lookType="4044" name="Sasuke"/>

<list gender="1" lookType="4044" name="Sasuke"/>

</outfit>

<outfit id="5" quest="181603">

<list gender="0" lookType="4045" name="Naruto"/>

<list gender="1" lookType="4045" name="Naruto"/>

</outfit>

<outfit id="6" quest="181604">

<list gender="0" lookType="605" name="Rocket"/>

<list gender="1" lookType="604" name="Rocket"/>

</outfit>

<outfit id="7" quest="181605">

<list gender="0" lookType="495" name="Adventurer"/>

<list gender="1" lookType="494" name="Adventurer"/>

</outfit>

<outfit id="8" quest="181606">

<list gender="0" lookType="4046" name="Demon"/>

<list gender="1" lookType="4046" name="Demon"/>

</outfit>

<outfit id="9" quest="181607">

<list gender="0" lookType="3283" name="Atletic"/>

<list gender="1" lookType="3284" name="Atletic"/>

</outfit>

<outfit id="10" quest="181608">

<list gender="0" lookType="519" name="Punk"/>

<list gender="1" lookType="518" name="Punk"/>

</outfit>

<outfit id="11">

<list gender="0" lookType="521" name="Fisher"/>

<list gender="1" lookType="520" name="Fisher"/>

</outfit>

<outfit id="12" quest="181610">

<list gender="0" lookType="3285" name="Mercenary"/>

<list gender="1" lookType="3285" name="Mercenary"/>

</outfit>

<outfit id="13" quest="181611">

<list gender="0" lookType="2451" name="Noiva"/>

<list gender="1" lookType="2451" name="Noiva"/>

</outfit>

<!-- PROMOTE -->


<outfit id="14" quest="181612">

<list gender="0" lookType="1149" name="Naturia"/>

<list gender="1" lookType="1159" name="Naturia"/>

</outfit>

<outfit id="15" quest="181613">

<list gender="0" lookType="1152" name="Volcanic"/>

<list gender="1" lookType="1154" name="Volcanic"/>

</outfit>

<outfit id="16" quest="181614">

<list gender="0" lookType="1146" name="Gardestrike"/>

<list gender="1" lookType="1155" name="Gardestrike"/>

</outfit>

<outfit id="17" quest="181615">

<list gender="0" lookType="1153" name="Malefic"/>

<list gender="1" lookType="1157" name="Malefic"/>

</outfit>

<outfit id="18" quest="181616">

<list gender="0" lookType="1148" name="Wingeon"/>

<list gender="1" lookType="1158" name="Wingeon"/>

</outfit>

<outfit id="19" quest="181617">

<list gender="0" lookType="1147" name="Raibolt"/>

<list gender="1" lookType="1160" name="Raibolt"/>

</outfit>

<outfit id="20" quest="181618">

<list gender="0" lookType="1145" name="Psycraft"/>

<list gender="1" lookType="1161" name="Psycraft"/>

</outfit>

<outfit id="21" quest="181619">

<list gender="0" lookType="1151" name="Seavell"/>

<list gender="1" lookType="1162" name="Seavell"/>

</outfit>

<outfit id="22" quest="181620">

<list gender="0" lookType="1150" name="Orebound"/>

<list gender="1" lookType="1156" name="Orebound"/>

</outfit>


<!-- PROMOTE RANK 5 -->


<outfit id="23" quest="181621">

<list gender="0" lookType="1437" name="Raibolt Master"/>

<list gender="1" lookType="1421" name="Raibolt Master"/>

</outfit>

<outfit id="24" quest="181622">

<list gender="0" lookType="1438" name="Seavell Master"/>

<list gender="1" lookType="1422" name="Seavell Master"/>

</outfit>

<outfit id="25" quest="181623">

<list gender="0" lookType="1434" name="Naturia Master"/>

<list gender="1" lookType="1423" name="Naturia Master"/>

</outfit>

<outfit id="26" quest="181624">

<list gender="0" lookType="1430" name="Malefic Master"/>

<list gender="1" lookType="1428" name="Malefic Master"/>

</outfit>

<outfit id="27" quest="181625">

<list gender="0" lookType="1432" name="Volcanic Superior"/>

<list gender="1" lookType="1425" name="Volcanic Superior"/>

</outfit>

<outfit id="28" quest="181626">

<list gender="0" lookType="1433" name="Wingeon Master"/>

<list gender="1" lookType="1424" name="Wingeon Master"/>

</outfit>

<outfit id="29" quest="181627">

<list gender="0" lookType="1436" name="Orebound Master"/>

<list gender="1" lookType="1427" name="Orebound Master"/>

</outfit>

<outfit id="30" quest="181628">

<list gender="0" lookType="1431" name="Gardestrike Master"/>

<list gender="1" lookType="1429" name="Gardestrike Master"/>

</outfit>

<outfit id="31" quest="181629">

<list gender="0" lookType="1435" name="Psycraft Master"/>

<list gender="1" lookType="1426" name="Psycraft Master"/>

</outfit>


<!-- PROMOTE MASTER -->


<outfit id="32" quest="181630">

<list gender="0" lookType="1437" name="Raibolt Master"/>

<list gender="1" lookType="1421" name="Raibolt Master"/>

</outfit>

<outfit id="33" quest="181631">

<list gender="0" lookType="1438" name="Seavell Master"/>

<list gender="1" lookType="1422" name="Seavell Master"/>

</outfit>

<outfit id="34" quest="181632">

<list gender="0" lookType="1434" name="Naturia Master"/>

<list gender="1" lookType="1423" name="Naturia Master"/>

</outfit>

<outfit id="35" quest="181633">

<list gender="0" lookType="1430" name="Malefic Master"/>

<list gender="1" lookType="1428" name="Malefic Master"/>

</outfit>

<outfit id="36" quest="181634">

<list gender="0" lookType="1432" name="Volcanic Superior"/>

<list gender="1" lookType="1425" name="Volcanic Superior"/>

</outfit>

<outfit id="37" quest="181635">

<list gender="0" lookType="1433" name="Wingeon Master"/>

<list gender="1" lookType="1424" name="Wingeon Master"/>

</outfit>

<outfit id="38" quest="181636">

<list gender="0" lookType="1436" name="Orebound Master"/>

<list gender="1" lookType="1427" name="Orebound Master"/>

</outfit>

<outfit id="39" quest="181637">

<list gender="0" lookType="1431" name="Gardestrike Master"/>

<list gender="1" lookType="1429" name="Gardestrike Master"/>

</outfit>

<outfit id="40" quest="181638">

<list gender="0" lookType="1435" name="Psycraft Master"/>

<list gender="1" lookType="1426" name="Psycraft Master"/>

</outfit>


<!-- GAMEMASTER -->


<outfit id="41" access = "4">

<list gender="0-3" lookType="664" name="GameMaster"/>

</outfit>

<outfit id="42" access = "4">

<list gender="1" lookType="610" name="Reporter"/>

</outfit>



<!-- NATAL -->


<outfit id="43" quest="181639">

<list gender="0" lookType="661" name="Christmas"/>

<list gender="1" lookType="662" name="Christmas"/>

</outfit>

<outfit id="44" quest="181640">

<list gender="0" lookType="1084" name="Christmas 2"/>

<list gender="1" lookType="1083" name="Christmas 2"/>

</outfit>


<!-- HALLOWEEN -->


<outfit id="45" quest="181641">

<list gender="0-3" lookType="1140" name="Mummy"/>

</outfit>

<outfit id="46" quest="181642">

<list gender="0" lookType="1190" name="Bruxa"/>

<list gender="1" lookType="1191" name="Dracula"/>

</outfit>

<outfit id="47" quest="181643">

<list gender="0" lookType="1188" name="Caveira"/>

<list gender="1" lookType="1189" name="Diaba"/>

</outfit>


<!-- CATCHER -->


<outfit id="48" quest="181644">

<list gender="0" lookType="1414" name="Catcher"/>

<list gender="1" lookType="1413" name="Catcher"/>

</outfit>


<!-- ESPECIAIS -->


<outfit id="49" quest="181645">

<list gender="0" lookType="1016" name="Hunter"/>

<list gender="1" lookType="1015" name="Hunter"/>

</outfit>

<outfit id="50" quest="181646">

<list gender="0" lookType="1035" name="Mergulhadora"/>

<list gender="1" lookType="1034" name="Mergulhador"/>

</outfit>

<outfit id="51" quest="181647">

<list gender="0" lookType="1408" name="Esquiadora"/>

<list gender="1" lookType="1407" name="Esquiador"/>

</outfit>

<outfit id="52" quest="181648">

<list gender="1" lookType="1441" name="Slash"/>

</outfit>

<outfit id="53" quest="181649">

<list gender="0" lookType="1442" name="Playboy"/>

</outfit>

<outfit id="54" quest="181650">

<list gender="1" lookType="1443" name="Vinganca"/>

</outfit>

<outfit id="55" quest="181651">

<list gender="1" lookType="1444" name="House"/>

</outfit>

<outfit id="56" quest="181652">

<list gender="0" lookType="1184" name="Police Officer"/>

<list gender="1" lookType="1183" name="Police Officer"/>

</outfit>

<outfit id="57" quest="181653">

<list gender="0" lookType="1466" name="Veteran Trainer"/>

<list gender="1" lookType="1465" name="Veteran Trainer"/>

</outfit>

<outfit id="58" quest="181654">

<list gender="0" lookType="1469" name="Assassin"/>

<list gender="1" lookType="1470" name="Assassin"/>

</outfit>

<outfit id="59" quest="181655">

<list gender="0" lookType="1498" name="Natal"/>

<list gender="1" lookType="1497" name="Natal"/>

</outfit>



</outfits>

Link para o comentário
Compartilhar em outros sites


local outfits = {

--["outfit_name"] = storage, --A storage é o atributo quest, de outfits.xml.

--Ex.:

["Naruto"] = 181603,

["Sasuke"] = 181601,

}

 

function onSay(cid, words, param)

local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"}

local param = string.lower(param)

if not isPremium(cid) then

doPlayerSendCancel(cid, "Você nao tem premium account.")

return true

end

if getPlayerItemCount(cid, 9693) > 0 then

if param ~= "" and outfits[param] then

doPlayerRemoveItem(cid, 9693, 1)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)

setPlayerStorageValue(cid, outfits[param], 1)

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])

end

return true

end

 

Editado por zipter98
Link para o comentário
Compartilhar em outros sites

Ta assim porem digito o !addon Blastoise e nao vai nem a pau fala que to escrevendo o nome errado



local outfits = {["Blastoise"] = 181656}


function onSay(cid, words, param)

local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"}

local param = string.lower(param)

if not isPremium(cid) then

doPlayerSendCancel(cid, "Você nao tem premium account.")

return true

end

if getPlayerItemCount(cid, 2110) > 0 then

if param ~= "" and outfits[param] then

doPlayerRemoveItem(cid, 2110, 1)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)

setPlayerStorageValue(cid, outfits[param], 1)

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])

end

return true

end

Link para o comentário
Compartilhar em outros sites

  • 1 month later...
  • 2 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...