• 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!

Help with NPC Rashid

Joined
Apr 17, 2008
Messages
1,922
Solutions
1
Reaction score
188
Location
Venezuela
Hello, i've a problem.. my NPC Rashid don't buy Enchanted weapons..

I have the item in my bp, i say trade and the enchanted weapons appear in the trade window, but when i put the bottom "Sell", it says: "Sorry, you do not have that item."

Why this happen?

Here is my script.. you can see that this don't have any error

Code:
<?xml version="1.0"?>

<npc name="Rashid" script="data/npc/scripts/loot.lua" access="3" lookdir="2" walkinterval="2000">
	<mana now="800" max="800"/>
	<health now="200" max="200"/>
<look type="146" head="121" body="102" legs="121" feet="115" addons="3"/>
	<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="message_greet" value="Hello |PLAYERNAME|." />
		<parameter key="shop_sellable" value="devil helmet,2462,1000;steel boots,2645,30000;dragon scale mail,2492,40000;golden armor,2466,20000;demon shield,2520,30000;medusa shield,2536,9000;dragonbone staff,7430,3000;dragon slayer,7402,15000;war axe,2454,9000;crystal sword,7449,600;spiked squelcher,7452,3000;amber staff,7426,8000;sapphire hammer,7437,7000;lunar staff,7424,5000;diamond sceptre,7387,3000;beastslayer axe,3962,1500;brutetamer's staff,7379,1500;wyvern fang,7408,1500;daramanian waraxe,2440,1000;furry club,7432,1000;taurus mace,7425,500;silver dagger,2402,500;mammoth whopper,7381,300;daramanian mace,2439,110;heavy machete,2442,90;dwarven armor,2503,30000;mammoth fur cape,7463,6000;leopard armor,3968,1000;pirate shirt,6095,500;skull helmet,5741,40000;beholder helmet,3972,7500;pirate hat,6096,1000;ragnir helmet,7462,400;krimhorn helmet,7461,200;pirate boots,5462,3000;fur boots,7457,2000;crocodile boots,3982,1000;pirate knee breeches,5918,200;castle shield,2535,5000;scarab shield,2540,2000;dark shield,2521,400;tortoise shield,6131,150;bone shield,2541,80;ancient amulet,2142,200;scarab amulet,2135,200;light shovel,5710,300;fiery dragon slayer,7748,15000;icy dragon slayer,7767,15000;earth dragon slayer,7858,15000;energy dragon slayer,7873,15000;fiery war axe,7753,9000;icy war axe,7772,9000;earth war axe,7863,9000;energy war axe,7878,9000;terra mantle,7884,11000;terra legs,7885,11000;terra boots,7886,2500;terra amulet,7887,1500;terra hood,7903,2500;" />
	</parameters>
</npc>

PD: i'm not the unique person that have that error.
 
Try to move the element ones before normal in that list.
"earth knight axe;x,x;knight axe;x;x" and so on.
 
still not working :s

EDIT: I think that is a problemn with the sources.. npc system.. i don't know, because i've testing with this lua-script:

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

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addSellableItem({'dragon slayer', 'dragon slayer'},               7767, 15000,   'dragon slayer')

npcHandler:addModule(FocusModule:new())

And still not working :S
 
Last edited:
Well you're gonna have to edit your items.xml
put earth knight axe,earth barbarian axe, etc....
That way you'll get it right
 
Back
Top