Open Tibia Server

Forum Zostalo Stworzone By Pomagać Ludzią W Grze Tibia Ots


#1 2008-12-24 23:42:20

Michal

Administrator

Zarejestrowany: 2008-12-24
Posty: 51
Punktów :   

Npc Rashid

Wchodzimy w data/npc

Stwarzamy notatnik
W notatniku wpisujemy:

<npc name="Rashid" script="data/npc/scripts/loot.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="129" head="132" body="79" legs="97" feet="132" corpse="2212"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Hello |PLAYERNAME|." />
</parameters>
</npc>

Zapisujemy jako Rashid.xml


Wchodzimy w data/npc/scripts

Stwarzamy notatnik
W notatniku wpisujemy:

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:addSellableItem({'Fur boots', 'Fur boots'},7457, 2000,'Fur boots')
shopModule:addSellableItem({'Dragon Scale Mail', 'Dragon Scale Mail'},2492, 40000,'Dragon Scale Mail')
shopModule:addSellableItem({'Demon Shield', 'Demon Shield'},2520, 30000,'Demon Shield')
shopModule:addSellableItem({'Golden Armor', 'Golden Armor'},2466, 20000,'Golden Armor')
shopModule:addSellableItem({'mammoth fur cape', 'mammoth fur cape'},7463, 6000,'mammoth fur cape')
shopModule:addSellableItem({'Medusa Shield', 'Medusa Shield'},2536, 9000,'Medusa Shield')
shopModule:addSellableItem({'Steel Boots ', 'Steel Boots '},2645, 30000,'Steel Boots ')
shopModule:addSellableItem({'Skull Helmet', 'Skull Helmet'},5741, 40000,'Skull Helmet')
shopModule:addSellableItem({'Beholder Helmet', 'Beholder Helmet'},3972, 7500,'Beholder Helmet')
shopModule:addSellableItem({'Ragnir Helmet', 'Ragnir Helmet'},7462, 400,'Ragnir Helmet')
shopModule:addSellableItem({'Dragon Slayer', 'Dragon Slayer'},7402, 15000,'Dragon Slayer')
shopModule:addSellableItem({'Wyvern Fang', 'Wyvern Fang'},7408, 1500,'Wyvern Fang')
shopModule:addSellableItem({'War Axe', 'War Axe'},2454, 9000,'War Axe')
shopModule:addSellableItem({'Sapphire Hammer', 'Sapphire Hammer'},7437, 7000,'Sapphire Hammer')
shopModule:addSellableItem({'Dragonbone Staff', 'Dragonbone Staff'},7430, 3000,'Dragonbone Staff')
shopModule:addSellableItem({'Diamond Sceptre', 'Diamond Sceptre'},7387, 3000,'Diamond Sceptre')
shopModule:addSellableItem({'Mammoth Whopper', 'Mammoth Whopper'},7381, 300,'Mammoth Whopper')

npcHandler:addModule(FocusModule:new())

Zapisujemy jako: loot.lua

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
warsztat samochodowy lublin bogucin serwis iveco sklep thc-thc noclegi ciechocinek Specialiste boite de vitesses manuelle drewno kominkowe Kalwaria Zebrzydowska