Can you use 2 different onload sections within the same waypoint file?
It doesn't seem to load the GMDetect or any of the options in the first onload. It only loads the function onload. I know you can also use the profile file to inject onload features.
But could you combine ProfileOptions and Functions within the same onload?
<onLoad>
cprintf(cli.white, "DOD LET'S RUN THIS");
changeProfileOption("AUTO_ELITE_FACTOR", 2500);
changeProfileOption("COMBAT_DISTANCE", 75);
changeProfileOption("COMBAT_RANGED_PULL", false);
changeProfileOption("QUICK_TURN", false);
startGMDetect();
</onLoad>
<onload>
function bossbuff()
if player.Class1 == 4 and player.Class2 == 5 then -- mage/priest
player:cast("MAGE_ENERGY_INFLUX")
player:cast("MAGE_ELECTROSTATIC_CHARGE")
player:cast("MAGE_SOLDIERS_CHARGE")
player:cast("MAGE_INTENSIFICATION")
player:cast("MAGE_ELEMENTAL_CATALYST")
end
if inventory:itemTotalCount(206874) > 1 then
useGoodie(206874)
end
if inventory:itemTotalCount(206890) > 1 then
useGoodie(206890)
end
end
</onload>
<onLoad>
cprintf(cli.white, "DOD LET'S RUN THIS");
changeProfileOption("AUTO_ELITE_FACTOR", 2500);
changeProfileOption("COMBAT_DISTANCE", 75);
changeProfileOption("COMBAT_RANGED_PULL", false);
changeProfileOption("QUICK_TURN", false);
startGMDetect();
function bossbuff()
if player.Class1 == 4 and player.Class2 == 5 then -- mage/priest
player:cast("MAGE_ENERGY_INFLUX")
player:cast("MAGE_ELECTROSTATIC_CHARGE")
player:cast("MAGE_SOLDIERS_CHARGE")
player:cast("MAGE_INTENSIFICATION")
player:cast("MAGE_ELEMENTAL_CATALYST")
end
if inventory:itemTotalCount(206874) > 1 then
useGoodie(206874)
end
if inventory:itemTotalCount(206890) > 1 then
useGoodie(206890)
end
end
</onload>
Remember no matter you do in life to always have a little fun while you are at it
I get the following error when trying the code Lisa suggested:
haltOnError: false
Did not find any crashed game clients.
10:13pm - wapypointlist.lua:24: XML Parse Error.
Line 26
Column: 3
Pos: 788
Message; mismatched tag
<option name="GMDETECT" value="true" /> -- enables the GM detection userfunction
<option name="GMnearbylogout" value="true" /> -- If a GM is close to the character it will log out.
<option name="PAUSEONGM" value="" /> -- Pauses when GM whispers for value in seconds. ie 300 = 5 minutes
<option name="RECALL" value="true" /> -- if in combat while pausing it will use recall and whisper/logout
<option name="playerDETECT" value="true" /> -- enables the player detection userfunction
Remember no matter you do in life to always have a little fun while you are at it