multiple onload in the same file ?
Posted: Wed Jul 25, 2012 10:46 am
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?
Like:
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?
Like:
Code: Select all
<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>