AR scripts!

icon315

Member
Anti-Raffles are good part of a /c games (AKA /games) these willl help you with hosting one


ArWinner.ash 1.1
:
Determines which of your buyers is the winner of your AR.
In the First Option give the number of tickets involved in the game, then put the number of the winning ticket (what Chatbot or Smashbot rolled in /games). It will then show you the name of the winner in the CLI....then the rest is up to you!
 

Attachments

  • ArWinner1.1.ash
    823 bytes · Views: 46
Last edited:

Juegos

New member
It looks like there's a slight problem with the ArWinner.ash code. On line 19, where it reads

Code:
int NumberBoughtEnd = index_of( log , "[B])[/B]" , NumberBoughtStart ) - 1;

it should instead read
Code:
int NumberBoughtEnd = index_of( log , "[B]([/B]" , NumberBoughtStart ) - 1;
 

slyz

Developer
Here's a version of ARWinner that will print the whole line from the log.
 

Attachments

  • ArWinner1.1.ash
    874 bytes · Views: 37

icon315

Member
THanks
btw, at the end of my Ar hosting script i have a print( ); function......is there a way to make it so that this shows up as an even instead of jsut a messsage?
 
Last edited:
Top