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

"real tibia svargrond arena" by Gesior

data/creaturescripts/scripts/kill.lua:4: attempt to compare number with boolean
[04/03/2009 12:28:50] stack traceback:
[04/03/2009 12:28:50] data/creaturescripts/scripts/kill.lua:4: in function <data/creaturescripts/scripts/kill.lua:1>


How to solve it?

all working fine.. but if i kill any monster.. it appears on console...
 
@up i did.. i put return true...

But stills.. givin this error when i kill any monster a bug for example..
 
I'm wondering why do you add to everything you release a by Gesior note?
I don't want to be rude, but do you have some problems with your ego? You want kids to masturbate on your nickname? Or you want to use popularity of hell-vulnerable (no, no! People are sure its great, because it uses POTS- HELL FAKE. POTS == SECURE when you know how to use it!) with illegal template account maker (that doesn't even properly work in 100%) for all wannabe kids- so they put to their OT everything by Gesior because he is so great? I don't get it, simple.

Account Maker by Gesior
SMS Shop by Gesior
GesiorWar Server
Advanced Train by Gesior
TFS modified (WTF? You didn't do a shit, just copied other work here) by Gesior
Svagrond by Gesior
**** by Gesior
**** by Gesior

Can't you be more CREATIVE?


I think the same and i think Gesior's acc maker sucks :D A lot of bugs...
 
when i goto enter in the arena, i have error:

[17/03/2009 01:24:55] Lua Script Error: [MoveEvents Interface]
[17/03/2009 01:24:55] data/movements/scripts/arenaroom.lua:eek:nStepIn

[17/03/2009 01:24:55] luaGetThingPos(). Thing not found

[17/03/2009 01:24:55] Lua Script Error: [MoveEvents Interface]
[17/03/2009 01:24:55] data/movements/scripts/arenaroom.lua:eek:nStepIn

[17/03/2009 01:24:55] luaDoSummonCreature(). Can not summon monster: frostfur


i have all the monsters of arena and i used TFS 0.2 (mystic spirit) last pacth 23

help me plx
 
I've done as far as I know everything correct, read the entire thread, and when I run the server, I don't get any errors in the console about the arena at all.

However, after I talked to the NPC, and I try to get in one of those three teleports, nothing happens. Also, when I teleport someone in the first room, there's no creature, none of the TP's work and when I spawn a monster, like "frostfur" and someone kills it, it does give the message that I can now proceed to the next arena. I've been working on getting this nice quest to work for really long, so if someone can help me out that would be great!

Sincerely,
UpAndDown!
 
Gesior one Question, i have TFS (tfs0.3.2) and in my engine I don't have "global.lua" ;/ I make it with the script

-- arena script
InitArenaScript = 0
arena_room_max_time = 240
arenaKickPosition = {x=336, y=60, z=7} -- position where kick from arena when you leave/you did arena level
arena_monsters = {}
arena_monsters[42300] = 'frostfur' -- first monster from 1 arena
arena_monsters[42301] = 'bloodpaw'
arena_monsters[42302] = 'bovinus'
arena_monsters[42303] = 'achad'
arena_monsters[42304] = 'colerian the barbarian'
arena_monsters[42305] = 'the hairy one'
arena_monsters[42306] = 'axeitus headbanger'
arena_monsters[42307] = 'rocky'
arena_monsters[42308] = 'cursed gladiator'
arena_monsters[42309] = 'orcus the cruel'
arena_monsters[42310] = 'avalanche' -- first monster from 2 arena
arena_monsters[42311] = 'kreebosh the exile'
arena_monsters[42312] = 'the dark dancer'
arena_monsters[42313] = 'the hag'
arena_monsters[42314] = 'slim'
arena_monsters[42315] = 'grimgor guteater'
arena_monsters[42316] = 'drasilla'
arena_monsters[42317] = 'spirit of earth'
arena_monsters[42318] = 'spirit of water'
arena_monsters[42319] = 'spirit of fire'
arena_monsters[42320] = 'webster' -- first monster from 3 arena
arena_monsters[42321] = 'darakan the executioner'
arena_monsters[42322] = 'norgle glacierbeard'
arena_monsters[42323] = 'the pit lord'
arena_monsters[42324] = 'svoren the mad'
arena_monsters[42325] = 'the masked marauder'
arena_monsters[42326] = 'gnorre chyllson'
arena_monsters[42327] = "fallen mooh'tah master ghar"
arena_monsters[42328] = 'deathbringer'
arena_monsters[42329] = 'the obliverator'

function getArenaMonsterIdByName(name)
name = string.lower(tostring(name))
for i = 42300, 42329 do
if tostring(arena_monsters) == name then
return i
end
end
return 0
end



but it wann't work. I become the info in engine:

[04/04/2009 10:31:15] Lua Script Error: [MoveEvents Interface]
[04/04/2009 10:31:15] data/movements/scripts/arenaroom.lua:eek:nStepIn

[04/04/2009 10:31:15] data/movements/scripts/arenaroom.lua:17: attempt to index global 'arena_monsters' (a nil value)
[04/04/2009 10:31:15] stack traceback:
[04/04/2009 10:31:15] data/movements/scripts/arenaroom.lua:17: in function <data/movements/scripts/arenaroom.lua:1>

What shuld I do?
 
Last edited:
@up
Add it to lib/function.lua,
global.lua doesn't exist anymore for the latest version of TFS.
 
@up
Add it to lib/function.lua,
global.lua doesn't exist anymore for the latest version of TFS.

Thx, now I can enter the arena but te montsters donn't die, I fight then (they lost his statsus bar 0/0 life) byt the still atack me i can go to the teleport i fight te next monster to the end but i stock by "Orcus the Cruel", he has no life points buy the slill attack me I cann't leave the Arena. I tp my charater to another place and I will fight a bear and he wann't die too, what shuld I do? I thnk with the --- login.lua --- is something wrong.


login.lua

function onLogin(cid)
registerCreatureEvent(cid, "PlayerKill")
if (InitArenaScript ~= 0) then
InitArenaScript = 1
-- make arena rooms free
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
end
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena

local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do
doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent'))
end
end

registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "PlayerDeath")
return TRUE
end
 
