ScriptUO
Ultima Online Fan Board => General UO Chat => Topic started by: systempanic on August 16, 2011, 09:38:16 PM
-
Hello, I want to farm gold afk, and have tried several loot scripts... I consistently have UO client crashed after running looting script for a while, maybe 10 minutes or less ..... Is there something I can do to resolve it? thanks.
for example what to modify in CLAw script to avoid client crash?
-
So your saying that using CLAw for looting causes you to crash?
What else are you running? I'm assuming some type of attack script. You need to tell the other scripts you are running to STOP while CLAw is looting.
Put this in the mainloop of ALL the other scripts you run:
set %timeout_looter ( #sCnt + 20 )
repeat
namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
That will A) Wait until the global variable !TM_loot_in_progress is #false (CLAw has finished looting) or B) 20 seconds emergency timeout. You should never take more then 20 seconds to loot.
That should eliminate any script interaction crashes you have with CLAw. Now, if you have trouble with script interactions outside CLAw that's an entirely different matter.
-
Cerveza, thank you.
yes, i am using a simple attack script that attack nearest hostile monsters and now have included code snippet u suggested to see how it come out.
;D
-
Please post your results so that others may benefit from your experience.
-
First try using new script it last for 5 hours and crashed, and is much better than before.... will try more... ;D
-
Could it be that the reason of your crash is your main code? You could post it to take a look at it.
-
okay, here it goes
In addition to CLAw, I have these two scripts running in the same easyuo.
=== script 1 for EOO =========
set %timeout_looter ( #sCnt + 20 )
repeat
namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
EVENT MACRO 15 206
WAIT 205s
======script 2 for attacking nearest hostile ==========
set %timeout_looter ( #sCnt + 20 )
repeat
namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
event macro 3 0 ..
wait 30
set %timeout_looter ( #sCnt + 20 )
repeat
namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
event macro 52 1
wait 30
set %timeout_looter ( #sCnt + 20 )
repeat
namespace copy TM_loot_in_progress from global TM_loot
until !TM_loot_in_progress <> #TRUE || #sCnt > %timeout_looter
event macro 53
wait 3s
=========================