Hey everyone. I'm making a bunch of scripts to auto ascend for me. I would use bumcheekcity's ascension tool... but I want to learn how to write these things for myself.
So, I wrote the following script for the level 2 quest.
The problem is that while I think this would work, it clashes with mafia's 8 choice adventure settings for the spooky forest. The 8 choice settings override what is in the script. It also doesn't help that I am really clueless on how mafia handles the choice adventures in the spooky forest with those 8 choice settings... so that might be a factor. I kind of hoped that the script above would override the 8 choice settings.
Am I on the right track, or do I have to use mafia's 8 choice settings for the spooky forest?
So, I wrote the following script for the level 2 quest.
PHP:
import <canadv.ash>
Void UnlockSpookyTemple ()
{
if ((contains_text(visit_url("questlog.php?which=1"), "mosquito larva")) )
{
set_property ("Choice Adventure 502" , "2") ;
set_property ("Choice Adventure 505" , "1") ;
cli_execute("conditions clear");
add_item_condition(1, $item[mosquito larva]) ;
adventure(my_adventures(), $location[Spooky Forest]) ;
visit_url("council.php") ;
}
if (available_amount($item[Spooky-Gro fertilizer]) == 0)
{
set_property ("Choice Adventure 502" , "3") ;
set_property ("Choice Adventure 506" , "2") ;
cli_execute("conditions clear") ;
add_item_condition(1, $item[Spooky-Gro fertilizer]) ;
adventure(my_adventures(), $location[Spooky Forest]) ;
}
if (available_amount($item[tree-holed coin]) == 0 && available_amount($item[spooky temple map]) < 1)
{
set_property ("Choice Adventure 502" , "2") ;
set_property ("Choice Adventure 505" , "2") ;
cli_execute("conditions clear") ;
add_item_condition(1, $item[tree-holed coin]) ;
adventure(my_adventures(), $location[Spooky Forest]) ;
}
if (available_amount($item[spooky temple map]) == 0)
{
set_property ("Choice Adventure 502" , "3") ;
set_property ("Choice Adventure 506" , "3") ;
set_property("choiceAdventure507", "1") ;
cli_execute("conditions clear") ;
add_item_condition(1, $item[spooky temple map]) ;
adventure(my_adventures(), $location[Spooky Forest]) ;
}
if (available_amount($item[spooky sapling]) == 0)
{
set_property ("Choice Adventure 502" , "1") ;
set_property ("Choice Adventure 503" , "3") ;
set_property ("Choice Adventure 504" , "3") ;
cli_execute("conditions clear") ;
add_item_condition(1, $item[spooky sapling]) ;
adventure(my_adventures(), $location[Spooky Forest]) ;
}
Use (1, $item[spooky temple map]) ;
}
Void Main ()
{
if (!can_adv(($location[hidden temple]), false) )
UnlockSpookyTemple () ;
}
The problem is that while I think this would work, it clashes with mafia's 8 choice adventure settings for the spooky forest. The 8 choice settings override what is in the script. It also doesn't help that I am really clueless on how mafia handles the choice adventures in the spooky forest with those 8 choice settings... so that might be a factor. I kind of hoped that the script above would override the 8 choice settings.
Am I on the right track, or do I have to use mafia's 8 choice settings for the spooky forest?