KI

[pedido/duvida]npc Promotion

Por Kiul, 03 de nov. de 2008 em NPCs, monsters e raids

script
3
2.1k
KiulK
03 de novembro de 2008 às 14:33

Tem algum npc que venda promotion para todos?

Sem ser premmium, um player normal que seja lvl 20+, se ele pode comprar promotion sem se premium?

caso tenha algum geito me ensina a faser ou me manda o script pronto !

 

 

 

 

Agradeço desde já, vlwsão !!

 

 

 

 

PS¹: meu portugues eh mto ruim, n reparem nos erros

eletrossE
04 de novembro de 2008 às 09:17

Tbm Quero um npc assim!

1 mês depois...
ninodeltN
06 de dezembro de 2008 às 23:08
Tem algum npc que venda promotion para todos?

Sem ser premmium, um player normal que seja lvl 20+, se ele pode comprar promotion sem se premium?

caso tenha algum geito me ensina a faser ou me manda o script pronto !

 

 

 

 

Agradeço desde já, vlwsão !!

 

 

 

 

PS¹: meu portugues eh mto ruim, n reparem nos erros

 

 

 

Cara é muiiito simples... Mas ta ae o Scrip, a parte da segunda promotion eu nao sei se ta funfando, mas essa parada do promotion ta sim. Ta liberado sem premium.

 

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 = 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 200000 gold coins. Do you want me to epicize you?'})
node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 120, 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())

 

 

ve ai.