First kill the monster

I've got a strange error, i couldn't find anyone with this one so i'll ask about it :p.

When i've entered the first stage with frostpaw he spawns and i can kill him BUT when hes dead i can't go to the next room it says "First kill the monster". Heres my arenaroom.lua where i think the problem is. post your Arenaroom.lua so that i can test them.
PHP:
function onStepIn(cid, item, position, fromPosition)
	if InitArenaScript == 0 then
		InitArenaScript = 1
		checkArenaRooms({})
	end
	local arena_room = item.actionid
	local player_arena = getPlayerStorageValue(cid, 42355)
	if getPlayerStorageValue(cid, arena_room+getPlayerStorageValue(cid, 42355)*10-1) == 1 or arena_room+getPlayerStorageValue(cid, 42355)*10-1 == 42299 then
		if getGlobalStorageValue(cid, arena_room) == 0 then
			local monster_uid = getGlobalStorageValue(arena_room+100)
			if monster_uid > 0 then
				if isCreature(monster_uid) == TRUE then
					doRemoveCreature(monster_uid)
				end
			end
			local spawn_pos = getThingPos(arena_room)
			local monster = doSummonCreature(arena_monsters[arena_room+getPlayerStorageValue(cid, 42355)*10], {x=spawn_pos.x-1,y=spawn_pos.y-1,z=spawn_pos.z})
			setGlobalStorageValue(arena_room+100, monster)
			doTeleportThing(cid, spawn_pos, TRUE)
			setGlobalStorageValue(arena_room, cid)
			setGlobalStorageValue(arena_room-1, 0)
			setPlayerStorageValue(cid, 42350, os.time()+arena_room_max_time)
		else
			doTeleportThing(cid, fromPosition, TRUE)
			doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(getGlobalStorageValue(cid, arena_room))..'Wait until the player before you completes the stage.')
		end
	else
		doTeleportThing(cid, fromPosition, TRUE)
		doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,'Kill the monster first!')
	end
	if arena_room == 42300 then
		setPlayerStorageValue(cid, 42351, 0)
		setPlayerStorageValue(cid, 42352, 1)
	end
	return TRUE
end

function checkArenaRooms(param)
	addEvent(checkArenaRooms, 1000, {})
	for i = 42300, 42309 do
		local player = getGlobalStorageValue(i)
		if isPlayer(player) == TRUE then
			local player_storage = getPlayerStorageValue(player, 42350)
			if player_storage <= os.time() then
				doTeleportThing(player, arenaKickPosition, TRUE)
				setPlayerStorageValue(player, 42350, 0)
				setGlobalStorageValue(i, 0)
				doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'You have been thrown out of the arena!')
			elseif player_storage - 10 <= os.time() then
				doPlayerSendTextMessage(player,MESSAGE_EVENT_DEFAULT,'You have ' .. player_storage - os.time() .. ' Seconds to complete the stage!')
			end
		else
			setGlobalStorageValue(i, 0)
		end
	end
