Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Eu estou precisando de um script de addon doll para o meu ot server, só que tem um detalhe. Eu quero um script para 20 addons, ou seja 20 dolls diferentes para 20 addons.  Eu já tentei muito mas não consegui. Obrigado pela atenção!

Editado por luisfeliperodrigues2 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Moderador

Ele funcionaria quando o player tivesse o doll certo para o addon certo, ele usaria o doll com o comando !addon nomedoaddon.  Exemplo: !addon citizen.

 

Addons: citizen, hunter, mage, knight, nobleman, summoner, warrior, barbarian, druid, wizard, oriental, pirate, assassin, beggar, norseman, nightmare, jester, brotherhood, demonhunter, yalaharian.  Tanto male quanto female. 

Editado por luisfeliperodrigues2 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Moderador

female = { ["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}}

male = { ["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}}

msg = {"Addon nao encontrado!", "Voce não tem o Addon Doll!", "Falta parametros!", "Você recebeu seu addon!"} -- Mensagems

itemID = IDDOITEM -- ITEM

function onSay(cid, words, param)if (not isPremium(cid)) then

doPlayerSendCancel(cid, "Desculpe, apenas jogadores premium account podem comprar addons!.")

return TRUE

end

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

if(param ~= "" and male[param] and female[param]) then

doPlayerRemoveItem(cid, IDDOITEM, 1)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)

if(getPlayerSex(cid) == 0)then

doPlayerAddOutfit(cid, female[param][1], 3)

else

doPlayerAddOutfit(cid, male[param][1], 3)

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])

end

end

TALKACTION.XML

<talkaction words="!addon" script="AddonDoll.lua"/>

 

EDIT ISSO

female = {PONHA OS ADDONS Q VC QUER}

male = {PONHA OS ADDONS QUE VC QUER }

msg = {"Addon nao encontrado!", "Voce não tem o Addon Doll!", "Falta parametros!", "Você recebeu seu addon!"} -- Mensagems

itemID = IDDOITEM -- id do item que tem que ter para ganhar tal addon

 

 

 

para nos conhecer clica na imagem

 

wvwhp0.png

Link para o post
Compartilhar em outros sites

Exatamente. Eu tentei isso só que eu não consegui. Você poderia fazer a do addon citizen e do hunter para eu ter uma noção de como fazer as outras? Obrigado ai.

olha oq eu fiz.   o hunter está funcionando só que usando o item que era pra ser do citizen  e o citizen está dando item não encontrado!!!

 

 

 

 

 <talkaction words="!addon" script="Addoncitizen.lua"/>
    <talkaction words="!addon" script="Addonhunter.lua"/>

 

 

 

 

 

 

female = { ["hunter"]={137} }

male = { ["hunter"]={129} }

msg = {"Addon nao encontrado!", "Voce n&#227;o tem o Addon Doll!", "Falta parametros!", "Voc&#234; recebeu seu addon!"} -- Mensagems

itemID = 11138 -- ITEM

function onSay(cid, words, param)if (not isPremium(cid)) then

doPlayerSendCancel(cid, "Desculpe, apenas jogadores premium account podem comprar addons!.")

return TRUE

end

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

if(param ~= "" and male[param] and female[param]) then

doPlayerRemoveItem(cid, 11138, 1)

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)

if(getPlayerSex(cid) == 0)then

doPlayerAddOutfit(cid, female[param][1], 3)

else

doPlayerAddOutfit(cid, male[param][1], 3)

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])

end

end

 

 

 

female = { ["citizen"]={136} }

male = { ["citizen"]={128} }

msg = {"Addon nao encontrado!", "Voce n&#227;o tem o Addon Doll!", "Falta parametros!", "Voc&#234; recebeu seu addon!"} -- Mensagems

itemID = 2112 -- ITEM

function onSay(cid, words, param)if (not isPremium(cid)) then

doPlayerSendCancel(cid, "Desculpe, apenas jogadores premium account podem comprar addons!.")

return TRUE

end

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

if(param ~= "" and male[param] and female[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, female[param][1], 3)

else

doPlayerAddOutfit(cid, male[param][1], 3)

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])

end

end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Editado por luisfeliperodrigues2 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

vai terminando a lista dos addons

 

