• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Malak i Mr

Status
Zamknięty.

Deather

User
Zarejestrowany
Dołączył
Listopad 19, 2009
Posty
25
Liczba reakcji
1
Siema mam ots'a na kt?rym jest mr ale nie sprzedaje go malak jak zrobi? ?eby sprzedawa? ?
 
Odp: Malak i Mr

Nie chce mi sie tlumaczyc wiec dam ci gotowy:
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)



-- OTServ event handling functions start
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
-- OTServ event handling functions end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'light wand', 'lightwand'}, 					2163, 500, 		'magic light wand')

shopModule:addBuyableItem({'manapotion', 'manapotion'}, 					7620, 100, 	 	'mana potion')
shopModule:addBuyableItem({'healthpotion', 'healthpotion'}, 				7618, 100,  	'health potion')
shopModule:addBuyableItem({'strong mana potion', 'strong mana potion'}, 			7589, 300, 	 	'strong mana potion')
shopModule:addBuyableItem({'strong health potion', 'strong health potion'}, 			7588, 300, 	      'strong health potion')
shopModule:addBuyableItem({'great mana potion', 'great mana potion'}, 				7590, 500, 	 	'great mana potion')
shopModule:addBuyableItem({'great health potion', 'great health potion'}, 			7591, 500, 	      'great health potion')


shopModule:addBuyableItem({'heavy magic missile', 'hmm'}, 					2311, 3000, 100,	'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball', 'gfb'}, 						2304, 1500, 100, 	'great fireball rune')
shopModule:addBuyableItem({'explo', 'xpl'}, 							2313, 2500, 100, 	'explosion rune')
shopModule:addBuyableItem({'ultimate healing', 'uh'}, 					2273, 4000, 100, 	'ultimate healing rune')
shopModule:addBuyableItem({'sudden death', 'sd'}, 						2268, 8000, 100,	'sudden death rune')
shopModule:addBuyableItem({'manarune', 'mr'}, 							2270, 20000, 		'manarune')


shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 				2187, 15000, 	'wand of inferno')
shopModule:addBuyableItem({'wand of decay', 'decay'}, 				2188, 5000, 	'wand of decay')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 	2189, 10000, 	'explosion rune')
shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 				2190, 500, 	 	'wand of cosmic energy')
shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 	2191, 1000, 	'wand of dragonbreath')

shopModule:addBuyableItem({'terra rod', 'terra'}, 				2181, 10000, 	'terra rod')
shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 				2182, 500, 	 	'snakebite rod')
shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 				2183, 15000, 	'hailstorm rod')
shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 				2185, 3000, 	'necrotic rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 				2186, 500,   	'moonlight rod')

npcHandler:addModule(FocusModule:new())

Wchodzisz: Silnik/data/npc/scripts
I tam podmieniasz skrypt runes.lua

Pozdr
 
Odp: Malak i Mr

Dzi?ki reput leci :D
Temat do zamkni?cia
 
Status
Zamknięty.
Back
Do góry