• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Sell Item

kira178

Member
Joined
Jun 24, 2008
Messages
290
Reaction score
5
Hello, im having this problem (maybe some 1 can got this but dont know), i'm selling some item in stack (ex: 100 red dragon scales, 100 black pearls)but NPC say " do not have this object ".

Any can help me solve this!?
 
i have checked, it's same ID, exam: red dragon scale have ID: 5882, 100 red dragon scales have same ID but NPC say dont have this object, ofc if i put only 1 red dragon scale it's ok but cant sell with 100
 
this is examp NPC:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fiona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="151" head="77" body="120" legs="76" feet="38" addons="2"/>
	<parameters>
		<parameter key="message_greet" value="Hello |PLAYERNAME|."/>
        <parameter key="message_farewell" value="Good bye."/>
		<parameter key="message_walkaway" value="Farewell then.." />
        
  <parameter key="module_shop" value="1" /> 
  <parameter key="shop_buyable" value="" /> 
  <parameter key="shop_sellable" value="giant spider silk,5879,100;lizard scale,5881,120;red dragon scale,5882,200;ape fur,5883,120;warrior's sweat,5885,10000;fighting spirit,5884,40000;chicken feather,5890,30;perfect behemomth fang,5893,250;bat wing,5894,50;fish fin,5895,150;beholder eye,5898,80;turtle shell,5899,90;honeycomb,5902,40;magic sulphur,5904,8000;vampire dust,5905,100;demon dust,5906,300;heaven blossom,5921,50;holy orchid,5922,90;hardened bone,5925,70;behemoth claw,5930,2000;green dragon scale,5920,100;demon horn,5930,1000;enchanted chicken wing,5891,20000;glob of acid slime,9967,25;glob of mercury,9966,20;glob of tar,9968,30" /> 

    </parameters>
</npc>

and file default:

Code:
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

npcHandler:addModule(FocusModule:new())
 
any1 got idea? i got same problem with all npc. I think alot ppl got this problem but they dont know !:(
 
Last edited:
try this
LUA:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fiona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="151" head="77" body="120" legs="76" feet="38" addons="2"/>
	<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="message_greet" value="Hello |PLAYERNAME|. I {trade} various items." />
<parameter key="shop_sellable" value="giant spider silk,5879,100;lizard scale,5881,120;red dragon scale,5882,200;ape fur,5883,120;warrior's sweat,5885,10000;fighting spirit,5884,40000;chicken feather,5890,30;perfect behemomth fang,5893,250;bat wing,5894,50;fish fin,5895,150;beholder eye,5898,80;turtle shell,5899,90;honeycomb,5902,40;magic sulphur,5904,8000;vampire dust,5905,100;demon dust,5906,300;heaven blossom,5921,50;holy orchid,5922,90;hardened bone,5925,70;behemoth claw,5930,2000;green dragon scale,5920,100;demon horn,5930,1000;enchanted chicken wing,5891,20000;glob of acid slime,9967,25;glob of mercury,9966,20;glob of tar,9968,30" />
	</parameters>
</npc>
 
it doesnt work, infact i think problem come from name of item, look if i have 100 red dragon leather, it will be "red dragon scales" and it's not "red dragon scale", and npc only accept red dragon scale.
 
Back
Top