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

MOD perfect Svargrond Arena System!

0.3.6pl1

When I walk into the teleports with actionID 42300 I get the error in the console at first and when I walk into the teleporter the second time I get "You have been kicked.!". Been trying to figure it out for a few hours now but i've given up.. Any ideas?

Code:
[Error - MoveEvents Interface]
buffer:onStepIn
Description:
(luaGetThingPosition) Thing not found

[Error - MoveEvents Interface]
buffer:onStepIn
Description:
[string "loadBuffer"]:69: attempt to index local 'SpawnPos' (a boolean value)
stack traceback:
        [string "loadBuffer"]:69: in function <[string "loadBuffer"]:2>
 
Why, I add all, door change to mango ? I change id door and don't work door.
 
Last edited:
the quest seems to be good only when a players got reward i got spawmed with this in console any fix for it?


Code:
[20:22:08.078] [Error - Action Interface]
[20:22:08.078] domodlib('arenaFunctions')
[20:22:08.078] function onUse(cid, item, fromPosition, itemEx, toPosition)
[20:22:08.078]     local myMove = getDirectionMove(cid, fromPosition)

[20:22:08.078]     if myMove == nil then

[20:22:08.078]         return FALSE

[20:22:08.078]     end

[20:22:08.078]     local Reward = Rewards[item.actionid]

[20:22:08.078]     if Reward then

[20:22:08.078]         if getPlayerStorageValue(cid, Reward.Stor) ~= 1 then

[20:22:08.078]             local reward = nil

[20:22:08.078]             if Reward.Cont ~= nil then

[20:22:08.078]                 reward = doCreateItemEx(Reward.Cont, 1)

[20:22:08.078]                 for i = 1, #Reward.items do

[20:22:08.078]                     doAddContainerItem(reward, Reward.items[i], R
eward.count[i])

[20:22:08.078]                 end

[20:22:08.078]             else

[20:22:08.078]                 reward = doCreateItemEx(Reward.item, 1)

[20:22:08.078]             end

[20:22:08.093]             if reward ~= nil then

[20:22:08.093]                 if doPlayerAddItemEx(cid, reward, FALSE) == RETUR
NVALUE_NOERROR then

[20:22:08.093]                     doPlayerSendTextMessage(cid, MESSAGE_INFO_DES
CR,'You have found a '..getItemNameById(getThing(reward).itemid)..'.')

[20:22:08.093]                     setPlayerStorageValue(cid, Reward.Stor, 1)

[20:22:08.093]                                 addPlayerRep(cid, 5, TEXTCOLOR_LI
GHTBLUE)

[20:22:08.093]                 else

[20:22:08.093]                     doPlayerSendTextMessage(cid, MESSAGE_INFO_DES
CR, Cancel[3])

[20:22:08.093]                 end

[20:22:08.093]             end

[20:22:08.093]         else

[20:22:08.093]             doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Canc
el[4])

[20:22:08.093]         end

[20:22:08.093]     elseif RewardsDoors[item.actionid] then

[20:22:08.093]         if myArenaLevelIs(cid).LV >= RewardsDoors[item.actionid]
then

[20:22:08.093]             doTransformItem(item.uid, OpenDoorsID)

[20:22:08.093]             doMoveCreature(cid, myMove)

[20:22:08.093]         else

[20:22:08.093]             doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Canc
el[5])

[20:22:08.093]         end

[20:22:08.093]     elseif item.actionid == DoorsActID and getPlayerStorageValue(
cid, talkNPC) == 1 then

[20:22:08.093]         doTransformItem(item.uid, OpenDoorsID)

[20:22:08.093]         doMoveCreature(cid, myMove)

[20:22:08.093]     else

[20:22:08.093]         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Cancel[1
])
[20:22:08.093] end

[20:22:08.093]     return TRUE

[20:22:08.093] end:onUse
[20:22:08.093] Description:
[20:22:08.093] [string "LuaInterface::loadBuffer"]:43: attempt to call global 'a
ddPlayerRep' (a nil value)
[20:22:08.093] stack traceback:
[20:22:08.093]  [string "LuaInterface::loadBuffer"]:43: in function <[string "Lu
aInterface::loadBuffer"]:2>
 
Code:
 end:onStepIn
 Description: 
(luaDoCreateNpc) Npc with name '' not found

When enter the room, nothing is summoned.
And yes, all the monsters exists and is fine.
 
what distro do you using linux or windows?
check big letters in monster names or files.
 
How to fix the mango bug? When I enter in the door and leave it turns a mango....
The problem is here:

if item.actionid == DoorsActID or RewardsDoors[item.actionid] then

doTransformItem(item.uid, item.itemid - 2)

elseif isInArray(GobletTiles, item.actionid) == TRUE then

doTransformItem(item.uid, item.itemid + 1)
end

return TRUE

Just don't know how to fix..
 
check your opened door Id and give correct in there OpenDoorsID = 5127 --if you change doors item ids, change me =D
 
Code:
[6/11/2012 14:29:34] [Error - NpcScript Interface] 
[6/11/2012 14:29:34] data/npc/scripts/svargrond_arena.lua:onCreatureSay
[6/11/2012 14:29:34] Description: 
[6/11/2012 14:29:34] (LuaInterface::internalGetPlayerInfo) Player not found when requesting player info #3

[6/11/2012 14:29:35] [Error - NpcScript Interface] 
[6/11/2012 14:29:35] data/npc/scripts/svargrond_arena.lua:onCreatureSay
[6/11/2012 14:29:35] Description: 
[6/11/2012 14:29:35] data/npc/scripts/svargrond_arena.lua:81: attempt to compare number with boolean
[6/11/2012 14:29:36] stack traceback:
[6/11/2012 14:29:36] 	data/npc/scripts/svargrond_arena.lua:81: in function <data/npc/scripts/svargrond_arena.lua:55>
[6/11/2012 14:29:36] 	[C]: in function 'selfSay'
[6/11/2012 14:29:36] 	data/npc/scripts/svargrond_arena.lua:63: in function <data/npc/scripts/svargrond_arena.lua:55>

Getting this npc error, with the script from this post.

Somebody can help me?
 
Back
Top