Ir para conteúdo
  • 0

[Pedido] Npc Promotion Nova


fortation

Pergunta

EU QUERIA UM NPC QUE VENDE A PROMOTION QUE EU CRIEI AKI

EU CRIEI UMA PROMOTION COM O NOME HELLBORN DEATHDRIVER

MAIS QUANDO EU TENTO FAZER UM NPC QUE VENDE ELA INVEZ DE ELA VENDE ESSA PROM

ELA VENDE A SEGUNDA PROMO MASTER SORCERER

ALGUEM POD ME DAR UM SCRIPT DE NPC PROMO QUE PEGUE

 

NUMERO DA MINHA PROMO É 10 !

Link para o comentário
Compartilhar em outros sites

11 respostass a esta questão

Posts Recomendados

  • 0

Aqui está amigo! Te ajudei?? REP+

 

 

 

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

 

local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})

node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 10, text = 'Parabens, voce adquiriu a promotion HELLBORN DEATHDRIVER'})

node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce ja tem a promotion Hellborn Deathdriver', reset = true})

 

npcHandler:addModule(FocusModule:new())

Link para o comentário
Compartilhar em outros sites

  • 0

Pelo que ví a Promoion 10 está com outro nome e não como Hellborn Deathdriver.

 

 

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

 

local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})

node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 10, text = 'Parabens, voce adquiriu a promotion Hellborn Deathdriver'})

node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce ja tem a promotion Hellborn Deathdriver', reset = true})

 

npcHandler:addModule(FocusModule:new())

Link para o comentário
Compartilhar em outros sites

  • 0

Tente colocar assim, para venda da promotion 9 (Hell Apocalypse):

 

 

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

 

local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})

node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 9, text = 'Parabens, voce adquiriu a promotion Hell Apocalypse'})

node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce ja tem a promotion Hell Apocalypse', reset = true})

 

npcHandler:addModule(FocusModule:new())

 

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...