• 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 [MOD] Problem.

Potar

SocialWorld
Senator
Joined
Mar 1, 2009
Messages
1,661
Reaction score
125
Location
Warsaw, Poland
Hello i have problem with talkaction MOD scripts, in game there is not any errors, bugs etc.
Working fine, but on PuTTy Console....

Sorry for double post...
 
Last edited:
I wrote the other code but the same problem.

In-game on the side of the player there is not any prblem but I'm afraid a little bit to what pops up in the console.
LUA:
<talkaction words="/leavearena" event="buffer"><![CDATA[
    domodlib('HuntAreaFunctions')
if (exhaustion.get (cid, 5755)) then
	doPlayerSendCancel (cid, "You can use the /leavearena command one time per 1 seconds!")
return true
else
	exhaustion.set(cid, 5755, 1)
	if getCreatureStorage(cid, 654321) == -1 then
	doCreatureSay(cid, "You can use this command only in Hunting Room.", TALKTYPE_ORANGE_1, false)
	else
	doCreatureSetStorage(cid, 654321, -1)
    stopEvent(pauseKick)
	doTeleportThing(cid, {x = 635, y = 660, z = 9})
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end
return true
	end
]]></talkaction>


PHP:
[23:39:48.562] [Error - TalkAction Interface]
[23:39:48.562] local cid = 268455704
[23:39:48.562] local words = "/leavearena"
[23:39:48.578] local param = ""
[23:39:48.578] local channel = 65534
[23:39:48.578] domodlib('HuntAreaFunctions')
[23:39:48.578] if (exhaustion.get (cid, 5755)) then
[23:39:48.578]  doPlayerSendCancel (cid, "You can use the /leavearena command one
 time per 1 seconds!")
[23:39:48.578] return true
[23:39:48.578] else
[23:39:48.578]  exhaustion.set(cid, 5755, 1)
[23:39:48.578]  if getCreatureStorage(cid, 654321) == -1 then
[23:39:48.578]  doCreatureSay(cid, "You can use this command only in Hunting Roo
m.", TALKTYPE_ORANGE_1, false)
[23:39:48.578]  else
[23:39:48.578]  doCreatureSetStorage(cid, 654321, -1)
[23:39:48.578]     stopEvent(pauseKick)
[23:39:48.578]  doTeleportThing(cid, {x = 635, y = 660, z = 9})
[23:39:48.578]         doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
[23:39:48.578]  end
[23:39:48.578] return true
[23:39:48.578]  end

[23:39:48.578] Description:
[23:39:48.578] attempt to index a nil value
 
Back
Top