Originally Posted by
JamesRo
Hmmmmmmmmm... What error you get when you try to disable the Bot Manager?
This is probably due to my ignorance in Flash, and I probably broke something, but when I'm running the trainer through Test Movie, and I click the button to disable the Bot Manager it says:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at darkmystic.v3.bots::Quests$/reset()
at darkmystic.v3.bots::BotManager/turnOff()
at darkmystic.v3.bots::BotManager/btnEnable_onChange()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.controls::LabelButton/toggleSelected()
...and then continues to run. Any idea as to what's wrong?
I think this is what is at fault, but I don't know how to fix it.
Code:
function turnOn(): void {
curIndex = 0;
initialize();
Bot.events.addEventListener(BotEvent.MONSTER_DEAD, onMonsterDead);
Bot.events.addEventListener(BotEvent.MONSTER_NOT_FOUND, onMonsterNotFound);
botTimer.start();
boostTimer.start();
Quests.start();
}
function turnOff(): void {
Bot.events.removeEventListener(BotEvent.MONSTER_DEAD, onMonsterDead);
Bot.events.removeEventListener(BotEvent.MONSTER_NOT_FOUND, onMonsterNotFound);
Bot.reset();
Quests.reset();
botTimer.reset();
boostTimer.reset();
}
Also, Zerobrium's trainer looks so nice... I should probably give up and go cry in a corner.