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

Lua console error

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
I need help with errors on my console

data/npc/lib/npcsystem/modules.lua:1151: bad argument #2 to 'error' (number expected, got string)
[04/07/2010 16:34:57] stack traceback:
[04/07/2010 16:34:57] [C]: in function 'error'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/modules.lua:1151: in function 'callbackOnBuy'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>


Bye!
 
Last edited:
when I talk to a npc to buy me this error.
data/npc/lib/npcsystem/modules.lua:1151: bad argument #2 to 'error' (number expected, got string)
[04/07/2010 16:34:57] stack traceback:
[04/07/2010 16:34:57] [C]: in function 'error'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/modules.lua:1151: in function 'callbackOnBuy'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>
 
<?xml version="1.0"?>

<npc name="Dufi" script="data/npc/scripts/aol.lua" access="3" autowalk="30">

<mana now="800" max="800"/>
<health now="800" max="800"/>
<look type="145" head="0" body="132" legs="114" feet="57" addons="3"/>

</npc>

Need change autowalk for walkinterval.¿?
 
Yeah :D

04/07/2010 16:15:04] [Warning - Monster::Monster] Unknown event name - Inquisition
[04/07/2010 16:15:04] [Warning - Monster::Monster] Unknown event name - Inquisition
[04/07/2010 16:15:04] [Warning - Monster::Monster] Unknown event name - Inquisition
[04/07/2010 16:15:04] [Warning - Monster::Monster] Unknown event name - Inquisition
[04/07/2010 16:15:04] [Warning - Monster::Monster] Unknown event name - Inquisition
[04/07/2010 16:15:04] [Warning - Monster::Monster] Unknown event name - Inquisition

^ Do you have Inquisition Quest??
 
Give error when speak npc trade-->

[Error - Npc interface]
[04/07/2010 17:16:38] (Unknown script file)
[04/07/2010 17:16:38] Description:
[04/07/2010 17:16:38] data/npc/lib/npcsystem/modules.lua:1151: bad argument #2 to 'error' (number expected, got string)
[04/07/2010 17:16:38] stack traceback:
[04/07/2010 17:16:38] [C]: in function 'error'
[04/07/2010 17:16:38] data/npc/lib/npcsystem/modules.lua:1151: in function 'callbackOnBuy'
[04/07/2010 17:16:38] data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[04/07/2010 17:16:38] data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[04/07/2010 17:16:38] data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>
 
In this monsters ---> Name's monsters: Ushuriel, Annihilon, Zugurosh, Latrivan, Hellgorak, Latrivan

Delete this ---\/
Code:
			<script>
<event name="Inquisition"/>
</script>
 
rep++ ^^


last error when buy npc

data/npc/lib/npcsystem/modules.lua:1151: bad argument #2 to 'error' (number expected, got string)
[04/07/2010 16:34:57] stack traceback:
[04/07/2010 16:34:57] [C]: in function 'error'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/modules.lua:1151: in function 'callbackOnBuy'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[04/07/2010 16:34:57] data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>
 
Back
Top