local addons = {
["citizen"] = {id = 2520, sex = {[0] = 136,[1] = 128}},
["hunter"] = {id = 2173, sex = {[0] = 137,[1] = 129}},
["mage"] = {id = 2493, sex = {[0] = 138,[1] = 130}}
}
function onSay(cid, words, param)
local param = param:lower()
if param == "" or not addons[param] then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true
end
local var =  addons[param]
if not doPlayerRemoveItem(cid, var.id, 1) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true
end
doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!")
return true
end

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
37 minutos atrás, Vodkart disse:

vai terminando a lista dos addons

 


local addons = {
["citizen"] = {id = 2520, sex = {[0] = 136,[1] = 128}},
["hunter"] = {id = 2173, sex = {[0] = 137,[1] = 129}},
["mage"] = {id = 2493, sex = {[0] = 138,[1] = 130}}
}
function onSay(cid, words, param)
local param = param:lower()
if param == "" or not addons[param] then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true
end
local var =  addons[param]
if not doPlayerRemoveItem(cid, var.id, 1) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true
end
doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!")
return true
end

Obrigado, deu certo!!

 

Editado por luisfeliperodrigues2 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

eu editei só que nem todos addons estão funcionando. oque tem de errado?

 

 

 

local addons = {
["citizen"] = {id = 2110, sex = {[0] = 136,[1] = 128}},
["hunter"] = {id = 10529, sex = {[0] = 137,[1] = 129}},
["mage"] = {id = 5903, sex = {[0] = 138,[1] = 130}},
["knight"]= {id = 11205, sex = {[0] = 139,[1] = 131}},
["Nobleman"]= {id = 10530, sex = {[0] = 140,[1] = 132}},
["Summoner"]= {id = 2322, sex = {[0] = 141,[1] = 133}},
["Warrior"]= {id = 10542, sex = {[0] = 142,[1] = 134}},
["Barbarian"]= {id = 10543, sex = {[0] = 147,[1] = 143}},
["Druid"]= {id = 11330, sex = {[0] = 148,[1] = 144}},
["Wizard"]= {id = 11250, sex = {[0] = 149,[1] = 145}},
["Oriental"]= {id = 11201, sex = {[0] = 150,[1] = 146}},
["Pirate"]= {id = 5810, sex = {[0] = 155,[1] = 151}},
["Assassin"]= {id = 6579, sex = {[0] = 156,[1] = 152}},
["Beggar"]= {id = 2108, sex = {[0] = 157,[1] = 153}},
["Shaman"]= {id = 6512, sex = {[0] = 138,[1] = 130}},
["Norsewoman"]= {id = 8982, sex = {[0] = 158,[1] = 154}},
["Nightmare"]= {id = 9019, sex = {[0] = 269,[1] = 268}},
["Jester"]= {id = 9693, sex = {[0] = 270,[1] = 273}},
["BrotherHood"]= {id = 11249, sex = {[0] = 279,[1] = 278}},
["DemonHunter"]= {id = 11138, sex = {[0] = 288,[1] = 289}},
["Yalaharian"]= {id = 2194, sex = {[0] = 324,[1] = 325}}
}
function onSay(cid, words, param)
local param = param:lower()
if param == "" or not addons[param] then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true
end
local var =  addons[param]
if not doPlayerRemoveItem(cid, var.id, 1) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true
end
doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!")
return true
end

Link para o post
Compartilhar em outros sites
Citar

Tenta aí:

local addons = {
["citizen"] = {id = 2110, sex = {[0] = 136,[1] = 128}},
["hunter"] = {id = 10529, sex = {[0] = 137,[1] = 129}},
["mage"] = {id = 5903, sex = {[0] = 138,[1] = 130}},
["knight"]= {id = 11205, sex = {[0] = 139,[1] = 131}},
["nobleman"]= {id = 10530, sex = {[0] = 140,[1] = 132}},
["summoner"]= {id = 2322, sex = {[0] = 141,[1] = 133}},
["warrior"]= {id = 10542, sex = {[0] = 142,[1] = 134}},
["barbarian"]= {id = 10543, sex = {[0] = 147,[1] = 143}},
["druid"]= {id = 11330, sex = {[0] = 148,[1] = 144}},
["wizard"]= {id = 11250, sex = {[0] = 149,[1] = 145}},
["oriental"]= {id = 11201, sex = {[0] = 150,[1] = 146}},
["pirate"]= {id = 5810, sex = {[0] = 155,[1] = 151}},
["assassin"]= {id = 6579, sex = {[0] = 156,[1] = 152}},
["beggar"]= {id = 2108, sex = {[0] = 157,[1] = 153}},
["shaman"]= {id = 6512, sex = {[0] = 138,[1] = 130}},
["norsewoman"]= {id = 8982, sex = {[0] = 158,[1] = 154}},
["nightmare"]= {id = 9019, sex = {[0] = 269,[1] = 268}},
["jester"]= {id = 9693, sex = {[0] = 270,[1] = 273}},
["brotherHood"]= {id = 11249, sex = {[0] = 279,[1] = 278}},
["demonHunter"]= {id = 11138, sex = {[0] = 288,[1] = 289}},
["yalaharian"]= {id = 2194, sex = {[0] = 324,[1] = 325}}
}
function onSay(cid, words, param)
local param = param:lower()
if param == "" or not addons[param] then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true
end
local var =  addons[param]
if not doPlayerRemoveItem(cid, var.id, 1) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true
end
doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!")
return true
end

 

