Ir para conteúdo

Featured Replies

Postado
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)

  • Respostas 13
  • Visualizações 1.9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • posta ai o teu script, deve ter configurado errado!!   eu arrumo ----------------------- edited ---------------------------     vou editar aqui e ja te mando, vc colocou

  • Teria que fazer pra cada item uma talkaction diferente...

  • female = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["o

Postado
  • Autor

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)

Postado

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

 

Postado
  • Autor
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.

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo