Talkactions.xml:
<talkaction words="!addon" event="script" value="addondoll"/>
data/actions/scripts/addondoll.lua:
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 AddonDoll!", "Bad param!", "Você recebeu seus 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
É só dizer: !addon all






info
Grupo: Campones
Registrado: 22/08/12
Posts: 67
Reputação: +6
Pessoal Eu queria o Script De Addon Doll
Obs: Tem que ser de todos Os Addon
REP+ pra quem Ajuda