dancer.ash

Xenthes

Member
I have been using this script on and off for awhile. I tried using it today and got this error message:
> call scripts\dancer.ash

Expected ), found = (dancer.ash, line 9)

Since I know nothing about .ash I don't know what is wrong.
Here is the code:
Code:
void main(int advs) {
if(advs>0) advs=advs-my_adventures();

cli_execute("conditions clear;");


while(my_adventures()+advs>0) {

if(item_amount($item[dance card])=0) cli_execute("conditions add dance card; adv "+advs+" ballroom;");
if(my_adventures()+advs>3 && item_amount($item[dance card])>0) cli_execute("use 1 dance card; adv 4 ballroom;");
	else {
		if(advs<0) cli_execute("adv "+advs+" ballroom;");
	}
}


cli_execute("conditions clear;");
}

I am currently using mafia version 7772
Any help would be appreciated.

Thanks
 
Code:
if(item_amount($item[dance card])=0)
The =0 part should be ==0. I thought a mafia change like half a year ago would have made this not work. Unless I'm just going crazy.
 
Code:
if(item_amount($item[dance card])=0)
The =0 part should be ==0. I thought a mafia change like half a year ago would have made this not work. Unless I'm just going crazy.

Huh, thought I changed that just after the change in mafia so I didn't really look for that.
I'll try it and see if that is it.


That was it. Thanks for the help.
 
Last edited:
Back
Top