Editado por Biinhows (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

quase lá. o !addon norsewoman  está dando addon do shaman. norseman, brotherhood e demonhunter não estão dando nenhum addon e continuam na bp. aparece a mensagem: not a god param. 

Editado por luisfeliperodrigues2 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

posta ai o teu script, deve ter configurado errado!!

 

eu arrumo

----------------------- edited ---------------------------

 

 

vou editar aqui e ja te mando, vc colocou os ids errado das outfits


local addons = {
	["citizen"] = {id = 2110, sex = {[0] = 136,[1] = 128}},
	["hunter"] = {id = 10529, sex = {[0] = 137,[1] = 129}},
	["mage"] = {id = 5903, sex = {[0] = 138,[1] = 130}},
	["knight"]= {id = 11205, sex = {[0] = 139,[1] = 131}},
	["nobleman"]= {id = 10530, sex = {[0] = 140,[1] = 132}},
	["noblewoman"]= {id = 10530, sex = {[0] = 140,[1] = 132}},
	["summoner"]= {id = 2322, sex = {[0] = 141,[1] = 133}},
	["warrior"]= {id = 10542, sex = {[0] = 142,[1] = 134}},
	["barbarian"]= {id = 10543, sex = {[0] = 147,[1] = 143}},
	["druid"]= {id = 11330, sex = {[0] = 148,[1] = 144}},
	["wizard"]= {id = 11250, sex = {[0] = 149,[1] = 145}},
	["oriental"]= {id = 11201, sex = {[0] = 150,[1] = 146}},
	["pirate"]= {id = 5810, sex = {[0] = 155,[1] = 151}},
	["assassin"]= {id = 6579, sex = {[0] = 156,[1] = 152}},
	["beggar"]= {id = 2108, sex = {[0] = 157,[1] = 153}},
	["shaman"]= {id = 6512, sex = {[0] = 158,[1] = 154}},
	["norseman"]= {id = 8982, sex = {[0] = 252,[1] = 251}},
	["norsewoman"]= {id = 8982, sex = {[0] = 252,[1] = 251}},
	["nightmare"]= {id = 9019, sex = {[0] = 269,[1] = 268}},
	["jester"]= {id = 9693, sex = {[0] = 270,[1] = 273}},
	["brotherhood"]= {id = 11249, sex = {[0] = 279,[1] = 278}},
	["demonhunter"]= {id = 11138, sex = {[0] = 288,[1] = 289}},
	["yalaharian"]= {id = 2194, sex = {[0] = 324,[1] = 325}},
	["warmaster"]= {id = 2194, sex = {[0] = 336,[1] = 335}},
    	["wayfarer"]= {id = 2194, sex = {[0] = 366,[1] = 367}}
}
function onSay(cid, words, param)
	local param = param:lower()
	if param == "" or not addons[param] then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true
	end
	local var = addons[param]
	if not doPlayerRemoveItem(cid, var.id, 1) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true
	end
	doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3)
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!")
	return true
end

 

!addon noblewoman ou !addon nobleman
!addon norseman ou !addon norsewoman

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

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
39 minutos atrás, Vodkart disse:

posta ai o teu script, deve ter configurado errado!!

 

eu arrumo

----------------------- edited ---------------------------

 

 

vou editar aqui e ja te mando, vc colocou os ids errado das outfits



