Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Olá gente eu vim trazer aqui para você o NPC Mount 9.44!

Apoio: OTWorks

Atualização: 26/02/2012

  • Vai em "Data/NPC" Cria um documento XML e bota o nome "Mount" e colla isso aqui em baixo dentro.

<npc name="Mount" script="mounts.lua" walkinterval="2000" floorchange="0">

<health now="100" max="100"/>

<look type="146" head="24" body="59" legs="135" feet="0" addons="3" mount="426"/>

<parameters>

<parameter key="message_greet" value="Hi |PLAYERNAME|, I sell these mounts: {Widow Queen}, {Rapid Bird}, {War Bear}, {Black Sheep}, {Midnight Panther}, {Draptor}, {Titanica}, {Tin Lizzard}, {Blazebringer}, {Rapid Boar}, {Stampor}, {Undead Cavebear}, {Donkey}, {Tiger Slug}, {Uniwheel}, {Crystal Wolf}, {War Horse}, {Kingly Deer}, {Tamed Panda}, {Saddled Dromedary}, {Scorpion King}, {Rented Horse Brown Dark}, {Fire War Horse}, {Shadow Draptor}, {Rented Horse Gray} or {Rented Horse Brown}! - Speak the name of Mounts {nomemdamontaria}Ex: Draptor."/>

</parameters>

</npc>
  • Agora você vai em "Data/NPC/Scripts" E crie um arquivo .LUA de renomeia para "mounts" e cola isso aqui em baixo dentro.
local keywordHandler = KeywordHandler:new()


local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end

function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end

function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end

function onThink() npcHandler:onThink() end


function AddMount(cid, message, keywords, parameters, node) --by vodka

if(not npcHandler:isFocused(cid)) then

return false

end

if parameters.premium == true and not isPremium(cid) then

return true,npcHandler:say('Sorry,Only premium members buy this mount!', cid)

elseif not doPlayerRemoveMoney(cid, parameters.price) then

return true,npcHandler:say('Sorry You need '..parameters.price..' gps to buy this mount!', cid)

end

doPlayerAddMount(cid, parameters.mount)

npcHandler:say('Here is your mount!', cid)

npcHandler:resetNpc()

return true

end


keywordHandler:addKeyword({'mounts'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell these mounts: {Widow Queen}, {Rapid Bird}, {War Bear}, {Black Sheep}, {Midnight Panther}, {Draptor}, {Titanica}, {Tin Lizzard}, {Blazebringer}, {Rapid Boar}, {Stampor}, {Undead Cavebear}, {Donkey}, {Tiger Slug}, {Uniwheel}, {Crystal Wolf}, {War Horse}, {Kingly Deer}, {Tamed Panda}, {Saddled Dromedary}, {Scorpion King}, {Rented Horse Brown Dark}, {Fire War Horse}, {Shadow Draptor}, {Rented Horse Gray} or {Rented Horse Brown}!'})

local node1 = keywordHandler:addKeyword({'widow queen'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount widow queen?'})

node1:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 1,premium = false})

node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node2 = keywordHandler:addKeyword({'rapid bird'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount racing bird'})

node2:addChildKeyword({'yes'}, AddMount, {price = 20000,mount = 2,premium = false})

node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node3 = keywordHandler:addKeyword({'war bear'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount war Bear'})

node3:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 3,premium = false})

node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node4 = keywordHandler:addKeyword({'black sheep'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount black sheep?'})

node4:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 4,premium = false})

node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node5 = keywordHandler:addKeyword({'midnight panther'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount midnight panther?'})

node5:addChildKeyword({'yes'}, AddMount, {price = 20000,mount = 5,premium = false})

node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node6 = keywordHandler:addKeyword({'draptor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount draptor?'})

node6:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 6,premium = false})

node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node7 = keywordHandler:addKeyword({'titanica'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount titanica?'})

node7:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 7,premium = false})

node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node8 = keywordHandler:addKeyword({'tin lizzard'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount tin lizzard?'})

node8:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 8,premium = false})

node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node9 = keywordHandler:addKeyword({'blazebringer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount blazebringer?'})

node9:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 9,premium = false})

node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node10 = keywordHandler:addKeyword({'rapid boar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount rapid boar?'})

node10:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 10,premium = false})

node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node11 = keywordHandler:addKeyword({'stampor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount stampor?'})

node11:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 11,premium = false})

node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node12 = keywordHandler:addKeyword({'undead cavebear'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount undead cavebear?'})

node12:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 12,premium = false})

node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node13 = keywordHandler:addKeyword({'donkey'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the Donkey?'})

node13:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 13,premium = false})

node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node14 = keywordHandler:addKeyword({'tiger slug'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the tiger slug?'})

node14:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 14,premium = false})

node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node15 = keywordHandler:addKeyword({'uniwheel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the uniwheel?'})

node15:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 15,premium = false})

node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node16 = keywordHandler:addKeyword({'crystal wolf'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the crystal wolf?'})

node16:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 16,premium = false})

node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node17 = keywordHandler:addKeyword({'brown war horse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the brown war horse?'})

node17:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 17,premium = false})

node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node18 = keywordHandler:addKeyword({'kingly deer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the Kingly Deer?'})

node18:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 18,premium = false})

node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node19 = keywordHandler:addKeyword({'tamed panda'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the Tamed Panda?'})

node19:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 19,premium = false})

node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node20 = keywordHandler:addKeyword({'saddled dromedary'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the Saddled Dromedary?'})

node20:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 20,premium = false})

node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node21 = keywordHandler:addKeyword({'scorpion king'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the Scorpion King?'})

node21:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 21,premium = false})

node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node22 = keywordHandler:addKeyword({'rented horse brown dark'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the Rented Horse Brown Dark?'})

node22:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 22,premium = false})

node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node23 = keywordHandler:addKeyword({'fire war horse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy fire War Horse?'})

node23:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 23,premium = false})

node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node24 = keywordHandler:addKeyword({'shadow draptor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy Shadow Draptor?'})

node24:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 24,premium = false})

node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node25 = keywordHandler:addKeyword({'rented horse gray'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy Rented Horse Gray?'})

node25:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 25,premium = false})

node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

local node26 = keywordHandler:addKeyword({'rented horse brown'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy Rented Horse Brown?'})

node26:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 26,premium = false})

node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})

npcHandler:addModule(FocusModule:new())

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

Cara, muito bom mesmo.

Tenho certeza que vários admins estavam atrás disso. :palmas:

TibiaKing Team- KingTópicos
www.tibiaking.com

Link para o post
Compartilhar em outros sites

Cara, muito bom mesmo.

Tenho certeza que vários admins estavam atrás disso. :palmas:

Obrigado eu só fã desse fórum...

Link para o post
Compartilhar em outros sites

Nossa,realmente é muito bom !

Talvez colocarei no meu server.

Abraços.

Obrigado...

Link para o post
Compartilhar em outros sites
  • 5 months later...

Vai em 8.6?

Já viu mount em 8.6 zé?

Obvio que não... abraços

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
  • 1 month later...

Já viu mount em 8.6 zé?

Obvio que não... abraços

Vai em 8.6?

Eu testei aqui e não pegou ai vc vai ter que mexe no distro do seu servidor para bota.

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.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo