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

Linux Need Help With football-lib

Owner Nighty

AmM Hosting Service
Joined
Sep 7, 2010
Messages
229
Reaction score
7
I have That Error

Code:
[2:56:21.802] [Error - CreatureScript Interface]
[2:56:21.802] domodlib('football-lib')
[2:56:21.802] domodlib('tutorial_m')
[2:56:21.802] local corpse_ids = {
[2:56:21.802]         [0] = 3065, -- female
[2:56:21.802]         [1] = 3058 -- male
[2:56:21.802] }
[2:56:21.802] function onStatsChange(cid, attacker, type, combat, value)
[2:56:21.802]         if combat == COMBAT_HEALING then
[2:56:21.803]                   return true
[2:56:21.803]         end
[2:56:21.803]         if getCreatureHealth(cid) > value then
[2:56:21.803]                   return true
[2:56:21.803]         end
[2:56:21.803]   if isInRange(getCreaturePosition(cid), arena.frompos, arena.topos) then
[2:56:21.803]           doItemSetAttribute(doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), "description", "You recognize "..getCreatureName(cid)..". He was killed by "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item")..".\n[War-Event kill]")
[2:56:21.803]           doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), FALSE)
[2:56:21.803]           doSendMagicEffect(getCreaturePosition(cid), 10)
[2:56:21.803]           doRemoveConditions(cid, FALSE)
[2:56:21.803]           doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
[2:56:21.803]           doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
[2:56:21.803]           doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You got killed by "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item").." in the war event.")
[2:56:21.803]                   if isPlayer(attacker) then
[2:56:21.803]                                   doPlayerSendTextMessage(attacker, MESSAGE_STATUS_CONSOLE_BLUE, "You killed "..getCreatureName(cid).." in the war event.")
[2:56:21.803]                   end
[2:56:21.803]                   if getPlayerStorageValue(cid,joined) == 1 then
[2:56:21.803]                           removeBlue()
[2:56:21.803]                           setPlayerStorageValue(cid,10000,-1)
[2:56:21.803]                   elseif getPlayerStorageValue(cid,joined) == 2 then
[2:56:21.803]                           removeRed()
[2:56:21.803]                           setPlayerStorageValue(cid,10000,-1)
[2:56:21.803]                   end
[2:56:21.803]   end
[2:56:21.803]   return true
[2:56:21.803] end
[2:56:21.803]
[2:56:21.803] :onStatsChange
[2:56:21.803] Description:
[2:56:21.803] data/lib/032-position.lua:2: attempt to index local 'fromPosition' (a nil value)
[2:56:21.803] stack traceback:
[2:56:21.803]   data/lib/032-position.lua:2: in function 'isInRange'
[2:56:21.803]   [string "LuaInterface::loadBuffer"]:14: in function <[string "LuaInterface::loadBuffer"]:7>

Can Anyone Help??
 
Back
Top