Author Topic: ESA v2.11  (Read 42358 times)

0 Members and 2 Guests are viewing this topic.

Offline BattouKen

  • Major(1)
  • Posts: 13
    • Es lo que Hay!
Re: ESA v2.11
« Reply #100 on: September 15, 2006, 12:12:25 pm »
how I can do so that each line of the following thing is every 2 or 3seconds?

[spanish]
¿cómo puedo hacer para que cada linea de lo siguiente se muestre cada 2 ó 3 segundos?

Code: [Select]
$if($isequal(%text%,!commands),
  $send(/say !version   displays version)
  $send(/say !caps      displays player cap count on ctf and inf)
  $send(/say !avkills   displays average kills excluding spectators)
  $send(/say !avdeaths  displays average deaths excluding spectators)
  $send(/say !avping    displays average ping including spectators)
  $send(/say !kickme    kicks player)
  $send(/say !killme    kills player)
  $send(/say !pingme    displays player ping)
  $send(/say !whoisme   displays player ip)
  $send(/say !whois x   displays ip of player x)
  $send(/say !banme     ;d)
  $send(/say !kd        displays player k:d ratio excluding cap count)
  $send(/say !time      la hora actual)
  $send(/say !teams     checks that teams are fair ot not (displays message))
  $send(/say !team1     sets player team to alpha)
  $send(/say !team2     sets player team to bravo)
  $send(/say !team3     sets player team to charlie)
  $send(/say !team4     sets player team to delta)
  $send(/say !team5     moves player to spectators)
  $send(/say !admin     llama a un admin actualmente conectado)
  $send(/say !info      muestra la info del server)
 ,)

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: ESA v2.11
« Reply #101 on: September 15, 2006, 12:34:49 pm »
Well, IMO it is better in the way it is now. Because: When it is delayed, it spams that one list for like 42-63 seconds.

The way it is now, just spams all the stuff at the same time, with no delay, so it is not so irritaring.
Fight! Win! Prevail!

Offline Liber Lupus

  • Soldier
  • **
  • Posts: 105
  • shoulddrinkmore
Re: ESA v2.11
« Reply #102 on: September 17, 2006, 02:52:51 pm »
This scripting is so much more complicated than ARSSE's. Is there a place I could learn it from?

Meh, I was too tired to notice it in the first post.
« Last Edit: September 17, 2006, 03:36:30 pm by Liber Lupus »

Offline deguix

  • Major
  • *
  • Posts: 79
Re: ESA v2.11
« Reply #103 on: September 18, 2006, 01:38:34 am »
I have this code in my server:

Code: [Select]
command to list maps in server
$if($isequal(%line%,/maplist),
  $set(maplist,$lowercase($append_file(C:\Games\My Soldat Server\mapslist.txt,)))
  $set(loop,0)
  $set(string,/say Map list:)
  $while($isless($intval(%loop%),$intval($substr_count(%maplist%,%nl%))),
    $if($or($isequal($intval($mod(%loop%,5)),$intval(0)),$isequal($intval(%loop%),$intval($sub($substr_count(%maplist%,%nl%), 1)))),
      $if($isnotequal(%string%,/say),$send(%string%),)
      $set(string,/say)
    ,)
    $if($isnotequal($exploded(%maplist%,%newline%,%loop%),),
      $set(string,%string% $exploded(%maplist%,%newline%,%loop%))
    ,)
    $set(loop,$add(%loop%,1))
  )
,)

but it's not fully working... it's only retrieving the first 8 maps from the list -> $substr_count(%maplist%,%nl%) returns 9, but I have 191+ maps in my server (file has more than 2KB). Also, when I use $send(%maplist%) before the loop variable definition, it outputs correctly all the maps in the list (up to 2kb limit), but I want the server to /say all those map names, 5 maps per line.

EDIT: wth, "loop" is the ninth item in the list, and I don't have a map with this name, so it probably comes from the variable name :o

Part of my map list:
Code: [Select]
atraining
ctf_ahhh
ctf_ancient
ctf_asdf
ctf_Athleticsb
ctf_AthleticsBlu
ctf_Athleticsc
ctf_Athleticscv3
ctf_Athleticsd
ctf_Athleticse
ctf_Athleticsg
ctf_AthleticsIsl

EDIT #2:

2. %serverversion% doesn't exist.

3. FAQ still explains the "%bytimer%" that doesn't exist anymore (renamed to %msgtype%).

4. How can I detect if the player is an admin, and how to make commands only to work for the admins?
« Last Edit: September 18, 2006, 05:18:37 am by deguix »

Offline esko

  • Major
  • *
  • Posts: 50
