What's new

NPC GM Shop

Status
Not open for further replies.

marcinekt

New User
Joined
Jul 28, 2009
Messages
3
Reaction score
0
Mam dla was nowego npc GM Shop sprzedaje items i kupuje

Wchodzimy data/npc i tworzymy plik o nazwie GM Shop.xml i wklejamy tam to:

<npc name="Gm shop" script="data/npc/scripts/gm shop.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="75" head="0" body="132" legs="107" feet="114" corpse="2212"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="rat toy,7487,1000;valentines card,6538,1000;medal of honour,5785,1000000;demon armor,2494,50000;demon shield,2520,40000;Tasace Axe,7454,100000;roc feather,2366,10000;abacus,5798,10000;crystal wand,2184,1000;daramanian waraxe,2440,50000;Ice Double Axe,7455,100000;salamander shield,3975,10000;santa hat,6531,100000;skull helmet,5741,50000;feather headdress,3970,10000;stuffed rabbit,2355,2000;gold nugget,2157,10000;panda bear,6568,100;heart pillow,1685,100;tempest shield,2542,60000;blessed shield,2523,100000;beholder shield,2518,30000;crown shield,2519,40000;demon shield 2520,50000;mastermind shield,2514,90000;sprite wand,2453,50000;great axe,2444,80000;hammer of wrath,2444,60000;great axe,2415,80000;silver mace,2424,80000;stonecutter axe 2431,110000;boots of waterwalking,2358,500000;golden bow,7438,80000;arbalest,5803,60000;crystal arrow,2352,30000;twin axe,2447,70000;golden helmet,2471,120000;dragon scale legs,2469,100000;leopard armor,3968,2000;demon legs,2495,800000;native armor,2508,900000;dragon scale mail,2492,30000;horned helmet,2496,170000;magic plate armor,2472,320000;mystic turban,2663,500000;soft boots,2640,23000;golden boots,2646,270000" />
</parameters>
</npc>


Nast?pnie whcodzimy data/spells/script i tworzymy plik o nazwie GM Shop.lua i wklejamy tam to:

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end
-- OTServ event handling functions end
npcHandler:addModule(FocusModule:new())


Wrazie czego? piszcie na gg: 13641524

Sorry za te miny ale jak wkleisz bedzie normalnie xD

-----POMOG?EM DAJ REPUTA-----
 

Ivex

Active User
Joined
Jul 5, 2009
Messages
81
Reaction score
2
Age
34
Odp: NPC GM Shop

Cz?owieku wystarczy klikn?? opcj? "Wy??cz emotikonki w tek?cie". Nast?pnym razem bardziej dopracuj skrypt i zaznaczaj go cytatem, nie czerwon? czcionk?...Eh, masakra...:|
 

Xayan

Senior User
Joined
Jul 4, 2009
Messages
2,608
Reaction score
390
Age
28
Odp: NPC GM Shop

Tasace Axe,7454,100000

Co? takiego istnieje? :D

@Top:
GM Shop sux. Tylko na OTSy x9999. Ten, kto co? takiego wstawi na RPG b?dzie idiot? ^^ Btw. nie wymuszaj reputacji - warn ;)

3/10
 
Status
Not open for further replies.
Top