What is the "state_code" in different .lua files? (Already resolved. Its a country code, that you have in local info maybe, but i dont know where i can see my local code)
For those, who also looking some local codes :
Now i have NEW question.
On lvlUp for insert gifts we use next loop :
I dont understand, how its works : "for i = max_reached_level + 1 , lv do", cause if we take 10 lvl, our max_reached_level and lv === 10, and then for i = 11, 10 do will never work, so HOW?
OR max_reached_level inc only after this function was running?
For those, who also looking some local codes :
Now i have NEW question.
On lvlUp for insert gifts we use next loop :
PHP Code:
function on_player_level_up()
--local tx, ty, current_x, island_number
local lv = get_value( "level" )
local max_reached_level = gv( "max_reached_level" )
local state_code = get_local_info()
local i
for i = max_reached_level + 1 , lv do
--loop body etc
end
end
OR max_reached_level inc only after this function was running?