Re: ESA v2.11
« Reply #104 on: September 19, 2006, 02:40:25 am »
Looking good, looking good.
Possible to add 'copy to clipboard' to nicknames and IPs?

in finland we have this thing called 'pilkunnussinta'

Offline deguix

  • Major
  • *
  • Posts: 79
Re: ESA v2.11
« Reply #105 on: September 19, 2006, 01:52:39 pm »
Also, SolTV is not working when players are in the server. It gives "Invalid floating point operation." error.

Offline Mr Pink

  • Major(1)
  • Posts: 37
Re: ESA v2.11
« Reply #106 on: September 21, 2006, 02:11:57 am »
Any one else having this problem with 2.11...

I connect to the server and the user form (GUI) shows the players and stats, but then these dont update, the text and text 2 variables dont ever get populated when players chat (but the /xxxx admin commands get picked up like /teams) and it seems to be because the %player%sid%name% does not get set (if i send to console it comes out as %player1name%)? This is occuring with the example script and any modifications I have tried have not fixed it. Any help would be appreciated.

Offline rainrider

  • Soldier
  • **
  • Posts: 145
    • rrhp
Re: ESA v2.11
« Reply #107 on: September 21, 2006, 12:42:43 pm »
It's in faq!1!~1one. You have to set mapslist. Server disadvantage.

Offline Liber Lupus

  • Soldier
  • **
  • Posts: 105
  • shoulddrinkmore
Re: ESA v2.11
« Reply #108 on: September 21, 2006, 02:42:03 pm »
When I connect to my server and load the custom parser the player chat is gone. And everything else that the window should show. The playerlist refreshes fine and so does the info below it.
« Last Edit: September 21, 2006, 02:45:38 pm by Liber Lupus »

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: ESA v2.11
« Reply #109 on: September 21, 2006, 07:00:05 pm »
Very professional, create buggy software then run away.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: ESA v2.11
« Reply #110 on: September 22, 2006, 12:57:55 am »
Good luck flippin burgers with that attitude.

EDIT: RainRider deleted his posts above.

Offline deguix

  • Major
  • *
  • Posts: 79
Re: ESA v2.11
« Reply #111 on: September 22, 2006, 06:33:25 am »
wth, already? omg. NOOOOooooo. =(

Offline KeFear

  • Soldier
  • **
  • Posts: 181
  • ARSSE Creator
Re: ESA v2.11
« Reply #112 on: September 22, 2006, 08:39:08 am »
Take it easy rainrider ;)

Anyway.. bug-free software is just a dream.

Offline esko

  • Major
  • *
  • Posts: 50
Re: ESA v2.11
« Reply #113 on: September 22, 2006, 04:21:34 pm »
...it was soooo close.. :(

in finland we have this thing called 'pilkunnussinta'

Offline Jones

  • Major(1)
  • Posts: 3
Re: ESA v2.11
« Reply #114 on: September 26, 2006, 11:44:01 am »
Very cool app rainrider, only scripting was a little bit difficult at the beginning. I think I'm going to extend your app, maybe changing the script language, but only maybe...
Jones

Offline Mr Pink

  • Major(1)
  • Posts: 37
Re: ESA v2.11
« Reply #115 on: January 23, 2007, 08:03:14 pm »
Sorry to revive this thread but Im still using ESA for its scripting abilty... and rainrider is back :p

Need some help -
1. I can't get the $substr_count  function to work... it also doesnt seem to work in the example !info command. It would be a really handy function to have so any help would be great.

2. first question sort of leads to this one... does any one have a scripting example of how to pick up a specific word(s) in a message? e.g. picking up the word hack from any message and displaying a server message advising the player they could type !admin iif they suspect a hacker.

thanks

Offline rainrider

  • Soldier
  • **
  • Posts: 145
    • rrhp
Re: ESA v2.11
« Reply #116 on: January 24, 2007, 03:09:38 am »
$if($isnotequal($strpos(%line%,hack),0),wuff wuff,hau hau) or something like that

Offline toRch

  • Major
  • *
  • Posts: 55
  • <3
Re: ESA v2.11
« Reply #117 on: January 24, 2007, 06:15:48 am »
source link dead :(

Offline rainrider

  • Soldier
  • **
  • Posts: 145
    • rrhp
Re: ESA v2.11
« Reply #118 on: January 24, 2007, 07:28:47 am »
« Last Edit: February 05, 2007, 02:12:40 am by rainrider »

Offline antonymous

  • Major(1)
  • Posts: 1
Re: ESA v2.11
« Reply #119 on: February 04, 2007, 08:42:12 am »