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

Help with War Ots Script!

kentix

New Member
Joined
Jun 24, 2009
Messages
15
Reaction score
1
Would you like to help me with 3 script war! one that would change the map with the estimated time to the next map, and a login system with login multiple of 1/1. type 1/1 Red Team and 1/1 auto choose Green Team.!

I'm trying to get the script [8.11] Gesior War of the script it is perfect for my ot 8.6

I'm wondering the following Script

auto balance (login 1/1 - auto choose team{team x team Red x Green} ) (precise very)

Map Change System - 5 maps [Fibula, Venore, Edron, Thais, "Sahara - open battle" - all
modified for war server, auto change map every X minutes (config),

System with 250 characters from 6 RL Tibia worlds(125 vs 125 players), 2
teams, 3 worlds vs. 3 worlds

System of top 5 Frags!

that can help me I really verjuice

I do not understand how much the script, I can straighten a bit but I'm not an expert and get get some script here do not know if this is really

Sorry For bad English :(

--init war system start
alryInitWarInterval = 0
--map interval in seconds
typicalMapInterval = 1200
topInterval = 300


function show_top(show)
local onlineList = getPlayersOnlineList()
local place1 = "--EMPTY--"
local place2 = "--EMPTY--"
local place3 = "--EMPTY--"
local place4 = "--EMPTY--"
local place5 = "--EMPTY--"
for i, uid in ipairs(onlineList) do
if getPlayerFrags(uid) > tonumber(getPlayerFrags(getPlayerByName(place1))) then
place5 = place4
place4 = place3
place3 = place2
place2 = place1
place1 = getPlayerName(uid)
elseif getPlayerFrags(uid) > tonumber(getPlayerFrags(getPlayerByName(place2))) then
place5 = place4
place4 = place3
place3 = place2
place2 = getPlayerName(uid)
elseif getPlayerFrags(uid) > tonumber(getPlayerFrags(getPlayerByName(place3))) then
place5 = place4
place4 = place3
place3 = getPlayerName(uid)
elseif getPlayerFrags(uid) > tonumber(getPlayerFrags(getPlayerByName(place4))) then
place5 = place4
place4 = getPlayerName(uid)
elseif getPlayerFrags(uid) > tonumber(getPlayerFrags(getPlayerByName(place5))) then
place5 = getPlayerName(uid)
end
end
if show == 1 then
broadcastMessage("Best fragers: \n 1. " .. place1 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place1))) .." frags. \n 2. " .. place2 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place2))) .." frags. \n 3. " .. place3 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place3))) .." frags. \n 4. " .. place4 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place4))) .." frags. \n 5. " .. place5 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place5))) .." frags.")
setGlobalStorageValue(700, os.time()+topInterval)
else
return "Best fragers: \n 1. " .. place1 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place1))) .." frags. \n 2. " .. place2 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place2))) .." frags. \n 3. " .. place3 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place3))) .." frags. \n 4. " .. place4 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place4))) .." frags. \n 5. " .. place5 .. " - " .. tonumber(getPlayerFrags(getPlayerByName(place5))) .." frags."
end
end

function loadMap(map_id)
setGlobalStorageValue(667, 0)
--set other time for this round
if getGlobalStorageValue(668) > 0 then
mapInterval = getGlobalStorageValue(668)
setGlobalStorageValue(668, 0)
--use new typical map interval
elseif getGlobalStorageValue(669) > 0 then
mapInterval = getGlobalStorageValue(669)
--use normal map typical interval
else
mapInterval = typicalMapInterval
end
--load map 1
if map_id == 1 then
setGlobalStorageValue(665, os.time()+mapInterval)
doChangeMap(2,3,4)
cleanMap()
broadcastMessage("CHANGED MAP to Fibula , CLEAN complet. Next map: Venore, time to next map: " .. mapInterval / 60 .. " minutes")
setGlobalStorageValue(666, 2)
--load map 2
elseif map_id == 2 then
setGlobalStorageValue(665, os.time()+mapInterval)
doChangeMap(5,6,7)
cleanMap()
broadcastMessage("CHANGED MAP to Venore , CLEAN complet. Next map: Edron, time to next map: " .. mapInterval / 60 .. " minutes")
setGlobalStorageValue(666, 3)
--load map 3
elseif map_id == 3 then
setGlobalStorageValue(665, os.time()+mapInterval)
doChangeMap(8,9,10)
cleanMap()
broadcastMessage("CHANGED MAP to Edron , CLEAN complet. Next map: Thais, time to next map: " .. mapInterval / 60 .. " minutes")
setGlobalStorageValue(666, 4)
--load map 4
elseif map_id == 4 then
setGlobalStorageValue(665, os.time()+mapInterval)
doChangeMap(11,12,13)
cleanMap()
broadcastMessage("CHANGED MAP to Thais , CLEAN complet. Next map: Sahara, time to next map: " .. mapInterval / 60 .. " minutes")
setGlobalStorageValue(666, 5)
elseif map_id == 5 then
setGlobalStorageValue(665, os.time()+mapInterval)
doChangeMap(14,15,16)
cleanMap()
broadcastMessage("CHANGED MAP to Sahara , CLEAN complet. Next map: Fibula, time to next map: " .. mapInterval / 60 .. " minutes")
setGlobalStorageValue(666, 1)
elseif map_id == 6 then

end
end
 
Back
Top