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

MoveEvent "real tibia svargrond arena" for TFS 0.3.4 ver. 3

Status
Not open for further replies.
what's the point in setting storage values 0 when players log in? 30+ storages * XXXX players, useless in my opinion lol
 
Is there any possibility you can make this for 8.5 TFS 0.3.5?
Cus when i add all those things, and start the server it loads untill Script system, then it says it doesn't respond and it shuts down :(
 
Last edited:
Hello

I have this arena scripts in TFS CD 0.3.5
everything is ok, BUT
when I open chest with reward, there isn't any text and i can take reward many times ;/ wtf?
 
Weel, i keep getting this error.

Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/arenakill.lua:onKill

data/creaturescripts/scripts/arenakill.lua:4: attempt to compare number with boolean
stack traceback:
        data/creaturescripts/scripts/arenakill.lua:4: in function <data/creaturescripts/scripts/arenakill.lua:1>

Also my monsters (every normal monster) doesn't die, just lose his line of hp and stays online.
Thought, when I delete those lines
Code:
    if room > 0 then

end
Then the monsters are ok, but I keep getting message
You may enter the next arena pit!
for every killed monster. What could be the problem? I've checked the scripts hundrets of time and everything seems to be ok, when I remove the arena scripts from creaturescripts the monsters are ok so it's definitely problem with arenas scripts.
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
The script is like that.

Code:
function onKill(cid, target, lastHit)
local monster = getCreatureName(target)
local room = getArenaMonsterIdByName(monster)
    if room > 0 then
        setPlayerStorageValue(cid, room, 1)
        doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You may enter the next arena pit!')
    end
    return TRUE
end

So the return true is in the right position, or?
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
@Up,
Yes that looks correct, and sup klek?
I was on your server for awhile, if you remember.
 
@kleksu

Lua:
function onKill(cid, target)
	local room = getArenaMonsterIdByName(getCreatureName(target))
	if room > 0 then
		setPlayerStorageValue(cid, room, 1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next room!')
	end
	return TRUE
end
 
@Up,
Yes that looks correct, and sup klek?
I was on your server for awhile, if you remember.

EDIT: Oh, so what was your name? (lol i didn't read well ur post)

@kleksu

Lua:
function onKill(cid, target)
	local room = getArenaMonsterIdByName(getCreatureName(target))
	if room > 0 then
		setPlayerStorageValue(cid, room, 1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next room!')
	end
	return TRUE
end

I'have tried this, and another, nothing works. The same error, as before. Attempt to compare number with boolean when killing any monster. Arena monsters are dieing, but not the other.
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
Then you don't have function getArenaMonsterIdByName lol ;p
do you have /lib/arena.lua?
 
Then you don't have function getArenaMonsterIdByName lol ;p
do you have /lib/arena.lua?

Yea i have it, but i must have changed something and did return false instead of return 0. 0 didn't work, but did return 0 again with that code below in login.lua and works like a charm. Thanks anyway guys.

Code:
 if (InitArenaScript ~= 0) then
   InitArenaScript = 1
   -- make arena rooms free
       for i = 42300, 42309 do
           setGlobalStorageValue(i, 0)
           setGlobalStorageValue(i+100, 0)
       end
   end
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
I killed the monster's last room, the following message appears
"First kill monster!"
Please how to fix?

same problem..!
edit :
arenaKickPosition = {x=554, y=1156, z=7} -- position where kick from arena when you leave/you did arena level
shall this POS be in reward room or outside there the NPC are?!
 
Last edited:
same problem..!
edit :
arenaKickPosition = {x=554, y=1156, z=7} -- position where kick from arena when you leave/you did arena level
shall this POS be in reward room or outside there the NPC are?!

Go to ./movements/scripts/didarenalevel.lua and change:
Code:
doTeleportThing(cid, arenaKickPosition, TRUE)
To:
Code:
local yourPositions = {x=,y=,z=} -- reward room
doTeleportThing(cid, yourPositions, TRUE)
 
Go to ./movements/scripts/didarenalevel.lua and change:
Code:
doTeleportThing(cid, arenaKickPosition, TRUE)
To:
Code:
local yourPositions = {x=,y=,z=} -- reward room
doTeleportThing(cid, yourPositions, TRUE)

now the last tp dont work ?
 
Status
Not open for further replies.
Back
Top