• 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

Sizaro

Advanced OT User
Joined
Aug 20, 2007
Messages
5,152
Solutions
5
Reaction score
210
Location
Sweden
GitHub
coldensjo
PHP:
[22/06/2009 11:53:41] data/npc/scripts/towns/khuz-dhul/arena.lua:36: attempt to call global 'msgcontains' (a nil value)
[22/06/2009 11:53:41] stack traceback:
[22/06/2009 11:53:41] 	data/npc/scripts/towns/khuz-dhul/arena.lua:36: in function 'callback'
[22/06/2009 11:53:41] 	data/npc/lib/npcsystem/npchandler.lua:268: in function 'onCreatureSay'
[22/06/2009 11:53:41] 	data/npc/scripts/towns/khuz-dhul/arena.lua:21: in function <data/npc/scripts/towns/khuz-dhul/arena.lua:21>

halp plox?

no im not going to post the script =(
 
PHP:
[22/06/2009 11:53:41] data/npc/scripts/towns/khuz-dhul/arena.lua:36: attempt to call global 'msgcontains' (a nil value)
[22/06/2009 11:53:41] stack traceback:
[22/06/2009 11:53:41] 	data/npc/scripts/towns/khuz-dhul/arena.lua:36: in function 'callback'
[22/06/2009 11:53:41] 	data/npc/lib/npcsystem/npchandler.lua:268: in function 'onCreatureSay'
[22/06/2009 11:53:41] 	data/npc/scripts/towns/khuz-dhul/arena.lua:21: in function <data/npc/scripts/towns/khuz-dhul/arena.lua:21>

halp plox?

no im not going to post the script =(

If its for TFS 0.3.4 add to data/npc/lib/npc.lua:
Code:
msgcontains = doMessageCheck
If its for TFS 0.2.3/Avesta add to data/npc/lib/npc.lua:
Code:
function msgcontains (message, keyword)
	local a, b = string.find(message, keyword)
	if a == nil or b == nil then
		return false
	end
	return true
end
 
Back
Top Bottom