Ir para conteúdo

Npc Pra Promotion Vip


tuycb

Posts Recomendados

Olá, gostaria que alguém me ajudasse a colocar pra só vip poder comprar a segunda promotion.

Aqui está o script do NPC:

 

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 50000 gold coins. Do you want me to promote you?'})

 

node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 50000, level = 50, promotion = 1, text = 'Congratulations! You are now promoted.'})

 

node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})

 

 

local node2 = keywordHandler:addKeyword({'epic'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 500000 gold coins. Do you want me to epicize you?'})

 

node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 500000, level = 150, promotion = 2, text = 'Congratulations! You are now epicized.'})

 

node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})

 

 

 

npcHandler:addModule(FocusModule:new())

 

O meu system vip é esse: http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/

 

Obrigado,

 

TuyCB

Link para o comentário
Compartilhar em outros sites

  • 1 month later...
×
×
  • Criar Novo...