Page 1 of 1
player:lootAll() not working
Posted: Sun Sep 09, 2012 8:01 am
by Prophet
Hello,
I just joined with this forum but I have to tell that I have used it previously a lot and it has helped me a lot. So thank you all who are managing it here!
But now to the problem:
Recently I had huge windows problem and lost all waypoint, profile and function files. Basically all my work with micromacro. Now I'm trying to restore all those but have encountered few problems. Head isn't trash pin what remembers all

.
player:lootAll() isn't working in some reason.
My waypoint file works this way that I go kill mobs in certain path and after that I come back same way and use player:lootAll() function in every waypoint. Idea is that this way every mob gives me quest items even after I have got all items together. This worked few weeks ago fine but now with new micromacro its not working any more.
So is it general problem that this function doesn't work at moment or we have to start investigating my waypoint files and profile files? If so I will add codes here later.
Thanks in advance!
Re: player:lootAll() not working
Posted: Sun Sep 09, 2012 9:15 am
by rock5
player:lootAll() wont work if either LOOT or LOOT_ALL is disabled in your profile. I don't know what you've done but what you need to do is set
Code: Select all
settings.profile.options.LOOT = false
settings.profile.options.LOOT_ALL = true
in the onload section of the waypoint file then, when you want to start looting set
Code: Select all
settings.profile.options.LOOT = true
and then you can use
at each waypoint. Then when you want to stop looting again set
Code: Select all
settings.profile.options.LOOT = false
again.
Re: player:lootAll() not working
Posted: Sun Sep 09, 2012 9:31 am
by Prophet
At moment I have profile:
Code: Select all
<!-- Loot settings -->
<option name="LOOT" value="true" />
<option name="LOOT_ALL" value="true" />
<option name="LOOT_IN_COMBAT" value="false" />
<option name="LOOT_DISTANCE" value="200" />
<option name="LOOT_PAUSE_AFTER" value="0" />
<option name="LOOT_SIGILS" value="true" />
<option name="SIGILS_IGNORE_LIST" value="" />
and waypoint file:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
changeProfileOption("AUTO_ELITE_FACTOR", 1000);
changeProfileOption("LOOT_DISTANCE", 150);
changeProfileOption("LOOT", "true");
changeProfileOption("LOOT_ALL", "true");
</onLoad>
<!-- # 1 --><waypoint x="725" z="940" y="-147"> </waypoint>
<!-- # 2 --><waypoint x="787" z="1063" y="-178"> </waypoint>
<!-- # 3 --><waypoint x="942" z="1052" y="-209"> </waypoint>
<!-- # 4 --><waypoint x="1089" z="1040" y="-236"> </waypoint>
<!-- # 5 --><waypoint x="1177" z="978" y="-253"> </waypoint>
<!-- # 6 --><waypoint x="1268" z="987" y="-258">
changeProfileOption("LOOT", "false");
changeProfileOption("LOOT_ALL", "false");
</waypoint>
<!-- # 7 --><waypoint x="1411" z="1055" y="-256"> </waypoint>
<!-- # 8 --><waypoint x="1400" z="1102" y="-261"> </waypoint>
<!-- # 9 --><waypoint x="1174" z="1215" y="-250"> </waypoint>
<!-- # 10 --><waypoint x="1314" z="1212" y="-249"> </waypoint>
<!-- # 11 --><waypoint x="1443" z="1255" y="-263"> </waypoint>
<!-- # 12 --><waypoint x="1535" z="1396" y="-319"> </waypoint>
<!-- # 13 --><waypoint x="1655" z="1519" y="-371"> </waypoint>
<!-- # 14 --><waypoint x="1860" z="1489" y="-370"> </waypoint>
<!-- # 15 --><waypoint x="2009" z="1688" y="-394"> </waypoint>
<!-- # 16 --><waypoint x="2002" z="1830" y="-419"> </waypoint>
<!-- # 17 --><waypoint x="1901" z="1878" y="-439"> </waypoint>
<!-- # 18 --><waypoint x="1749" z="1779" y="-464"> </waypoint>
<!-- # 19 --><waypoint x="1692" z="1789" y="-472"> </waypoint>
<!-- # 20 --><waypoint x="1743" z="1945" y="-480"> </waypoint>
<!-- # 21 --><waypoint x="1561" z="2167" y="-436"> </waypoint>
<!-- # 22 --><waypoint x="1970" z="1839" y="-419"> </waypoint>
<!-- # 23 --><waypoint x="2315" z="1784" y="-519"> </waypoint>
<!-- # 24 --><waypoint x="2562" z="1769" y="-544"> </waypoint>
<!-- # 25 --><waypoint x="2359" z="1806" y="-530"> </waypoint>
<!-- # 26 --><waypoint x="2385" z="1957" y="-552"> </waypoint>
<!-- # 27 --><waypoint x="2608" z="2155" y="-693">
changeProfileOption("MAX_TARGET_DIST", 50);
</waypoint>
<!-- # 28 --><waypoint x="2790" z="2292" y="-723"> </waypoint>
<!-- # 29 --><waypoint x="3202" z="2361" y="-719"> </waypoint>
<!-- # 30 --><waypoint x="3270" z="2259" y="-739">
changeProfileOption("MAX_TARGET_DIST", 100);
</waypoint>
<!-- # 31 --><waypoint x="3141" z="1958" y="-801"> </waypoint>
<!-- # 32 --><waypoint x="3088" z="1642" y="-869"> </waypoint>
<!-- # 33 --><waypoint x="3355" z="1534" y="-909"> </waypoint>
<!-- # 34 --><waypoint x="3404" z="1391" y="-936"> </waypoint>
<!-- # 35 --><waypoint x="3311" z="1353" y="-938"> </waypoint>
<!-- # 36 --><waypoint x="3171" z="1383" y="-934"> </waypoint>
<!-- # 37 --><waypoint x="3059" z="1444" y="-921"> </waypoint>
<!-- # 38 --><waypoint x="2926" z="1464" y="-921"> </waypoint>
<!-- # 39 --><waypoint x="2965" z="1337" y="-902"> </waypoint>
<!-- # 40 --><waypoint x="3165" z="1239" y="-911"> </waypoint>
<!-- # 41 --><waypoint x="3274" z="1177" y="-900"> </waypoint>
<!-- # 42 --><waypoint x="3535" z="1059" y="-833"> </waypoint>
<!-- # 43 --><waypoint x="3587" z="917" y="-782"> </waypoint>
<!-- # 44 --><waypoint x="3645" z="767" y="-745"> </waypoint>
<!-- # 45 --><waypoint x="3692" z="712" y="-737">
--changeProfileOption("LOOT_DISTANCE", 150);
changeProfileOption("LOOT", "true");
changeProfileOption("LOOT_ALL", "true");
player:update();player:loot();player:lootAll();
</waypoint>
<!-- # 46 --><waypoint x="3650" z="760" y="-744"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 47 --><waypoint x="3628" z="833" y="-761"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 48 --><waypoint x="3559" z="848" y="-771"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 49 --><waypoint x="3575" z="944" y="-792"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 50 --><waypoint x="3514" z="1077" y="-843"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 51 --><waypoint x="3402" z="1140" y="-883"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 52 --><waypoint x="3310" z="1183" y="-900"> player:update();player:loot();player:lootAll();
changeProfileOption("LOOT_DISTANCE", 80);
</waypoint>
<!-- # 53 --><waypoint x="3212" z="1246" y="-912"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 54 --><waypoint x="3158" z="1232" y="-911"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 55 --><waypoint x="3054" z="1243" y="-906"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 56 --><waypoint x="3002" z="1306" y="-901"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 57 --><waypoint x="2947" z="1402" y="-912"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 58 --><waypoint x="3037" z="1419" y="-920"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 59 --><waypoint x="3150" z="1396" y="-932"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 60 --><waypoint x="3224" z="1352" y="-935"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 61 --><waypoint x="3328" z="1345" y="-935"> player:update();player:loot();player:lootAll();
changeProfileOption("LOOT_DISTANCE", 150);
</waypoint>
<!-- # 62 --><waypoint x="3402" z="1392" y="-936"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 63 --><waypoint x="3384" z="1473" y="-921"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 64 --><waypoint x="3321" z="1533" y="-900"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 65 --><waypoint x="3226" z="1593" y="-878"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 66 --><waypoint x="3159" z="1615" y="-873"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 67 --><waypoint x="3093" z="1641" y="-869"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 68 --><waypoint x="3094" z="1740" y="-852"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 69 --><waypoint x="3109" z="1838" y="-828"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 70 --><waypoint x="3114" z="1931" y="-808"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 71 --><waypoint x="3152" z="2045" y="-792"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 72 --><waypoint x="3230" z="2141" y="-766"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 73 --><waypoint x="3251" z="2241" y="-745"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 74 --><waypoint x="3236" z="2313" y="-730"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 75 --><waypoint x="3168" z="2358" y="-717"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 76 --><waypoint x="3068" z="2355" y="-711"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 77 --><waypoint x="2929" z="2334" y="-711"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 78 --><waypoint x="2770" z="2274" y="-726"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 79 --><waypoint x="2672" z="2219" y="-722"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 80 --><waypoint x="2599" z="2140" y="-681"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 81 --><waypoint x="2528" z="2071" y="-629"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 82 --><waypoint x="2453" z="2036" y="-585"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 83 --><waypoint x="2558" z="1926" y="-570"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 84 --><waypoint x="2579" z="1804" y="-550"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 85 --><waypoint x="2413" z="1783" y="-534"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 86 --><waypoint x="2273" z="1800" y="-508"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 87 --><waypoint x="2155" z="1810" y="-463"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 88 --><waypoint x="2066" z="1799" y="-432"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 89 --><waypoint x="2014" z="1698" y="-396"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 90 --><waypoint x="1964" z="1593" y="-374"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 91 --><waypoint x="1909" z="1534" y="-369"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 92 --><waypoint x="1813" z="1509" y="-369"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 93 --><waypoint x="1693" z="1539" y="-374"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 94 --><waypoint x="1620" z="1468" y="-361"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 95 --><waypoint x="1545" z="1400" y="-323"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 96 --><waypoint x="1494" z="1332" y="-292"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 97 --><waypoint x="1458" z="1274" y="-269"> player:update();player:loot();player:lootAll();
changeProfileOption("LOOT_DISTANCE", 50);
</waypoint>
<!-- # 98 --><waypoint x="1365" z="1216" y="-254"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- # 99 --><waypoint x="1348" z="1162" y="-254"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #100 --><waypoint x="1369" z="1127" y="-257"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #101 --><waypoint x="1414" z="1074" y="-256"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #102 --><waypoint x="1375" z="1023" y="-265"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #103 --><waypoint x="1332" z="1031" y="-257"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #104 --><waypoint x="1284" z="1060" y="-247"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #105 --><waypoint x="1259" z="1103" y="-239"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #106 --><waypoint x="1262" z="1161" y="-243"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #107 --><waypoint x="1214" z="1177" y="-243"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #108 --><waypoint x="1172" z="1219" y="-250"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #109 --><waypoint x="1153" z="1248" y="-249"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #110 --><waypoint x="1206" z="1276" y="-248"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #111 --><waypoint x="1279" z="1250" y="-242"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #112 --><waypoint x="1364" z="1252" y="-253"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #113 --><waypoint x="1664" z="1574" y="-376"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #114 --><waypoint x="1717" z="1654" y="-388"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #115 --><waypoint x="1685" z="1688" y="-395"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #116 --><waypoint x="1677" z="1813" y="-475"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #117 --><waypoint x="1745" z="1773" y="-464"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #118 --><waypoint x="1829" z="1855" y="-471"> player:update();player:loot();player:lootAll();
changeProfileOption("LOOT_DISTANCE", 150);
</waypoint>
<!-- #119 --><waypoint x="1732" z="1955" y="-479"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #120 --><waypoint x="1599" z="2108" y="-447"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #121 --><waypoint x="1559" z="2178" y="-436"> player:update();player:loot();player:lootAll(); </waypoint>
<!-- #122 --><waypoint x="1462" z="2317" y="-411">
sendMacro("/ilg destroy");
yrest(200);
sendMacro("/ilg inv");
waitForLoadingScreen();
loadPaths("aaaaa");
</waypoint>
</waypoints>
I notised that when I added loot related changeProfileOption Onload section it even stopped to loot from begining (waypoints 1-6). Like something gets bugged and after changing profile loot settings in waypoint file looting stops entirely.
Re: player:lootAll() not working
Posted: Sun Sep 09, 2012 9:43 am
by rock5
Forget doing player:loot(), it won't do anything. Only player:lootAll() needs to be done.
It otherwise looks ok, although, like I said, you only need to enable/disable LOOT, not LOOT_ALL.
After reloading the file, the loot options should be re-enabled. I'm not sure why it wouldn't loot at wps 1-6. It's not as if you did a loadProfile(). You could try adding print statements at the first few wps to check the loot options.
Code: Select all
print("LOOT = ".. settings.profile.options.LOOT)
print("LOOT_ALL = "..settings.profile.options.LOOT_ALL)
Edit: Wait! I see the problem. It should be true not "true" and false not "false". true and false are not strings, they are booleans.
Re: player:lootAll() not working
Posted: Sun Sep 09, 2012 9:49 am
by Prophet
I will try that print thing.
changeProfileOption("LOOT_ALL", "true"); I added only because it didnt work so just in case started to play with that and same with player:loot() function.
Re: player:lootAll() not working
Posted: Sun Sep 09, 2012 9:55 am
by Prophet
Used your print function and results are like they should be. Where is set to true there they are true and false at are where they are false.
I think I have to reinstall micromacro. Just in case which version is most up to date? Maybe I have older one.
Re: player:lootAll() not working
Posted: Sun Sep 09, 2012 10:36 am
by rock5
You still haven't changed "true" to true and "false" to false. If you had, you would have gotten an error with those print messages. LoL.
Eg. Change
Code: Select all
changeProfileOption("LOOT_ALL", "true")
to
Code: Select all
changeProfileOption("LOOT_ALL", true)
etc.
true is not the same as
"true".
false is not the same as
"false".
Re: player:lootAll() not working
Posted: Sun Sep 09, 2012 10:47 am
by Prophet
rock5 wrote:You still haven't changed "true" to true and "false" to false. If you had, you would have gotten an error with those print messages. LoL.
Eg. Change
Code: Select all
changeProfileOption("LOOT_ALL", "true")
to
Code: Select all
changeProfileOption("LOOT_ALL", true)
etc.
true is not the same as
"true".
false is not the same as
"false".
Thanks. That was the mistake. Now all working well
