• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

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

Status
Not open for further replies.
Do all chests manually in map editor, action 2000, unique as storage, and chest content as prizes ;)
 
Do all chests manually in map editor, action 2000, unique as storage, and chest content as prizes ;)

cant i remove something in the script so i can take all ?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.actionid >= 42361 and item.actionid <= 42365 and getPlayerStorageValue(cid, 42361) ~= 1 then
		local reward = 0
		if item.actionid == 42361 then
[B]			reward = doCreateItemEx(7342,1) - i have edit this line[/B]
			doAddContainerItem(reward, 7372, 1)
			doAddContainerItem(reward, 6569, 10)
			doAddContainerItem(reward, 6574, 1)
			doAddContainerItem(reward, 2114, 1)
		elseif item.actionid == 42362 then
			reward = doCreateItemEx(7406,1)
		elseif item.actionid == 42363 then
			reward = doCreateItemEx(7380,1)
		elseif item.actionid == 42364 then
			reward = doCreateItemEx(7392,1)
		elseif item.actionid == 42365 then
			reward = doCreateItemEx(7342,1)
			doAddContainerItem(reward, 7365, 100)
			doAddContainerItem(reward, 7364, 100)
		end
		if doPlayerAddItemEx(cid, reward, 0) == RETURNVALUE_NOERROR then
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You found ' .. getItemName(getThing(reward).uid) .. '.')
			setPlayerStorageValue(cid, 42361, 1)
		else
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You do not have enought capacity or place in backpack.')
		end
	elseif item.actionid >= 42371 and item.actionid <= 42375 and getPlayerStorageValue(cid, 42371) ~= 1 then
		local reward = 0
		if item.actionid == 42371 then
			reward = doCreateItemEx(1990,1)
			doAddContainerItem(reward, 7372, 1)
			doAddContainerItem(reward, 6569, 10)
			doAddContainerItem(reward, 6574, 1)
			doAddContainerItem(reward, 7183, 1)
		elseif item.actionid == 42372 then
			reward = doCreateItemEx(7384,1)
		elseif item.actionid == 42373 then
			reward = doCreateItemEx(7389,1)
		elseif item.actionid == 42374 then
			reward = doCreateItemEx(7415,1)
		elseif item.actionid == 42375 then
			reward = doCreateItemEx(7342,1)
			doAddContainerItem(reward, 7365, 100)
			doAddContainerItem(reward, 2547, 100)
			doAddContainerItem(reward, 2547, 100)
			doAddContainerItem(reward, 2311, 50)
			doAddContainerItem(reward, 2304, 50)
		end
		if doPlayerAddItemEx(cid, reward, 0) == RETURNVALUE_NOERROR then
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You found ' .. getItemName(getThing(reward).uid) .. '.')
			setPlayerStorageValue(cid, 42371, 1)
		else
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You do not have enought capacity or place in backpack.')
		end
	elseif item.actionid >= 42381 and item.actionid <= 42385 and getPlayerStorageValue(cid, 42381) ~= 1 then
		local reward = 0
		if item.actionid == 42381 then
			reward = doCreateItemEx(1990,1)
			doAddContainerItem(reward, 7372, 1)
			doAddContainerItem(reward, 6569, 10)
			doAddContainerItem(reward, 6574, 1)
			doAddContainerItem(reward, 6568, 1)
		elseif item.actionid == 42382 then
			reward = doCreateItemEx(7429,1)
		elseif item.actionid == 42383 then
			reward = doCreateItemEx(7434,1)
		elseif item.actionid == 42384 then
			reward = doCreateItemEx(7390,1)
		elseif item.actionid == 42385 then
			reward = doCreateItemEx(7342,1)
			doAddContainerItem(reward, 2273, 50)
			doAddContainerItem(reward, 2268, 50)
			doAddContainerItem(reward, 7443, 1)
			doAddContainerItem(reward, 7440, 1)
			doAddContainerItem(reward, 6529, 100)
		end
		if doPlayerAddItemEx(cid, reward, 0) == RETURNVALUE_NOERROR then
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You found ' .. getItemName(getThing(reward).uid) .. '.')
			setPlayerStorageValue(cid, 42381, 1)
		else
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You do not have enought capacity or place in backpack.')
		end
	end
	return TRUE
end
 
You can edit, each action = each storage, then you can take all.
 
mine is bugged :s

i can do all, when monster summons

my char dont say anything like "start fight" and when i kill the monster i cat join portal :s
 
[22/08/2009 23:49:08] data/creaturescripts/scripts/arenakill.lua:2: attempt to call global 'getArenaMonsterIdByName' (a nil value)
[22/08/2009 23:49:08] stack traceback:
[22/08/2009 23:49:08] data/creaturescripts/scripts/arenakill.lua:2: in function <data/creaturescripts/scripts/arenakill.lua:1>

... spams my console :/
 
[22/08/2009 23:49:08] data/creaturescripts/scripts/arenakill.lua:2: attempt to call global 'getArenaMonsterIdByName' (a nil value)
[22/08/2009 23:49:08] stack traceback:
[22/08/2009 23:49:08] data/creaturescripts/scripts/arenakill.lua:2: in function <data/creaturescripts/scripts/arenakill.lua:1>

... spams my console :/

server verison ?
 
Hello again! I would like to know how to change the time that player can spend in each room of arena before being kicked?

Thank you!
 
I have a problem.
No errors in console
but when i kill the first monster and try to enter the tp
it say First kill monster.

Any ide to fix this?

I use the tfs 0.3.5 pl1 server.
 
Please any one know how to fix the "First kill monster" bugg?

I give rep+ to the one helping me.
:D
 
It didn't works on tfs 0.3.5.pl1.
I don't have anything in console (errors). And if I comes to Arener and I say: yes, yes. Then teleport doesn't work... :/
 
Login, error svargrond arena

PHP:
[29/08/2009 09:14:38] Lua Script Error: [CreatureScript Interface] 
[29/08/2009 09:14:38] data/creaturescripts/scripts/login.lua

[29/08/2009 09:14:38] luaGetPlayerStorageValue(). Player not found

[29/08/2009 09:14:38] Lua Script Error: [CreatureScript Interface] 
[29/08/2009 09:14:38] data/creaturescripts/scripts/login.lua

[29/08/2009 09:14:38] data/creaturescripts/scripts/login.lua:90: attempt to compare boolean with number
[29/08/20

?? :huh:
 
Last edited:
problems in svargrond arena in tfs 0.3.5

resolved Data/creaturescripts/login.lua \ and have other ERROR look the pic and sorry for my bad english :p
 

Attachments

  • Error_in_testing.JPG
    Error_in_testing.JPG
    99.2 KB · Views: 30 · VirusTotal
Last edited:
Status
Not open for further replies.
Back
Top