Author Topic: ARSSE help  (Read 2186 times)

0 Members and 1 Guest are viewing this topic.

Offline WhatYouWant

  • Major(1)
  • Posts: 3
ARSSE help
« on: September 03, 2010, 01:24:31 pm »
Hi, i'm trying to do simple script which sets /vote% to 60 whenever someone changes it. Everytime i try to add, it starts spamming with /vote% 60;/vote% 60;/vote% 60;loop
What I'm doing wrong?
I tried (both OnPlayerSpeak.txt and OnData.txt)
if $DATA = /vote% *
/vote% 60
endif
---
if $MESSAGE = /vote% *
/vote% 60
endif
etc

Offline Boblekonvolutt

  • Soldier
  • **
  • Posts: 222
  • "YOU are a CAR."
Re: ARSSE help
« Reply #1 on: September 03, 2010, 01:56:49 pm »
When you send /vote% 60, it's gonna come back to you...

And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another... And it's gonna detect that and send another...

Get the point?



(You want to check that the incoming isn't identical to what you'll be sending, since that creates an infinite loop)

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: ARSSE help
« Reply #2 on: September 03, 2010, 04:06:09 pm »
Add if $DATA/$MESSAGE != /vote% 60  ;)

Offline WhatYouWant

  • Major(1)
  • Posts: 3
Re: ARSSE help
« Reply #3 on: September 03, 2010, 04:12:17 pm »
Boblekonvolutt: Somehow it worked earlier, i just can't figure what exactly i did
Swompie???  ::)

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: ARSSE help
« Reply #4 on: September 03, 2010, 04:31:14 pm »
I'd suggest you getting on #Shoozza and ask developer of ARSSE

Im chill like that

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: ARSSE help
« Reply #5 on: September 06, 2010, 12:07:35 pm »
Swompie???  ::)
Is that so hard to think?

Code: [Select]
if $DATA = /vote% *
  if $DATA != /vote% 60
    /vote% 60
  endif
endif
... it's as simple as it can be in my eyes

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: ARSSE help
« Reply #6 on: September 06, 2010, 12:14:56 pm »
Anyway, you will have to restart the server to see the changes.
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: ARSSE help
« Reply #7 on: September 06, 2010, 02:55:47 pm »
Anyway, you will have to restart the server to see the changes.
If you mean the /vote%, as you can see it's supposed to not let other people change it anyway.

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: ARSSE help
« Reply #8 on: September 07, 2010, 05:29:16 am »
Anyway, you will have to restart the server to see the changes.
Not for all settings, iirc /vote% works without restarting it.

Offline WhatYouWant

  • Major(1)
  • Posts: 3
Re: ARSSE help
« Reply #9 on: September 07, 2010, 06:09:07 am »
Swompie???  ::)
Is that so hard to think?

Code: [Select]
if $DATA = /vote% *
  if $DATA != /vote% 60
    /vote% 60
  endif
endif
... it's as simple as it can be in my eyes


And it gives same result, either nothing or spam, well thanks for trying to help, i'll be watching vote% manually.

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: ARSSE help
« Reply #10 on: September 07, 2010, 08:00:04 am »
Why not create a serverscript?

Code: [Select]
function OnCommand(ID: integer; Text: String): boolean;
begin
  result := false;
  if getPiece(Text, ' ', 0) = '/vote%' then result := true;
end;
This would completely disable the /vote% command.
Come join: EliteCTF
Listen to: My Music

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: ARSSE help
« Reply #11 on: September 07, 2010, 03:15:29 pm »
Swompie???  ::)
Is that so hard to think?

Code: [Select]
if $DATA = /vote% *
  if $DATA != /vote% 60
    /vote% 60
  endif
endif
... it's as simple as it can be in my eyes


And it gives same result, either nothing or spam, well thanks for trying to help, i'll be watching vote% manually.
Tried also with $MESSAGE? (I'm not sure if != is the not equal in ARSSE, maybe it's <>)
Just mess around a 'lil bit  ;)