Shushu
Banned User
Here is Chephan.xml , is the npc I added for war supplies.
And here is His script..
I got no idea why it doesnt work ingame.
It only works with, SD,UH,EXPLO,GFB some of the runes that it had before, doesnt sell the ones i added, + its payable, while i made it 0 cost. ;s.
Help me guyz ;d
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Arrows Bolts Runes" script="data\npc\scripts\Xodet.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="128" head="2" body="26" legs="115" feet="76" addons="0"/>
<parameters>
<parameter key="message_greet" value="I sell burst, Power bolts, and all warring Runes, |PLAYERNAME|? Welcome!"/>
<parameter key="message_farewell" value="So long, |PLAYERNAME|"/>
<parameter key="message_walkaway" value="Good bye, |PLAYERNAME|"/>
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="pot,2562,30,0;letter,2597,10"/>
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="offer" />
<parameter key="keyword_reply1" value="I sell burst, Power bolts, and all warring Runes."/>
</parameters>
</npc>
And here is His script..
PHP:
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({'mana potion', 'mana fluid'}, 2006, 0, 7, 'mana potion')
shopModule:addBuyableItem({'great fireball', 'gfb'}, 2304, 0, 2, 'great fireball rune')
shopModule:addBuyableItem({'explo', 'xpl'}, 2313, 0, 3, 'explosion rune')
shopModule:addBuyableItem({'ultimate healing', 'uh'}, 2273, 0, 1, 'ultimate healing rune')
shopModule:addBuyableItem({'sudden death', 'sd'}, 2268, 0, 1, 'sudden death runes')
shopModule:addBuyableItem({'fire bomb rune', 'fb'}, 2305, 0, 2, 'fire bomb rune')
shopModule:addBuyableItem({'energy field', 'ef'}, 2277, 0, 3, 'energy field rune')
shopModule:addBuyableItem({'energy bomb', 'eb'}, 2262, 0, 2, 'energy bomb rune')
shopModule:addBuyableItem({'destroy field', 'df'}, 2261, 0, 3, 'destroy field rune')
shopModule:addBuyableItem({'burst', 'arrow'}, 2546, 0, 1, 'burst arrow')
shopModule:addBuyableItem({'power', 'bolt'}, 2547, 0, 1, 'power bolt')
shopModule:addBuyableItem({'time', 'tr'}, 2169, 0, 1, 'time ring')
shopModule:addBuyableItem({'energy', 'tr'}, 2204, 0, 1, 'energy ring')
npcHandler:addModule(FocusModule:new())
I got no idea why it doesnt work ingame.
It only works with, SD,UH,EXPLO,GFB some of the runes that it had before, doesnt sell the ones i added, + its payable, while i made it 0 cost. ;s.
Help me guyz ;d