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

"real tibia svargrond arena" by Gesior

well my arena is working fine on 0.3.1 pl2, but the chests are crazy, i mean i can get how many items i want just clicking to open the chest so i keep getting the items LOL, how to fix it ? i also dunno how work this new quest system
 
hi there...
my first post!! oO

i've tried a lot of solutions here...

and none worked

i fixed the npc by myself o//

on kill.lua
i wrote return true
before last end but nothing happens

on login.lua

if i put return true i can go next pit but the monster doesn't die
and if do not the monster die but when i go to teleport
he tells me to kill the monster fisrt

what can i do?

i've read 27 pages of posts and tried each solution

i use tfs latest release

thanks...
 
Sorry. I must use polish.
Gesior mam sprawe uzywa 0.3.1pl2 i jak walne w creaturscript kill.lua to mi potworki po zabicu stoja chodz nie maja hp. za godzine mam start ots i bez tego nie moge go poscic pomoz mi szybko jesli mozesz... aaa i na dodatek nagrody mozna brac ciagle nie ma pozniej empty chest.
 
Last edited:
z potworami dodaj przed ostatnim endem "return TRUE" wiec koncowka skryptu kill powinna wygladac tak:

Code:
return TRUE
end

a co do skrzynek to twoj blad, bo mi wszystko dziala jak nalezy.

(had to post it in polish :p, sry)
 
Dobra dzieki mistrzu... :p

(sorry. I must use polish i no have time.)
 
after 6 horas of tries

i finally made it works

oO

i use TFS 0.3b3

here is the config that works the fix to error

"Kill the monster first!" = "Najpierw zabij potwora!"

login.lua:
Code:
function onLogin(cid)
	registerCreatureEvent(cid, "PlayerDeath")
	registerCreatureEvent(cid, "PlayerKill")
	if (InitArenaScript ~= 0) then
    InitArenaScript = 1
    -- libera as salas da arena
        for i = 42300, 42309 do
            setGlobalStorageValue(i, 0)
            setGlobalStorageValue(i+100, 0)
        end
    end
    -- senão completou arena 1 começa do zero
    if getPlayerStorageValue(cid, 42309) < 1 then
        for i = 42300, 42309 do
            setPlayerStorageValue(cid, i, 0)
        end
    end
    -- senão completou arena 2 começa do zero
    if getPlayerStorageValue(cid, 42319) < 1 then
        for i = 42310, 42319 do
            setPlayerStorageValue(cid, i, 0)
        end
    end
    -- senão completou arena 3 começa do 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) -- não fez arena
    end
    setPlayerStorageValue(cid, 42350, 0) -- tempo pra kick 0
    setPlayerStorageValue(cid, 42352, 0) -- não está na arena  
	
	if(InitShopComunication == 0) then
	local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
        local historyPage = addEvent(historyPage, 60000, {})
	InitShopComunication = eventServ
    end
	return TRUE
end

kill.lua

Code:
function onKill(cid, target)
    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 1
end


you must set return true in login .lua
and return 1 in kill.lua

i do not know why i am noob in scripting

but i tried false and true and 0 and none of these values worked

Another point:

For not summon the second monster of scrapper mode is because this distro come with wrong name on monster.xml

Code:
<monster name="Keebosh the Exile" file="Arena/scrapper/kreebosh the exile.xml"/>

just add a "r" in the name

the correct is
Code:
 <monster name="Kreebosh the Exile" file="Arena/scrapper/kreebosh the exile.xml"/>

for now i am working in rewards that are not working too...

thanks for atention

DHAUSDhASUDHAs

if this works to you, do you know what do?

add rep
<<<

DHAUSDhASdhUASDA

sorry my english
 
@Up
lol haha xd
I've made this script works on tfs 0.3.1 patch2 in 10 minutes xd (+tests xd)
It's working in 100% without any bugs ;s

oO

what experienced you are!!!

gratz...

why do not you help the others to make it works too?

Do not come to apologyze yourself man...

¬¬
 
i talk with npc and when try to enter in teleport
Najpierw zabij potwora!

using mystic spirit and mysql
 
I have TFS 0.3b3 and i have the same error like Aragornik, but all another scripts are working perfectly...hmm maybe not all beacouse i can took a present and a backpack, not only one of this 2 prizes.

@Up
I had this same problem.
It's beacouse of your login.lua or check this post:
http://otland.net/209039-post213.html


@Gesior
Can you tell how to fix the problem with chests?
Look this posts:
http://otland.net/216066-post230.html
http://otland.net/220932-post231.html

Ps: 200 post :p

@Up
lol haha xd
I've made this script works on tfs 0.3.1 patch2 in 10 minutes xd (+tests xd)
It's working in 100% without any bugs ;s


isaw if made it in 10 minutes

your first post was 3rd february

and the second askin for help was on 7th february

oO

how long is 10 minutes where you leave?

4 days?
 
@Up
hyhy, this topic "ask for help" was ask for help because i didn't knew that it's not a bug :)
(I didn't tested it and i thought that it's not working, but it was working lul)

oO

what experienced you are!!!

gratz...

why do not you help the others to make it works too?

Do not come to apologyze yourself man...

¬¬
Because nobody ask me?

@Down
Yeah, good luck noob :)
 
Last edited:
what kind education...

thanks for that...

i think the talk ends here...

let's this thread for people who needs it so...

=p

good luck polite boy!
 
Back
Top