LE
pedido

Addon doll

Por Leofeli, 13 de nov. de 2013 em Scripts

resolvido
9
1.6k
LeofeliL
13 de novembro de 2013 às 16:34

Gostaria de saber como eu fasso para que o item addon doll não fassa mais os addons

 

Druid

Warrior

assassin

mage

 

e como eu fasso um doll que so da pra fazer esses 4 addons

ScythePhantomS
13 de novembro de 2013 às 18:53

Poste o seu ou use este:

 

 

function onSay(cid, words, param)

local femaleOutfits = {
["citizen"]={136},
["hunter"]={137},
["mage"]={138},
["knight"]={139},
["summoner"]={141},
["warrior"]={142},
["barbarian"]={147},
["druid"]={148},
["wizard"]={149},
["oriental"]={150},
["pirate"]={155},
["assassin"]={156},
["beggar"]={157},
["shaman"]={158},
["nightmare"]={269},
["jester"]={270},
["brotherhood"]={279},
["demonhunter"]={288},
["warmaster"]={336},
["yalaharian"]={324},
["wayfarer"]={366}
}
local maleOutfits = {
["citizen"]={128},
["hunter"]={129},
["mage"]={130},
["knight"]={131},
["summoner"]={133},
["warrior"]={134},
["barbarian"]={143},
["druid"]={144},
["wizard"]={145},
["oriental"]={146},
["pirate"]={151},
["assassin"]={152},
["beggar"]={153},
["shaman"]={154},
["nightmare"]={268},
["jester"]={273},
["brotherhood"]={278},
["demonhunter"]={289},
["warmaster"]={335},
["yalaharian"]={325},
["wayfarer"]={367}
}
local msg = {"Command requires a good param", "You don't have an addon doll", "Bad param", "Full addon set sucesfully added"}
local param = string.lower(param)
if(getPlayerItemCount(cid, 8982) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 8982, 1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 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_EVENT_ADVANCE, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2])
end

end

 

 

Caso queria excluir algum addon, apenas remova a parte á que se refere o mesmo, exemplo:

["citizen"]={136}, 

E caso queira editar o item referente ao addon doll, edite as partes em vermelho á seguir:

 

if(getPlayerItemCount(cid, 8982) > 0) then

if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 8982, 1)

 

Pronto, escolha o id do item e mude, espero ter o ajudado, Obrigado.

 

LeofeliL
13 de novembro de 2013 às 22:05

sim ok eu exclui o druid mage warrior e assassinm agr tem como eu fazer um doll que so de pra fazer esses 4 addons ?

EddyHavaianoE
14 de novembro de 2013 às 00:14

primeiro vá em "MEUOT/DATA/TALKACTIONS/SCRIPTS" depois copie algum arquivo .lua e renomeie para oque voce quiser no meu exemplo "superdoll" e adicione isso dentro..

 

 

 

function onSay(cid, words, param)

local femaleOutfits = {
["mage"]={138},
["warrior"]={142},
["druid"]={148},
["assassin"]={156},
}
local maleOutfits = {
["mage"]={130},
["warrior"]={134},
["druid"]={144},
["assassin"]={152},
}
local msg = {"Command requires a good param", "Você não tem addon doll", "Bad param", "Você recebeu seu addon full"}
local param = string.lower(param)
if(getPlayerItemCount(cid, 8982) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 8982, 1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 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_EVENT_ADVANCE, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2])
end

end

COMO EDITAR
if(getPlayerItemCount(cid, 8289) > 0) then - MUDE PARA O ID DE OUTRO DOLL AONDE ESTA EM AZUL
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 8982, 1) ALTERE PARA O ID DO DOLL QUE POIS NO PASSO ACIMA ..

 

 

Agora feche e salve.. e vá novamente em MEUOT/DATA/TALKACTIONS e abra o bloko de notas com nome talkactions e preocure por players e adicione esta tag

 

 

 

<talkaction words="!superaddon" event="script" value="superdoll.lua"/>

 

SE FUCIONOU NAO ESQUEÇA REP + :)

Editado Novembro 14 por EddyHavaiano

LeofeliL
14 de novembro de 2013 às 06:54

vou testar aki se der rep+ amg


sim mais tipo como eu tiro esses addon do outro doll ?

ScythePhantomS
14 de novembro de 2013 às 21:13

vou testar aki se der rep+ amg

 

sim mais tipo como eu tiro esses addon do outro doll ?

Addon doll com todos os addons, exceto "druid, assassin, warrior e mage"

 

 

function onSay(cid, words, param)

local femaleOutfits = {

["citizen"]={136},

["hunter"]={137},

["knight"]={139},

["summoner"]={141},

["barbarian"]={147},

["wizard"]={149},

["oriental"]={150},

["pirate"]={155},

["beggar"]={157},

["shaman"]={158},

["nightmare"]={269},

["jester"]={270},

["brotherhood"]={279},

["demonhunter"]={288},

["warmaster"]={336},

["yalaharian"]={324},

["wayfarer"]={366}

}

local maleOutfits = {

["citizen"]={128},

["hunter"]={129},

["knight"]={131},

["summoner"]={133},

["barbarian"]={143},

["wizard"]={145},

["oriental"]={146},

["pirate"]={151},

["beggar"]={153},

["shaman"]={154},

["nightmare"]={268},

["jester"]={273},

["brotherhood"]={278},

["demonhunter"]={289},

["warmaster"]={335},

["yalaharian"]={325},

["wayfarer"]={367}

}

local msg = {"Command requires a good param", "You don't have an addon doll", "Bad param", "Full addon set sucesfully added"}

local param = string.lower(param)

if(getPlayerItemCount(cid, 8982) > 0) then

if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then

doPlayerRemoveItem(cid, 8982, 1)

doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 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_EVENT_ADVANCE, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2])

end

end

 

 

E agora com apenas o druid, assassin, warrior e mage.

 

 

function onSay(cid, words, param)

local femaleOutfits = {

["mage"]={138},

["warrior"]={142},

["druid"]={148},

["assassin"]={156},

}

local maleOutfits = {

["mage"]={130},

["warrior"]={134},

["druid"]={144},

["assassin"]={152},

}

local msg = {"Command requires a good param", "Você não tem addon doll", "Bad param", "Você recebeu seu addon full"}

local param = string.lower(param)

if(getPlayerItemCount(cid, 8982) > 0) then

if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then

doPlayerRemoveItem(cid, 8982, 1)

doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 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_EVENT_ADVANCE, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2])

end

end

 

 

É isso, espero ter o ajudado.

Editado Novembro 14 por ScythePhantom

LeofeliL
16 de novembro de 2013 às 09:10

Testando


deu aki manw brg aki seu rep

Editado Novembro 16 por Leofeli

ScythePhantomS
16 de novembro de 2013 às 11:37

Obrigado brother, reportado para que movam.

2 meses depois...
zipter98Z
15 de janeiro de 2014 às 21:44

Tópico movido para a seção de dúvidas e pedidos resolvidos.