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

Action Football field (scripts + maps)

All script (ok)
I need Gesior Placar
football_top_players.php

1º (10 Wins) Lord'Paulistinha
2º (08 Wins) Tacadora de Runas
3° (05 Wins) Killer Lord

:peace:
 
11:40 Football field in use. Please wait.
:S? and no ar eplayers in field
aff
plx HELP
BUMP!
 
could you help me:
[Error - GlobalEvent Interface]
data/globalevents/scripts/football.lua: onThink
Description :
data/globalevents/scripts/football.lua:2: attempt to get length of global ´football_positions_uids´<a nil value>
stack traceback:
data/globalevents/scripts/football.lua:2: in function <data/globalevents/scripts/football.lua:1>
[Error - GlobalEvents::think] Couldn't execute event : football
 
Code:
data/globalevents/scripts/football.lua:16:


Code:
function onThink(interval, lastExecution) 
    for m = 1 , #football_positions_uids do 
        match = football_positions_uids[m] 
        if(getGlobalStorageValue(match[1]) == -1) then 
            for t = match[1], match[12] do 
                setGlobalStorageValue(t, 0) 
            end 
        end 
        end_time = getGlobalStorageValue(match[1]) 
        if(end_time > 0 and end_time < os.time()) then 
            toPoss = {match[6], match[7]} 
            team_players = {"", ""} 
            for i = 1, 2 do 
                teamPoss = toPoss[i] 
                for p = 1, #teamPoss do 
                    team_players[i] = team_players[i] .. getCreatureName(getGlobalStorageValue(teamPoss[p])) 
                    if p ~= #teamPoss then 
                        team_players[i] = team_players[i] .. ", " 
                    end 
                end 
            end 
            score = "Team 1 (" .. team_players[1] .. ") - " .. getGlobalStorageValue(match[2]) .. " : " .. getGlobalStorageValue(match[3]) .. " - (" .. team_players[2] .. ") Team 2" 
            doBroadcastMessage("Football field " .. m .. ". " .. score, MESSAGE_STATUS_CONSOLE_BLUE) 
            for i = 1, 2 do 
                teamPoss = toPoss[i] 
                exitPos = getThingPos(match[1]) 
                for p = 1, #teamPoss do 
                    doTeleportThing(getGlobalStorageValue(teamPoss[p]), exitPos, TRUE) 
                    doPlayerSendTextMessage(getGlobalStorageValue(teamPoss[p]), MESSAGE_STATUS_CONSOLE_ORANGE, "You were in Team " .. i .. " on field " .. m .. ". " .. score) 
                end 
            end 
            for i = match[1], match[12] do 
                setGlobalStorageValue(i, 0) 
            end 
        end 
    end 
    return true 
end

What is wrong? Repp for help++
 
Lua:
16:51 Reloading globalevents...
16:51 Reloaded successfully.
16:51 Football field in use. Please wait.
16:51 Football field in use. Please wait.

No work
;/


HELP PFF:(
 
Lua:
16:51 Reloading globalevents...
16:51 Reloaded successfully.
16:51 Football field in use. Please wait.
16:51 Football field in use. Please wait.

No work
;/


HELP PFF:(

I didn't take a look at the code. But I guess it's based on global storages so it doesn't matter if you reload or not. Just clear global storages.
 
how can i make another stadium? because i make another and the ball go to the stadium 2vs2 x.x haha I just copied the tiles xD ):
 
All script (ok)
I need Gesior Placar
football_top_players.php

1º (10 Wins) Lord'Paulistinha
2º (08 Wins) Tacadora de Runas
3° (05 Wins) Killer Lord

:peace:
 
In mi football fields no are people and clik in switch and say
23:29 Football field in use. Please wait.
I make reset, change map , change scripts
all >.< and say
23:29 Football field in use. Please wait.
:S
how to fix?


:) I didn't take a look at the code. But I guess it's based on global storages so it doesn't matter if you reload or not. Just clear global storages.
 
yes, please make a script like with payments etc. like: first team give 10 k, and second team gives 10 k too, who wins get 20 k,

+ is it possible to make so pp can set money on the team they think to win? and if win,, they get dubble of it back.

Bump :p
 
" dofile(getDataDir() .. "lib/football.lua") "

Where do i add this? I tried in data>lib>50-functions, but this create chaos in the server lol. Anyone know were to put this? Using 0.3.6 pl1

This is the only error i have
footballerror.jpg
 
Last edited:
Back
Top