Ific
New Member
Hello,I can't sell nothing to rashid in my server, when I way trade and press to sell, all prices are 0.
Version: TFS 0.3.2
Look:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Rashid" script="data/npc/scripts/rashid.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="146" head="12" body="101" legs="122" feet="115" addons="2"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_sellable" value="magic plate armor,2472,70000;golden legs,2470,40000;mastermind shield,2514,45000;Dragon scale mail,2492,40000;mystic blade,7384,30000;heroic axe,7389,30000;cranial basher,7415,30000;Dwarven armor,2503,30000;Golden armor,2466,20000;Leopard armor,3968,1000;Mammoth fur cape,7463,6000;Pirate shirt,6095,500;Pirate knee breeches,5918,200;Bone shield,2541,80;Castle shield,2535,5000;Dark shield,2521,400;Demon shield,2520,30000;Medusa shield,2536,9000;Scarab shield,2540,2000;Tortoise shield,6131,150;Beholder helmet,3972,7500;Devil helmet,2462,1000;Krimhorn helmet,7461,200;Pirate hat,6096,1000;Ragnir helmet,7462,400;Skull helmet,5741,40000;Crocodile boots,3982,1000;Fur boots,7457,2000;Pirate boots,5462,3000;Steel boots,2645,30000;Amber staff,7426,8000;Beastslayer axe,3962,1500;Brutetamer's staff,7379,1500;Crystal sword,7449,600;Daramanian mace,2439,110;Daramanian waraxe,2440,1000;Diamond sceptre,7387,3000;Dragon slayer,7402,15000;Dragonbone staff,7430,3000;Furry club,7432,1000;Heavy machete,2442,90;Lunar staff,7424,5000;Mammoth whopper,7381,300;Sapphire hammer,7437,7000;Silver dagger,2402,500;Taurus mace,7425,500;War axe,2454,9000;Wyvern fang,7408,1500;Ancient amulet,2142,200;Scarab amulet,2135,200;Paladin Armor,8891,15000;Light Shovel,5710,300;Patched Boots,2641,2000"/>
<parameter key="shop_buyable" value=""/>
</parameters>
</npc>
And the script:
-- This file contains a default npc script based on Jiddo's npc system
-- NPCs that are made only in XML can use this file as their Lua file
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
npcHandler:addModule(FocusModule:new())
Version: TFS 0.3.2
Look:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Rashid" script="data/npc/scripts/rashid.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="146" head="12" body="101" legs="122" feet="115" addons="2"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_sellable" value="magic plate armor,2472,70000;golden legs,2470,40000;mastermind shield,2514,45000;Dragon scale mail,2492,40000;mystic blade,7384,30000;heroic axe,7389,30000;cranial basher,7415,30000;Dwarven armor,2503,30000;Golden armor,2466,20000;Leopard armor,3968,1000;Mammoth fur cape,7463,6000;Pirate shirt,6095,500;Pirate knee breeches,5918,200;Bone shield,2541,80;Castle shield,2535,5000;Dark shield,2521,400;Demon shield,2520,30000;Medusa shield,2536,9000;Scarab shield,2540,2000;Tortoise shield,6131,150;Beholder helmet,3972,7500;Devil helmet,2462,1000;Krimhorn helmet,7461,200;Pirate hat,6096,1000;Ragnir helmet,7462,400;Skull helmet,5741,40000;Crocodile boots,3982,1000;Fur boots,7457,2000;Pirate boots,5462,3000;Steel boots,2645,30000;Amber staff,7426,8000;Beastslayer axe,3962,1500;Brutetamer's staff,7379,1500;Crystal sword,7449,600;Daramanian mace,2439,110;Daramanian waraxe,2440,1000;Diamond sceptre,7387,3000;Dragon slayer,7402,15000;Dragonbone staff,7430,3000;Furry club,7432,1000;Heavy machete,2442,90;Lunar staff,7424,5000;Mammoth whopper,7381,300;Sapphire hammer,7437,7000;Silver dagger,2402,500;Taurus mace,7425,500;War axe,2454,9000;Wyvern fang,7408,1500;Ancient amulet,2142,200;Scarab amulet,2135,200;Paladin Armor,8891,15000;Light Shovel,5710,300;Patched Boots,2641,2000"/>
<parameter key="shop_buyable" value=""/>
</parameters>
</npc>
And the script:
-- This file contains a default npc script based on Jiddo's npc system
-- NPCs that are made only in XML can use this file as their Lua file
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
npcHandler:addModule(FocusModule:new())