Buying raffle tickets?

S

SoItBegins

Guest
I'm trying to make a script that, when added on to the 'breakfast' list, will buy 2 Penguin Mafia raffle tickets every day. Unfortunately, my very rudimentary script either

* Thinks it's trying to get Elf Farm raffle tickets when I use buy(), OR
* Warns me I need two more raffle tickets to continue when I use retrieve_item().

Help?


Here's the script, with 'retrieve_item' in place.
Code:
void main() {
	retrieve_item(2,$item["raffle ticket"]);
}
 

mottsy

Member
This is the script i made, just cut out the raffle part if you don't want to use the whole thing
Just a little reminder, some people get a little annoyed if you don't post questions in the community support thread
 
Last edited:
cli_execute("raffle 2");

if you're in ronin/hc you can use meat from hagnk's instead of pocket meat

cli_execute("raffle 2 storage");
 

zarqon

Well-known member
Weatherboy: didn't know about that CLI command, I was using a visit_url() in my login script! Thanks!

So:

PHP:
if (can_interact() && my_meat() > X) cli_execute("raffle 2");
   else cli_execute("raffle 2 storage");
 
Top