Sauerworld Forum

fast connection to clan servers [OIT]

Tristan05[OIT]

  • *
  • 8
  • +0/-0
  • Ciao, sono Tristan Traver alias Tristan05.
    • Clan [OIT]
fast connection to clan servers [OIT]
« on: October 10, 2020, 06:44:57 PM »
this script allows you to connect faster to clan servers [OIT], the script is activated by clicking F7, if you want you can set another key.
you have to copy and paste it into autoexec located in: C: / documents / my games / sauerbraten/
Code: [Select]
// ------------------------------------------------------------------------
// [OIT] server connessione veloce - 10 Ottobre 2020
// (C) Tristan05, ZLIB license
// http://www.opensource.org/licenses/zlib-license.php
// ------------------------------------------------------------------------


bind "F7" [showgui Server]
editbind "F7" [showgui Server]

createine = [if (=s (getalias $arg1)) [$arg1 = $arg2]]
createine serv_count 5
looplist p "serv ip port" [
loop i 15 [createine (concatword f_ @p $i)]
]

newgui Server [
guitext "^f7clicca sui server per connetterti"
guibar
loop i $serv_count [
if (|| (!=s (getalias (concatword f_serv $i))) (!=s (getalias (concatword f_ip $i)))) [
guibutton (concat "Connettiti a^f2" (getalias (concatword f_serv @i))) [connect (getalias (concatword f_ip @@i)) (getalias (concatword f_port @@i))]
]
]
guitab "About"
guitext "^f7Script creato da ^f2Tristan05^f7"
                  guitext "^f7visita il website del clan [^f0O^f7I^f3T^f7] ^f2https://sauerbratenclanogrositalianteam.webs.com/^f7"
                  guitext "^f7licenza ZLIB, ^f2http://www.opensource.org/licenses/zlib-license.php^f7"
] "[OIT] server"

f_ip0 = [85.0.244.76]
f_ip1 = [85.0.244.76]
f_ip2 = [85.0.244.76]
f_port0 = [28785]
f_port1 = [28787]
f_port2 = [28789]
f_serv0 = [[OIT] #1]
f_serv1 = [[OIT] #2]
f_serv2 = [[OIT] #3]
// --------------------------------------------------------------------------------------------------
« Last Edit: October 10, 2020, 07:09:51 PM by Tristan05[OIT] »
la perdita รจ di coloro che non sperano, sperando si vince e vincendo non si spera.

di Tristan05

RaZgRiZ

  • *
  • 10
  • +0/-1
Re: fast connection to clan servers [OIT]
« Reply #1 on: October 12, 2020, 06:35:55 AM »
I like how part of the script is basically a small piece of my Favorite Servers GUI. You have lots to learn :P