Ir para conteúdo
  • 0

Npc


ScythePhantom

Pergunta

4 respostass a esta questão

Posts Recomendados

  • 0

Aqui está, substitua seu npc por esse.

 

 

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 shopModule = ShopModule:new()

npcHandler:addModule(shopModule)

 

shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 1, 'wand of voodoo')

shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 1, 'underworld rod')

shopModule:addBuyableItem({'hailstorm rod', 'hailstorm rod'}, 2183, 15000, 1, 'hailstorm rod')

shopModule:addBuyableItem({'ultimate health potion', '100 uhp'}, 8473, 310, 100, 'ultimate health potion')

shopModule:addBuyableItem({'great health potion', ' 100ghp'}, 7591, 190, 100, 'great health potion')

shopModule:addBuyableItem({'strong health potion', '100 shp'}, 7588, 100, 100, 'strong health potion')

shopModule:addBuyableItem({'health potion', '100 hp'}, 7618, 45, 100, 'health potion')

shopModule:addBuyableItem({'great spirit potion', '100 gsp'}, 8472, 190, 100, 'great spirit potion')

shopModule:addBuyableItem({'great mana potion', '100 gmp'}, 7590, 120, 100, 'great mana potion')

shopModule:addBuyableItem({'strong mana potion', '100 smp'}, 7589, 80, 100, 'strong mana potion')

shopModule:addBuyableItem({'mana potion', '100 mp'}, 7620, 50, 100, 'mana potion')

shopModule:addBuyableItem({'ultimate healing', '100 uh'}, 2273, 700, 100, 'ultimate healing rune')

shopModule:addBuyableItem({'sudden death', '100 sd'}, 2268, 1000, 100, 'sudden death rune')

shopModule:addBuyableItem({'paralyze rune', '100 pr'}, 2278, 234, 100, 'paralyze rune')

shopModule:addBuyableItem({'avalanche rune', '100 ar'}, 2274, 102, 100, 'avalanche rune')

shopModule:addBuyableItem({'destroy field rune', '100 ds'}, 2261, 23, 100, 'destroy field rune')

shopModule:addBuyableItem({'magic wall rune', '100 mw'}, 2293, 230, 100, 'magic wall rune')

shopModule:addBuyableItem({'wild growth rune', '100 wild'}, 2269, 230, 100, 'wild growth rune')

shopModule:addBuyableItem({'blank', 'rune'}, 2260, 10, 100, 'blank rune')

shopModule:addBuyableItem({'ultimate health potion', '50 uhp'}, 8473, 310, 50, 'ultimate health potion')

shopModule:addBuyableItem({'great health potion', '50 ghp'}, 7591, 190, 50, 'great health potion')

shopModule:addBuyableItem({'strong health potion', '50 shp'}, 7588, 100, 50, 'strong health potion')

shopModule:addBuyableItem({'health potion', '50 hp'}, 7618, 45, 50, 'health potion')

shopModule:addBuyableItem({'great spirit potion', '50 gsp'}, 8472, 190, 50, 'great spirit potion')

shopModule:addBuyableItem({'great mana potion', '50 gmp'}, 7590, 120, 50, 'great mana potion')

shopModule:addBuyableItem({'strong mana potion', '50 smp'}, 7589, 80, 50, 'strong mana potion')

shopModule:addBuyableItem({'mana potion', '50 mp'}, 7620, 50, 50, 'mana potion')

shopModule:addBuyableItem({'ultimate healing', '50 uh'}, 2273, 700, 50, 'ultimate healing rune')

shopModule:addBuyableItem({'sudden death', '50sd'}, 2268, 1000, 50, 'sudden death rune')

shopModule:addBuyableItem({'paralyze rune', '50 pr'}, 2278, 234, 50, 'paralyze rune')

shopModule:addBuyableItem({'avalanche rune', '50 ar'}, 2274, 102, 50, 'avalanche rune')

shopModule:addBuyableItem({'destroy field rune', '50 ds'}, 2261, 23, 50, 'destroy field rune')

shopModule:addBuyableItem({'magic wall rune', '50 mw'}, 2293, 230, 50, 'magic wall rune')

shopModule:addBuyableItem({'wild growth rune', '50 wild'}, 2269, 230, 50, 'wild growth rune')

shopModule:addBuyableItem({'blank', 'rune'}, 2260, 10, 50, 'blank rune')

shopModule:addBuyableItem({'ultimate health potion', '25 uhp'}, 8473, 310, 25, 'ultimate health potion')

shopModule:addBuyableItem({'great health potion', '25 ghp'}, 7591, 190, 25, 'great health potion')

shopModule:addBuyableItem({'strong health potion', '25 shp'}, 7588, 100, 25, 'strong health potion')

shopModule:addBuyableItem({'health potion', '25 hp'}, 7618, 45, 25, 'health potion')

shopModule:addBuyableItem({'great spirit potion', '25 gsp'}, 8472, 190, 25, 'great spirit potion')

shopModule:addBuyableItem({'great mana potion', '25 gmp'}, 7590, 120, 25, 'great mana potion')

shopModule:addBuyableItem({'strong mana potion', '25 smp'}, 7589, 80, 25, 'strong mana potion')

shopModule:addBuyableItem({'mana potion', '25 mp'}, 7620, 50, 25, 'mana potion')

shopModule:addBuyableItem({'ultimate healing', '25 uh'}, 2273, 700, 25, 'ultimate healing rune')

shopModule:addBuyableItem({'sudden death', '25 sd'}, 2268, 1000, 25, 'sudden death rune')

shopModule:addBuyableItem({'paralyze rune', '25 pr'}, 2278, 234, 25, 'paralyze rune')

shopModule:addBuyableItem({'avalanche rune', '25 ar'}, 2274, 102, 25, 'avalanche rune')

shopModule:addBuyableItem({'destroy field rune', '25 ds'}, 2261, 23, 25, 'destroy field rune')

shopModule:addBuyableItem({'magic wall rune', '25 mw'}, 2293, 230, 25, 'magic wall rune')

shopModule:addBuyableItem({'wild growth rune', '25 wild'}, 2269, 230, 25, 'wild growth rune')

shopModule:addBuyableItem({'blank', 'rune'}, 2260, 10, , 'blank rune')

 

npcHandler:addModule(FocusModule:new())

 

 

para comprar,

hi, buy 100 ... ou buy 50 ou buy 25

e na frente a sigla do item, exemplo

hi buy 50 smp

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...