end
 
I'm wondering why do you add to everything you release a by Gesior note?
I don't want to be rude, but do you have some problems with your ego? You want kids to masturbate on your nickname? Or you want to use popularity of hell-vulnerable (no, no! People are sure its great, because it uses POTS- HELL FAKE. POTS == SECURE when you know how to use it!) with illegal template account maker (that doesn't even properly work in 100%) for all wannabe kids- so they put to their OT everything by Gesior because he is so great? I don't get it, simple.

Account Maker by Gesior
SMS Shop by Gesior
GesiorWar Server
Advanced Train by Gesior
TFS modified (WTF? You didn't do a shit, just copied other work here) by Gesior
Svagrond by Gesior
**** by Gesior
**** by Gesior

Can't you be more CREATIVE?


Why wouldnt he put hes name in hes works? "Made by gesior" its true, the scritpts is made by him!:D

You make new tfs vesrion and on the top its like by: talaturen, elf and some other dudes. So its the same thing?
 
Someone really needs to update this to 8.41 I can get the npc to work,the doors to work and the chest to work but when it comes to the movments i can not get the tp's to work they don't do anything. no error message just nothing
 
I've got a strange error, i couldn't find anyone with this one so i'll ask about it :p.

When i've entered the first stage with frostpaw he spawns and i can kill him BUT when hes dead i can't go to the next room it says "First kill the monster". Heres my arenaroom.lua where i think the problem is. post your Arenaroom.lua so that i can test them.
PHP:
function onStepIn(cid, item, position, fromPosition)
	if InitArenaScript == 0 then
		InitArenaScript = 1
		checkArenaRooms({})
	end
	local arena_room = item.actionid
	local player_arena = getPlayerStorageValue(cid, 42355)
	if getPlayerStorageValue(cid, arena_room+getPlayerStorageValue(cid, 42355)*10-1) == 1 or arena_room+getPlayerStorageValue(cid, 42355)*10-1 == 42299 then
		if getGlobalStorageValue(cid, arena_room) == 0 then
			local monster_uid = getGlobalStorageValue(arena_room+100)
			if monster_uid > 0 then
				if isCreature(monster_uid) == TRUE then
					doRemoveCreature(monster_uid)
				end
			end
			local spawn_pos = getThingPos(arena_room)
			local monster = doSummonCreature(arena_monsters[arena_room+getPlayerStorageValue(cid, 42355)*10], {x=spawn_pos.x-1,y=spawn_pos.y-1,z=spawn_pos.z})
			setGlobalStorageValue(arena_room+100, monster)
			doTeleportThing(cid, spawn_pos, TRUE)
			setGlobalStorageValue(arena_room, cid)
			setGlobalStorageValue(arena_room-1, 0)
			setPlayerStorageValue(cid, 42350, os.time()+arena_room_max_time)
		else
			doTeleportThing(cid, fromPosition, TRUE)
			doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(getGlobalStorageValue(cid, arena_room))..'Wait until the player before you completes the stage.')
		end
	else
		doTeleportThing(cid, fromPosition, TRUE)
		doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,'Kill the monster first!')
	end
	if arena_room == 42300 then
		setPlayerStorageValue(cid, 42351, 0)
		setPlayerStorageValue(cid, 42352, 1)
	end
	return TRUE
end

function checkArenaRooms(param)
	addEvent(checkArenaRooms, 1000, {})
	for i = 42300, 42309 do
		local player = getGlobalStorageValue(i)
		if isPlayer(player) == TRUE then
			local player_storage = getPlayerStorageValue(player, 42350)
			if player_storage <= os.time() then
				doTeleportThing(player, arenaKickPosition, TRUE)
				setPlayerStorageValue(player, 42350, 0)
				setGlobalStorageValue(i, 0)
				doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'You have been thrown out of the arena!')
			elseif player_storage - 10 <= os.time() then
				doPlayerSendTextMessage(player,MESSAGE_EVENT_DEFAULT,'You have ' .. player_storage - os.time() .. ' Seconds to complete the stage!')
			end
		else
			setGlobalStorageValue(i, 0)
		end
	end
end

I have this same problem :// Gesior help us! ;p
 
Back
Top