Ir para conteúdo
Banner com Efeitos

Featured Replies

  • Respostas 46
  • Visualizações 9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @lamina cuidado com double post amigo,se precisar acrescentar alguma coisa que esqueceu é só editar o ultimo post ! Leia as regras do fórum : http://www.tibiaking.com/forum/forum/23-regras-do-forum/

  • Esqueci uma virgula ali no script de cima! >.< ## Atualizado.     --- Imagem aqui usando o script acima:   Ta perfeito o script do Luan,  caso queira com todas as mounts é só usar o sc

  • muito bom ta bugado pra compra pelo gesior aki n chega isso me salvo reputado vlwss!!! Otimo Cara me ajudo muito vou ajuda tbm ae codigo atualizado versao 10.96 local mounts = { --[

  • 4 weeks later...
Postado
function onSay(cid, words, param)

local mounts = {
	["widow queen"] = {price = 0, id = 1},
	["racing bird"] = {price = 0, id = 2},
	["war bear"] = {price = 0, id = 3},
	["black sheep"] = {price = 0, id = 4},
	["midnight panther"] = {price = 0, id = 5},
	["draptor"] = {price = 0, id = 6},
	["titanica"] = {price = 0, id = 7},
	["tin lizzard"] = {price = 0, id = 8},
	["blazebringer"] = {price = 0, id = 9},
	["rapid boar"] = {price = 0, id = 10},
	["stampor"] = {price = 0, id = 11},
	["undead cavebear"] = {price = 0, id = 12},
	["donkey"] = {price = 0, id = 13},
	["tiger slug"] = {price = 0, id = 14},
	["uniwheel"] = {price = 0, id = 15},
	["crystal wolf"] = {price = 0, id = 16},
	["war horse"] = {price = 0, id = 17},
	["kingly deer"] = {price = 0, id = 18},
	["tamed panda"] = {price = 0, id = 19},
	["dromedary"] = {price = 0, id = 20},
	["scorpion king"] = {price = 0, id = 21},
	["fire war horse"] = {price = 0, id = 23},
	["shadow draptor"] = {price = 0, id = 24},
	["lady bug"] = {price = 0, id = 27},
	["manta ray"] = {price = 0, id = 28},
	["iron blight"] = {price = 0, id = 29},
	["magma crawler"] = {price = 0, id = 30},
	["dragonling"] = {price = 0, id = 31},
	["gnarlhound"] = {price = 0, id = 32},
	["red manta"] = {price = 0, id = 33},
	["metal bird"] = {price = 0, id = 34},
	["water buffalo"] = {price = 0, id = 35}
}

local msg = {"Você pode escolher um: widow queen,racing bird,war bear,black sheep,midnight panther,draptor,titanica,tin lizzard,blazebringer e as outras montarias existentes! Para ver todas existentes confiram em: http://www.tibiawiki.com.br/Montarias", "Voce não possui um mount doll.", "Parametro invalido.", "Você recebeu uma nova montaria!","Você ja possui esta mount."}
local param = string.lower(param)
local t = mounts[param]

if(getPlayerItemCount(cid, 13030) > 0) then
	if(param ~= "" and t) then
		if t and not getPlayerMount(cid, t.id) then
			doPlayerRemoveItem(cid, 13030, 1)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
			doPlayerAddMount(cid, t.id)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
	end
else
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
return true
end 

sim eu to asunado assim olha !mount "black sheep

 

Tente essa:

 

function onSay(cid, words, param)

local mounts = {
	["widow queen"] = {price = 0, id = 1},
	["racing bird"] = {price = 0, id = 2},
	["war bear"] = {price = 0, id = 3},
	["black sheep"] = {price = 0, id = 4},
	["midnight panther"] = {price = 0, id = 5},
	["draptor"] = {price = 0, id = 6},
	["titanica"] = {price = 0, id = 7},
	["tin lizzard"] = {price = 0, id = 8},
	["blazebringer"] = {price = 0, id = 9},
	["rapid boar"] = {price = 0, id = 10},
	["stampor"] = {price = 0, id = 11},
	["undead cavebear"] = {price = 0, id = 12},
	["donkey"] = {price = 0, id = 13},
	["tiger slug"] = {price = 0, id = 14},
	["uniwheel"] = {price = 0, id = 15},
	["crystal wolf"] = {price = 0, id = 16},
	["war horse"] = {price = 0, id = 17},
	["kingly deer"] = {price = 0, id = 18},
	["tamed panda"] = {price = 0, id = 19},
	["dromedary"] = {price = 0, id = 20},
	["scorpion king"] = {price = 0, id = 21},
	["fire war horse"] = {price = 0, id = 23},
	["shadow draptor"] = {price = 0, id = 24},
	["lady bug"] = {price = 0, id = 27},
	["manta ray"] = {price = 0, id = 28},
	["iron blight"] = {price = 0, id = 29},
	["magma crawler"] = {price = 0, id = 30},
	["dragonling"] = {price = 0, id = 31},
	["gnarlhound"] = {price = 0, id = 32},
	["red manta"] = {price = 0, id = 33},
	["metal bird"] = {price = 0, id = 34},
	["water buffalo"] = {price = 0, id = 35}
}

local msg = {"Msg aqui", "Voce não possui um mount doll.", "Parametro invalido.", "Você recebeu uma nova montaria!","Você ja possui esta mount."}
local param = string.lower(param)
local t = mounts[param]

if(getPlayerItemCount(cid, 13030) > 0) then
	if(param ~= "" and t) then
		if t and not getPlayerMount(cid, t.id) then
			doPlayerRemoveItem(cid, 13030, 1)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
			doPlayerAddMount(cid, t.id)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
	end
else
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
return true
end

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

Postado

cara, ele não fica certo no meu ot

funciona umas mounts, e outras não...

umas que eu editei no meu client...

 

function onSay(cid, words, param)



local mounts = {
["widow queen"] = {price = 0, id = 1},
["racing bird"] = {price = 0, id = 2},
["war bear"] = {price = 0, id = 3},
["black sheep"] = {price = 0, id = 4},
["midnight panther"] = {price = 0, id = 5},
["draptor"] = {price = 0, id = 6},
["titanica"] = {price = 0, id = 7},
["tin lizzard"] = {price = 0, id = 8},
["blazebringer"] = {price = 0, id = 9},
["rapid boar"] = {price = 0, id = 10},
["stampor"] = {price = 0, id = 11},
["undead cavebear"] = {price = 0, id = 12},
["donkey"] = {price = 0, id = 13},
["tiger slug"] = {price = 0, id = 14},
["uniwheel"] = {price = 0, id = 15},
["crystal wolf"] = {price = 0, id = 16},
["war horse"] = {price = 0, id = 17},
["kingly deer"] = {price = 0, id = 18},
["tamed panda"] = {price = 0, id = 19},
["dromedary"] = {price = 0, id = 20},
["scorpion king"] = {price = 0, id = 21},
["fire war horse"] = {price = 0, id = 23},
["shadow draptor"] = {price = 0, id = 24},
["lady bug"] = {price = 0, id = 27},
["manta ray"] = {price = 0, id = 28},
["iron blight"] = {price = 0, id = 29},
["magma crawler"] = {price = 0, id = 30},
["dragonling"] = {price = 0, id = 31},
["gnarlhound"] = {price = 0, id = 32},
["red manta"] = {price = 0, id = 33},
["metal bird"] = {price = 0, id = 34},
["water buffalo"] = {price = 0, id = 35},
["Tombstinger"] = {price = 0, id = 36},
["Platesaurian"] = {price = 0, id = 37},
["Ursagrodon"] = {price = 0, id = 38},
["The Hellgrip"] = {price = 0, id = 39},
["Lion"] = {price = 0, id = 40},
["Desert King"] = {price = 0, id = 41},
["Shock Head"] = {price = 0, id = 42},
["Blue Draptor"] = {price = 0, id = 43},
["War Draptor"] = {price = 0, id = 44},
["Black Panther"] = {price = 0, id = 45},
["Carapasaurus"] = {price = 0, id = 46}
}

local msg = {"Msg aqui", "You Dont have mount doll.", "Invalid param.", "You get a new mount!", "You already have this mount."}
local param = string.lower(param)
local t = mounts[param]

if(getPlayerItemCount(cid, 13030) > 0) then
if(param ~= "" and t) then
if t and not getPlayerMount(cid, t.id) then
doPlayerRemoveItem(cid, 13030, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), 31)
doPlayerAddMount(cid, t.id)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
return true
end

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

Se Ajudei Rep+ pra mim ^^

tumblr_lyd1xtGgx81qf9l6uo1_500.gif

  • 1 month later...
Postado

Tem como fazer pra quando o player dar use no item, adicionar a mount ?

Antica Global - Server Online

 

SITE: http://anticaglobal.com/

IP: anticaglobal.com
EXP: 999x [sTAGES]
ML: 300x
SKILL: 500x
LOOT: 10x
 
VERSÃO: 10.77
PORTA: 7171
 
Stages:
1 - 8 level, 999x
9 - 20 level, 950x
21 - 50 level, 800x
51 - 100 level, 750x
101 - 130 level, 650x
131 - 180 level, 550x
181 - 230 level, 450x
231 - 300 level, 350x
301+ level, 300x
 

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.6k

Informação Importante

Confirmação de Termo