local addons = {
	["citizen"] = {id = 2110, sex = {[0] = 136,[1] = 128}},
	["hunter"] = {id = 10529, sex = {[0] = 137,[1] = 129}},
	["mage"] = {id = 5903, sex = {[0] = 138,[1] = 130}},
	["knight"]= {id = 11205, sex = {[0] = 139,[1] = 131}},
	["nobleman"]= {id = 10530, sex = {[0] = 140,[1] = 132}},
	["noblewoman"]= {id = 10530, sex = {[0] = 140,[1] = 132}},
	["summoner"]= {id = 2322, sex = {[0] = 141,[1] = 133}},
	["warrior"]= {id = 10542, sex = {[0] = 142,[1] = 134}},
	["barbarian"]= {id = 10543, sex = {[0] = 147,[1] = 143}},
	["druid"]= {id = 11330, sex = {[0] = 148,[1] = 144}},
	["wizard"]= {id = 11250, sex = {[0] = 149,[1] = 145}},
	["oriental"]= {id = 11201, sex = {[0] = 150,[1] = 146}},
	["pirate"]= {id = 5810, sex = {[0] = 155,[1] = 151}},
	["assassin"]= {id = 6579, sex = {[0] = 156,[1] = 152}},
	["beggar"]= {id = 2108, sex = {[0] = 157,[1] = 153}},
	["shaman"]= {id = 6512, sex = {[0] = 158,[1] = 154}},
	["norseman"]= {id = 8982, sex = {[0] = 252,[1] = 251}},
	["norsewoman"]= {id = 8982, sex = {[0] = 252,[1] = 251}},
	["nightmare"]= {id = 9019, sex = {[0] = 269,[1] = 268}},
	["jester"]= {id = 9693, sex = {[0] = 270,[1] = 273}},
	["brotherhood"]= {id = 11249, sex = {[0] = 279,[1] = 278}},
	["demonhunter"]= {id = 11138, sex = {[0] = 288,[1] = 289}},
	["yalaharian"]= {id = 2194, sex = {[0] = 324,[1] = 325}},
	["warmaster"]= {id = 2194, sex = {[0] = 336,[1] = 335}},
    	["wayfarer"]= {id = 2194, sex = {[0] = 366,[1] = 367}}
}
function onSay(cid, words, param)
	local param = param:lower()
	if param == "" or not addons[param] then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true
	end
	local var = addons[param]
	if not doPlayerRemoveItem(cid, var.id, 1) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true
	end
	doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3)
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!")
	return true
end

 

!addon noblewoman ou !addon nobleman
!addon norseman ou !addon norsewoman

 

Perfeito, funcionou tudo. Muito obrigado mesmo, valeu ai pela atenção!!! Rep.

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.


  • Conteúdo Similar

    • Por Jaurez
      .
    • Por Cat
      Em alguns casos, o tibia 8.60 comum não abre de jeito nenhum no map editor, mesmo desmarcando check file signatures e configurando o path corretamente.
       
      Este é o client 8.60 adaptado para o Remere's Map Editor. Resolvi postar já que ele foi removido do site oficial do RME. (ficou apenas a versão para linux lá)
      Se estiver tendo problemas para abrir a versão 8.60, tente utilizar este.
                                                                                                                     
      Baixar o Tibia Client 8.60 que funciona no Remere’s Map Editor
      Essa versão do Tibia 8.60 client resolve o erro unsupported client version ou Could not locate tibia.dat and/or tibia.spr, please navigate to your tibia 8.60 installation folder.
       
      Downloads
      https://tibiaking.com/applications/core/interface/file/attachment.php?id=47333

      Scan: https://www.virustotal.com/gui/file/333e172ac49ba2028db9eb5889994509e7d2de28ebccfa428c04e86defbe15cc
       
    • Por danilo belato
      Fala Galera To Com um problema aki 
       
      quero exporta umas sprites de um server para colocar em outro 
       
      eu clico na sprites ai aparece tds a forma delas do lado de la >>
       
      ai eu clico nela e ponho a opiçao de export mais quando salvo a sprite ela n abri 
       
      aparece isso quando tento vê-la 
       
      visualização não disponível ( no formatos png e bitmap)
       
      Agora no formato idc fala que o paint n pode ler 
       
      me ajudem ae...
    • Por Vitor Bicaleto
      Galera to com o script do addon doll aqui, quando eu digito apenas "!addon" ele aparece assim: Digite novamente, algo está errado!"
      quando digito por exemplo: "!addon citizen" ele não funciona e não da nenhum erro
       
      mesma coisa acontece com o mount doll.. 
    • Por Ayron5
      Substitui uma stone no serve, deu tudo certo fora  esse  erro ajudem  Valendo  Rep+  Grato  

      Erro: data/actions/scripts/boost.lua:557: table index is nil
       [Warning - Event::loadScript] Cannot load script (data/actions/scripts/boost.lua)

      Script:
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo