PDA

View Full Version : AR scripts!



icon315
12-10-2009, 10:16 PM
Anti-Raffles are good part of a /c games (AKA /games) these willl help you with hosting one

ARScript.ash 1.1.....By Bale:
Acquires 11 of each of the following items
1. Coconut Shells
2. Little Paper Umbrellas
3. Magical Ice Cubes
4. Dry Noodles
5. Scrumptious Reagents
Then it adds them to your store at Min. price or 2*Autosell (whichever is the highest) with a limit of 1........Items can be added or removed at whichever you want, you can also change the limits...Will now give a message when finished
http://kolmafia.us/showthread.php?t=3036


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!

Juegos
01-09-2010, 11:14 AM
It looks like there's a slight problem with the ArWinner.ash code. On line 19, where it reads


int NumberBoughtEnd = index_of( log , ")" , NumberBoughtStart ) - 1;

it should instead read


int NumberBoughtEnd = index_of( log , "(" , NumberBoughtStart ) - 1;

icon315
01-15-2010, 01:20 AM
Fixes...THanks

slyz
02-09-2010, 08:37 PM
Here's a version of ARWinner that will print the whole line from the log.

icon315
02-09-2010, 08:41 PM
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?