Problem with auto repairing fight based
Problem with auto repairing fight based
<!-- # 30 --><waypoint x="-16961" z="-1192">
if( player.Fights-player.free_counter1 > 1 ) then
player.free_counter1 = player.Fights;
load_paths("ret.xml");
end
</waypoint>
thats what i wrote but when it gets to waypoint #30 its just treats it as a regular waypoint and doesnt check and doesnt load ret.xml although it should because the fight number is 2 or higher, please help
thank you.
if( player.Fights-player.free_counter1 > 1 ) then
player.free_counter1 = player.Fights;
load_paths("ret.xml");
end
</waypoint>
thats what i wrote but when it gets to waypoint #30 its just treats it as a regular waypoint and doesnt check and doesnt load ret.xml although it should because the fight number is 2 or higher, please help
thank you.
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Problem with auto repairing fight based
Add this above the conditional:
Now run it and see what it outputs.
Code: Select all
printf("fights: %d, counter: %d\n", player.Fights, player.free_counter1);
Re: Problem with auto repairing fight based
it doesnt print anything and it still doesnt work, even with the loadPath command
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Problem with auto repairing fight based
If it doesn't print anything and you placed that code above the condition (not inside) like I asked, then I have no way of finding out what's wrong. You'll have to provide more information.
Re: Problem with auto repairing fight based
its weird i told him to use ret after 1 fight and yet it only printed the line and used the ret.xml file after 307 fights....
a problem with the waypoints? maybe it skips it for some reason? and how do i make the counter reset everytime i use the ret file?
and for some reason it doesnt got back to using the first waypoint file it just sticks with the ret
a problem with the waypoints? maybe it skips it for some reason? and how do i make the counter reset everytime i use the ret file?
and for some reason it doesnt got back to using the first waypoint file it just sticks with the ret
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Problem with auto repairing fight based
After calling loadPaths(), you could set the counter to 0. Just provide the code so I can see what you're even doing.
Re: Problem with auto repairing fight based
Code: Select all
<!-- # 30 --><waypoint x="-16961" z="-1192">
if( player.Fights-player.free_counter1 > 1400 ) then
printf("fights: %d, counter: %d\n", player.Fights, player.free_counter1);
player.free_counter1 = player.Fights;
loadPaths("ret.xml");
end
</waypoint>
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Problem with auto repairing fight based
You put the print statement inside the conditional. You weren't supposed to.
Re: Problem with auto repairing fight based
i've also placed it above the conditional and it didnt work either
Who is online
Users browsing this forum: Ahrefs [Bot] and 153 guests