Ir para conteúdo
  • 0

Addon doll


Leofeli

Pergunta

8 respostass a esta questão

Posts Recomendados

  • 0

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.

 

Link para o comentário
Compartilhar em outros sites

  • 0

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 por EddyHavaiano
Link para o comentário
Compartilhar em outros sites

  • 0

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 por ScythePhantom
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...