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

Solved Shop Item List not working at 100%.

gerard95

Keep cool :)
Joined
Dec 31, 2011
Messages
276
Reaction score
16
When I try to buy one item at some npcs I get this error at the console:
[ShopModule.onBuy]
Item not found on shopItems list

My server is 8.6 and I use OTX 2.6.

This error only happen to some items like wands, rods and some runes, but not for every item, potions, for example, can be bought.

What is the problem? Is there any shopitem list that I can add? Somebody knows?
Thank you once again :D
 
Problem solved in pm/conversation.
He used this modules.lua (data/npc/lib/npcsystem/modules.lua)
http://www.speedy*****malware.localhost/CB3Kj/modules.lua
 
Thx Limos!

But now the NPC when I say trade he end the conversation.

3:05 Player [8]: hi
13:05 Xodet: Welcome, Player! I have been expecting you.
13:05 Player [8]: trade
13:05 Xodet: Here's my offer, Player. Don't you like it?
13:05 Xodet: Thank you, come back when you want something more.
 
Do you have this with all shop npcs?
Do you get errors? Which server do you use?

If that modules doesn't work properly with your other npcsystem files, you can also try to use the whole npcsystem from this edited modules.
http://www.speedy*****malware.localhost/q8T3J/lib.rar
 
yes, is with all npcs shops.
Console no show errors, version: otx server 2.60 - 8.60

Limos

I tested with ur lib and get this error in console:

[26/6/2014 13:33:36] [Error - NpcScript Interface]
[26/6/2014 13:33:36] data/npc/scripts/Benjamin.lua:eek:nCreatureSay
[26/6/2014 13:33:36] Description:
[26/6/2014 13:33:37] data/npc/lib/npcsystem/npchandler.lua:558: attempt to call global 'getDistanceTo' (a nil value)
[26/6/2014 13:33:37] stack traceback:
[26/6/2014 13:33:37] data/npc/lib/npcsystem/npchandler.lua:558: in function 'isInRange'
[26/6/2014 13:33:37] data/npc/lib/npcsystem/npchandler.lua:381: in function 'onCreatureSay'
[26/6/2014 13:33:37] data/npc/scripts/Benjamin.lua:7: in function <data/npc/scripts/Benjamin.lua:7>
 
Last edited by a moderator:
Back
Top