• 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.
gesior, i got tfs0.3.4 and when i kill the monster i cant go into the portal it says kill the monster first why? or is it just for i dont know how the quest works xD

can u make spawns? there the monsters is.. please:(

15:39 First kill monster!
 
Im getting this error :/
Code:
[05/06/2009 09:05:37] Lua Script Error: [MoveEvents Interface] 
[05/06/2009 09:05:37] data/movements/scripts/arena/arenaroom.lua:onStepIn

[05/06/2009 09:05:37] data/movements/scripts/arena/arenaroom.lua:16: attempt to compare number with string
[05/06/2009 09:05:37] stack traceback:
[05/06/2009 09:05:37] 	data/movements/scripts/arena/arenaroom.lua:16: in function <data/movements/scripts/arena/arenaroom.lua:1>
Exactly the same error sometimes.
 
Getting error when it loads the monsters, otherwise everything seems to be loading correctly.

However, as it doesnt load the arena monsters, they won't appear in-game. (Notice that I don't use your map, I use my own and I have just changed the kick/leave position in libs/arena.lua".

Any suggestions?
 
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/arena/arenaroom.lua:eek:nStepIn

luaGetThingPos(). Thing not found

Lua Script Error: [MoveEvents Interface]
data/movements/scripts/arena/arenaroom.lua:eek:nStepIn

luaDoCreateMonster(). Cannot create monster: frostfur

Fail.... when entering first room
 
Code:
 data/movements/scripts/arenaroom.lua:16: attempt to compare boolean with number
 stack traceback:
 data/movements/scripts/arenaroom.lua:16: in function <data/movements/scripts/arenaroom.lua:1>

Any suggestions how to fix this?
 
I use tfs 0.3.4 pl 2

and make this bug:
[30/06/2009 04:26:15] Lua Script Error: [CreatureScript Interface]
[30/06/2009 04:26:15] data/creaturescripts/scripts/kill.lua:eek:nKill

[30/06/2009 04:26:15] data/creaturescripts/scripts/kill.lua:3: attempt to call global 'getArenaMonsterIdByName' (a nil value)
[30/06/2009 04:26:15] stack traceback:
[30/06/2009 04:26:15] data/creaturescripts/scripts/kill.lua:3: in function <data/creaturescripts/scripts/kill.lua:1>
 
Bug in last room

I killed the monster's last room, the following message appears
"First kill monster!"
Please how to fix?
 
I killed the monster's last room, the following message appears
"First kill monster!"
Please how to fix? [2]
 
Last edited:
1. copy map (not just set action ids, you will miss sth)
2. copy monsters (the will summon then)
3. delete from arenaroom line: "if monster_uid >0 then" and "end"
 
Isn't working for me :S!!

Code:
[11/07/2009 13:13:24] Lua Script Error: [MoveEvents Interface] 
[11/07/2009 13:13:24] data/movements/scripts/arenaroom.lua:onStepIn

[11/07/2009 13:13:24] luaGetThingPos(). Thing not found

[11/07/2009 13:13:24] Lua Script Error: [MoveEvents Interface] 
[11/07/2009 13:13:24] data/movements/scripts/arenaroom.lua:onStepIn

[11/07/2009 13:13:24] luaDoCreateMonster(). Cannot create monster: frostfur

That is when i try to enter te teleport first time, when i try to enter again it says:
Code:
13:13 Admin is now in next room. Wait a moment and try again.
 
Didn't work here. After talk with "Grim Reaper NPC -_-" Arener i can't open doors. Why?

All is ok. I didn't save action file after changing. My bad. Work perfect.
 
Last edited:
same problem ( arenaroom.lua )

Code:
function onStepIn(cid, item, position, fromPosition)
	if InitArenaScript == 0 then
		InitArenaScript = 1
		-- make arena rooms free
		for i = 0,9 do
			setGlobalStorageValue(42300+i, 0)
			setGlobalStorageValue(42400+i, 0)
		end
		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 = doCreateMonster(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))..' jest teraz w tym pokoju. Zaczekaj chwile.')
		end
	else
		doTeleportThing(cid, fromPosition, TRUE)
		doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,'Najpierw zabij potwora!')
	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,'Zostales wyrzucony z areny!')
			elseif player_storage - 10 <= os.time() then
				doPlayerSendTextMessage(player,MESSAGE_EVENT_DEFAULT,'Masz ' .. player_storage - os.time() .. ' sekund, zeby przejsc do kolejnego pokoju!')
			end
		else
			setGlobalStorageValue(i, 0)
		end
	end
end

Please fix it and give script here please.
 
Code:
    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)
setting 30 storages to every char which is logging in isn't a good way i think for example after 2 months my player_storage weight 74,7 MB mostly because of those 30 storages onlogin ... maybe there is other way to script it out ?
 
Status
Not open for further replies.
Back
Top