@edit
em talkactions.xml adicione a seguinte tag:
<talkaction words="!addon" event="script" value="addondoll.lua"/>
Logo depois crie um arquivo com o nome de addondoll.lua , com o seguinte script dentro:
function onSay(cid, words, param)
local femaleOutfits = { ["all"]={136}, ["all"]={137}, ["all"]={138}, ["all"]={139}, ["all"]={140}, ["all"]={141}, ["all"]={142}, ["all"]={147}, ["all"]={148}, ["all"]={149}, ["all"]={150}, ["all"]={155}, ["all"]={156}, ["all"]={157}, ["all"]={158}, ["all"]={252}, ["all"]={269}, ["all"]={270}, ["all"]={279}, ["all"]={288}, ["all"]={324}, ["all"]={335} }
local maleOutfits = { ["all"]={128}, ["all"]={129}, ["all"]={130}, ["all"]={131}, ["all"]={132},["all"]={133}, ["all"]={134}, ["all"]={143}, ["all"]={144}, ["all"]={145}, ["all"]={146}, ["all"]={151}, ["all"]={152}, ["all"]={153}, ["all"]={154}, ["all"]={251}, ["all"]={268}, ["all"]={273}, ["all"]={278}, ["all"]={289}, ["all"]={325}, ["all"]={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
so dizer !addon all
AJUDEI?REP+







info
Grupo: Campones
Registrado: 05/12/11
Posts: 23
Reputação: +6
Olá, gostaria de um Addon Doll que quando eu disser !addonall eu receba todos os addons!