I've finally started to mess around with scripting and have been trying to create some login/out scripts with some inspiration from this thread and decided to code a logout section to buy 10 raffle tickets if I'm not in Ronin and don't already have 10 in my inventory.
With lots of help from the wiki I can now check if I'm in Ronin and check if I have 10 tickets in my inventory no problem but had major problems with actually buying the tickets.
I've finally solved the problem by using
which is probably the worst option but it works so I'm happy.
Prior to this I tried using "buy" and "acquire" from within the script without success so started typing stuff straight in to the CLI to find a command that worked.
I'm wondering why the commands below bought punchcards instead of raffle tickets?
I've probably made a stupid mistake somewhere but can't figure out what it is and wouldn't mind keeping hold of 150k meat in the future...
My preferences allow buying from NPC's and the mall if that helps at all?
With lots of help from the wiki I can now check if I'm in Ronin and check if I have 10 tickets in my inventory no problem but had major problems with actually buying the tickets.
I've finally solved the problem by using
PHP:
cli_execute ("raffle 10");
which is probably the worst option but it works so I'm happy.
Prior to this I tried using "buy" and "acquire" from within the script without success so started typing stuff straight in to the CLI to find a command that worked.
I'm wondering why the commands below bought punchcards instead of raffle tickets?
PHP:
> buy (10, raffle ticket)
Searching for "El Vibrato punchcard (104 holes)"...
Search complete.
Purchasing El Vibrato punchcard (SPHERE) (1 @ 49,968)...
You acquire an item: El Vibrato punchcard (SPHERE)
Purchases complete.
[raffle ticket)] has no matches.
> buy (10, item[raffle ticket])
Searching for "El Vibrato punchcard (104 holes)"...
Search complete.
Purchasing El Vibrato punchcard (SPHERE) (1 @ 49,969)...
You acquire an item: El Vibrato punchcard (SPHERE)
Purchases complete.
[item[raffle ticket])] has no matches.
> buy (10, item[785])
Searching for "El Vibrato punchcard (104 holes)"...
Search complete.
Purchasing El Vibrato punchcard (SPHERE) (1 @ 49,969)...
You acquire an item: El Vibrato punchcard (SPHERE)
Purchases complete.
[item[785])] has no matches.
I've probably made a stupid mistake somewhere but can't figure out what it is and wouldn't mind keeping hold of 150k meat in the future...
My preferences allow buying from NPC's and the mall if that helps at all?