Ir para conteúdo
  • Cadastre-se

Ajuda como eu coloco addondoll no meu otserver


Posts Recomendados

Quero colocar addondoll no meu servidor mas ele nao tem nenhuma script para isso,ja tentei colocar algumas mas da erro o talkactions diz que nao emcontra o diretorio algum assim

Link para o post
Compartilhar em outros sites
function onSay(cid, words, param)

	local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["noblewoman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={336},["wayfarer"]={366}, ["afflicted"]={431}, ["elementalist"]={433}, ["deepling"]={464}, ["insectoid"]={466}, ["red baron"]={471}, ["crystal warlord"]={513}, ["soil guardian"]={514}, ["demon"]={542} }
	local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={335}, ["wayfarer"]={367}, ["afflicted"]={430}, ["elementalist"]={432}, ["deepling"]={463}, ["insectoid"]={465}, ["red baron"]={472}, ["crystal warlord"]={512}, ["soil guardian"]={516},["demon"]={541} }
	local player, param = Player(cid), string.lower(param)
    local addondoll_id = 9693
	
	if player:getItemCount(addondoll_id) > 0 then
        if param ~= "" and maleOutfits[param] and femaleOutfits[param] then
            local outfit = player:getSex() == 0 and femaleOutfits[param][1] or maleOutfits[param][1]
            if not player:hasOutfit(outfit, 3) then
                player:removeItem(addondoll_id, 1)
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!")
                Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
                player:addOutfitAddon(outfit, 3)
            else
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem este addon")
            end
        else
            player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!")
        end
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem addon doll!")
    end
end
<talkaction words="!addon" event="script" value="addondoll.lua"/>

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Link para o post
Compartilhar em outros sites

Lembre-se de por o Item no loot dos seus monstros. Para poder dropar e os players conseguirem fazer os determinados addons com o Addondoll.

 

O item id do addon Doll ( no caso do script do amigo acima ) é : id> 9693

 

É só você ir nos monstros que tem em seu mapa e que você queira que drope e por essa tag dentro do xml do monstro.

 

 

<item id="9693" chance="30000"/>

 

O que tá em vermelho é a chance do drop. Quando maior o numero, mais facil de ser dropado :)!.

Eu te Ajudei? Então solta aquele REP+ !!

Meus Tutoriais [Tutorial] Bug "Temple position is wrong" (MySql)

Outros:    [Meu Show OFF | Mapa próprio 8.6] 

Link para o post
Compartilhar em outros sites

vou tentar aqui so um momento


deu erro de novo vou mandar meu script pra vcs

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
    <!-- Gods -->
    <talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
    <talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
    <talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
    <talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
    <talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
    <talkaction log="yes" words="/skill;/addskill" access="5" event="script" value="skill.lua"/>
    <talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
    <talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

    <!-- Community Managers -->
    <talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>
    <talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>
    <talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>
    <talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>
    <talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
    <talkaction log="yes" words="/newtype;/o" access="4" event="script" value="newtype.lua"/>
    <talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
    <talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>
    <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
    <talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
    <talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>
    <talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
    <talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
    <talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>
    <talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>

    <!-- Gamemasters -->
    <talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
    <talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/light" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/t" access="3" event="script" value="teleporttown.lua"/>
    <talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
    <talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
    <talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
    <talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
    <talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
    <talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
    <talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
    <talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
    <talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
    <talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
    <talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
    <talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
    <talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
    <talkaction log="yes" words="/mute;/unmute" access="3" event="script" value="mute.lua"/>
    <talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>

    <!-- Senior Tutors -->
    <talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
    <talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
    <talkaction log="yes" words="/gethouse;/house" access="2" event="script" value="gethouse.lua"/>
    <talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>
    <talkaction log="yes" words="/ban" access="2" event="script" value="ban.lua"/>

    <!-- Tutors -->
    <talkaction log="yes" words="/baninfo;!baninfo" access="1" event="function" value="banishmentInfo"/>
    <talkaction log="yes" access="1" words="/pos;!pos" event="script" value="position.lua"/>

    <!-- Players -->
    <talkaction words="!frags;/frags" event="script" value="frags.lua"/>
    <talkaction words="!online;/online" event="script" value="online.lua"/>
    <talkaction words="!uptime;/uptime" event="script" value="uptime.lua"/>
    <talkaction words="!deathlist;/deathlist" event="script" value="deathlist.lua"/>
    <talkaction words="!pvp;/pvp" event="script" value="pvp.lua"/>
    <talkaction words="!q" event="script" value="money.lua"/>
    <talkaction words="!serverinfo;/serverinfo" event="script" value="serverinfo.lua"/>
    <talkaction words="!commands;/commands" event="script" value="commands.lua"/>
    <talkaction words="!software;/software" event="function" value="software"/>

    <!-- Houses -->
    <talkaction words="alevo grav" filter="word-spaced" event="function" value="houseBuy"/>
    <talkaction words="alito som" filter="word-spaced" event="function" value="houseSell"/>
    <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
    <talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
    <talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
    <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
    <talkaction words="alito sio" filter="word-spaced" event="script" value="leavehouse.lua"/>

    <!-- Guilds -->
    <talkaction words="!createguild;/createguild" event="function" value="guildCreate"/>
    <talkaction words="!joinguild;/joinguild" event="function" value="guildJoin"/>
    <talkaction words="/war" channel="0" event="script" value="war.lua"/>
    <talkaction words="/balance" channel="0" event="script" value="balance.lua"/>
 <talkaction words="!addon" event="script" value="addondoll.lua"/></talkactions>
 

Link para o post
Compartilhar em outros sites

Poem assim:

 

 

