ZA
pedido

Addon Doll

Por Zamorak, 24 de jul. de 2012 em Scripts

8
1.5k
ZamorakZ
24 de julho de 2012 às 15:54

Olá, gostaria de um Addon Doll que quando eu disser !addonall eu receba todos os addons!

TchubakaT
24 de julho de 2012 às 16:41

@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+

Editado Julho 24 por Tchubaka

SkyLighS
24 de julho de 2012 às 16:47

Tchubaka

 

 

Suponho que voces nao leu o pedido dele ele quer 1 que add todas as addons nao 1 por 1 e também para de ficar pedindo rep coisa chata velho !

 

reportado

 

Zamorak tentarei fazer aki pra você

 

obg.

24 de julho de 2012 às 16:52

Tchubaka

 

Leia com mais atenção os pedidos para evitar posts desnecessários.

 

SkyLigh

 

Acredito que a intenção dele foi ajudar.

TchubakaT
24 de julho de 2012 às 16:53

desculpe a tela tava bugada so deu pra ler o pedido.

 

concertei. creio que dê. meus scripts estao la.

 

 

 

desculpa dnv.

Editado Julho 24 por Tchubaka

SkyLighS
24 de julho de 2012 às 16:57

Zamorak Criei Um aki pra você !

 

Não sei se você quer q cobre então eu botei pra não cobrar mas se querer que cobre so falar aki

 

function onSay(cid, words, param)
if doPlayerAddAddons(cid, 3) <= 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você Recebeu Todos Os Addons !")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HEARTS)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você Ja Usou O Comando")
end
return TRUE
end

 

vlw.

ZamorakZ
25 de julho de 2012 às 10:57

@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+

Valeu cara, funcionou direitinho, e SkyLigh , tentei o seu e não funcionou wacko.png mas valeu a tentativa

 

Tchubaka REP+!

SkyLighS
25 de julho de 2012 às 11:24

reportado pra moverem

duvida sanada