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

NPCs

Aids

New Member
Joined
Jun 8, 2009
Messages
21
Reaction score
0
Well my NPC's don't take my money when i try to buy something (They don't give the item either)

I was woundering if anyone was able to help me :D

Thanks
 
The XML and LUA files associated with the NPC would be helpful in determining why it is not taking player gold.
 
Then something is wrong with your NPC handling system, the part which handles all of the NPC's basic functions.

Have you replaced the original data folder, or NPC folder, with a custom one from some "RLServer distro" or similar?
 
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Legolas" script="default.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look type="159" head="57" body="59" legs="40" feet="76" addons="0"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_sellable" value="item,id,cost"/>
<parameter key="shop_buyable" value="item,id,cost"/>
</parameters>
</npc>

Use the right :)
 
Then something is wrong with your NPC handling system, the part which handles all of the NPC's basic functions.

Have you replaced the original data folder, or NPC folder, with a custom one from some "RLServer distro" or similar?


I think its been replaced
I had a problem with my NPC's before they wouldn't talk at all
Then i got a new folder for my NPC's and they talk but dont take money

Thanks
 
I think its been replaced
I had a problem with my NPC's before they wouldn't talk at all
Then i got a new folder for my NPC's and they talk but dont take money

Thanks

You think? If you replaced it you must know if you replaced it or not.

Also, what new folder was this? What was it called?
 
goto data\scripts and fill in this as default.lua

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())
 
A new development! It seems its not my NPC's but my money that is bugged, Nothing will take money even my !buypremmy command is messed up
 
Back
Top