Poem assim:

 

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
    <!-- Gods -->
    <talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
    <talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
    <talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
    <talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
    <talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
    <talkaction log="yes" words="/skill;/addskill" access="5" event="script" value="skill.lua"/>
    <talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
    <talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

    <!-- Community Managers -->
    <talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>
    <talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>
    <talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>
    <talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>
    <talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
    <talkaction log="yes" words="/newtype;/o" access="4" event="script" value="newtype.lua"/>
    <talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
    <talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>
    <talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
    <talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
    <talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>
    <talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
    <talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
    <talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>
    <talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>

    <!-- Gamemasters -->
    <talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
    <talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/light" access="3" event="script" value="gamemaster.lua"/>
    <talkaction log="yes" words="/t" access="3" event="script" value="teleporttown.lua"/>
    <talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
    <talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
    <talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
    <talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
    <talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
    <talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
    <talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
    <talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
    <talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
    <talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
    <talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
    <talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
    <talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
    <talkaction log="yes" words="/mute;/unmute" access="3" event="script" value="mute.lua"/>
    <talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>

    <!-- Senior Tutors -->
    <talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
    <talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
    <talkaction log="yes" words="/gethouse;/house" access="2" event="script" value="gethouse.lua"/>
    <talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>
    <talkaction log="yes" words="/ban" access="2" event="script" value="ban.lua"/>

    <!-- Tutors -->
    <talkaction log="yes" words="/baninfo;!baninfo" access="1" event="function" value="banishmentInfo"/>
    <talkaction log="yes" access="1" words="/pos;!pos" event="script" value="position.lua"/>

    <!-- Players -->
    <talkaction words="!frags;/frags" event="script" value="frags.lua"/>

    <talkaction words="!addon" event="script" value="addondoll.lua"/>
    <talkaction words="!online;/online" event="script" value="online.lua"/>
    <talkaction words="!uptime;/uptime" event="script" value="uptime.lua"/>
    <talkaction words="!deathlist;/deathlist" event="script" value="deathlist.lua"/>
    <talkaction words="!pvp;/pvp" event="script" value="pvp.lua"/>
    <talkaction words="!q" event="script" value="money.lua"/>
    <talkaction words="!serverinfo;/serverinfo" event="script" value="serverinfo.lua"/>
    <talkaction words="!commands;/commands" event="script" value="commands.lua"/>
    <talkaction words="!software;/software" event="function" value="software"/>

    <!-- Houses -->
    <talkaction words="alevo grav" filter="word-spaced" event="function" value="houseBuy"/>
    <talkaction words="alito som" filter="word-spaced" event="function" value="houseSell"/>
    <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
    <talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
    <talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
    <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
    <talkaction words="alito sio" filter="word-spaced" event="script" value="leavehouse.lua"/>

    <!-- Guilds -->
    <talkaction words="!createguild;/createguild" event="function" value="guildCreate"/>
    <talkaction words="!joinguild;/joinguild" event="function" value="guildJoin"/>
    <talkaction words="/war" channel="0" event="script" value="war.lua"/>
    <talkaction words="/balance" channel="0" event="script" value="balance.lua"/>

</talkactions>

 

Lembrando que o script que o amigo mandou pra você, você deve salvar em Data>talkactoins>script   com o nome no arquivo.lua de: addondoll.lua

Eu te Ajudei? Então solta aquele REP+ !!

Meus Tutoriais [Tutorial] Bug "Temple position is wrong" (MySql)

Outros:    [Meu Show OFF | Mapa próprio 8.6] 

Link para o post
Compartilhar em outros sites

não deu certo mano ainda deu mesmo erro de diretorio vou tirar print


não deu certo mano ainda deu mesmo erro de diretorio vou tirar print

post-152543-0-37892300-1421427626_thumb.

Link para o post
Compartilhar em outros sites

Vai no arquivo addondoll.lua e dentro dele substitui por esse novo script:

 

 

function onSay(cid, words, param)

local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324} }
local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325} }
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, 2112) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 2112, 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

 

Depois vai em takactions.xml e adiciona essa tag:

 

(lembre-se de apagar a antiga Tag do outro post, pois ira dar conflito).

 

 

<talkaction words="!addon" event="script" value="addondoll.lua"/>

 

Obs: Caso você adicionou aquela tag que postei do monstro que foi essa:

 

 

 

<item id="9693" chance="30000"/>

 

Substitui o que tá em azul por : 2112  ( pois nesse script que te mandei o Id do item addon é 2112 ).

Editado por olokomeu (veja o histórico de edições)

Eu te Ajudei? Então solta aquele REP+ !!

Meus Tutoriais [Tutorial] Bug "Temple position is wrong" (MySql)

Outros:    [Meu Show OFF | Mapa próprio 8.6] 

Link para o post
Compartilhar em outros sites

O nome do script ta errado.

 

 

O nome tem que ser addondoll no formato .lua

e tem que estar na pasta scripts das talkactions.

Editado por Caronte (veja o histórico de edições)

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Link para o post
Compartilhar em outros sites

Acredito q ele está usando o nome addondoll.lua, eu disse pra ele por ^^, mais ele fala q o erro persiste. Mandei um novo script para ele. Só não sei se pegou.

Eu te Ajudei? Então solta aquele REP+ !!

Meus Tutoriais [Tutorial] Bug "Temple position is wrong" (MySql)

Outros:    [Meu Show OFF | Mapa próprio 8.6] 

Link para o post
Compartilhar em outros sites

O erro fala explicitamente que não encontrou addondoll.lua

 

ou ele colocou no lugar errado,

ou o nome,

ou formato.

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96831
    Tópicos
    519571
    Posts
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo