So, I found out this new method (while reading though the Game Client source code)which ACTUALLY decreases lag.
The code above basically REMOVES all the characters in the room expect your own, this method decreases lag by 50-90%.Code:var avatars:* = null; for(avatars in Game.instance.world.avatars){destroy(Number(avatars));} function destroy(Numbar:Number){if(Game.instance.world.avatars[Numba].isMyAvatar){return;}else{Game.instance.world.destroyAvatar(Numbar);}}
Good luck implementing this into your Trainer/Bot.
Last edited by D.V; 09-15-2014 at 11:21 AM.
Does it actually do what you say?
Reason Why I Didn't Become an Editor
Virus Scans Because I Forgetful:
Jotti & VirusTotal
Cocksucker is not a punishment. It is a lyfestyle.
Nice find, but does this method also remove your own character?
edit: nvm, didnt read it thoroughly.
Last edited by Daenerys; 09-15-2014 at 03:12 PM.
Sweet nice find brother.
I will try to input this into my own trainer, and see if it works.
P.S @Timii
He stats above that removes all character EXPECT your's
Last edited by Eternity; 09-15-2014 at 03:11 PM.
Dis is interesting...
I might put it in HyperDerP.
This works great! I tested this on a certain trainer.
Reason Why I Didn't Become an Editor
Virus Scans Because I Forgetful:
Jotti & VirusTotal
Cocksucker is not a punishment. It is a lyfestyle.
LooZ (09-16-2014)
Darakath (09-17-2014),TheFrikinAsian (09-17-2014)
For those interested, it would be possible to do the same thing with monsters (those which aren't required for the bot) to reduce lag further
Hey @D.V will you update your trainer?
His bot is got some revolutionary new features, you all will love it.
Hi D.V, Thanks for your codes!
I have tried it, it work BUT I had to edit some little parts. It was easy to implement it just edit these Game.instance.world.avatars/Game.instance.world.destroyAvatar into Game.world.avatars/Game.world.destroyAvatar. I just had to remove "Instance" because my trainer do not find Instance in Game, Now it's working very well!
Thanks again man!
For those who make trainer and who are lazy to codes, there is the implementation codes:
There the codes should work like it does for me! ."menuName"."buttonName".addEventListener(MouseEven t.CLICK, "buttonName_onClick); // don't forget to remove the "quotes". menuName is there only if your button is going to be stored in a menu if no, start with "buttonName"
function "buttonname"_onClick(e: MouseEvent) {
//Game.instance.world.avatars.visible = false; // I keeped the old Lag killer code for those who still want to use it. just remove the "//"
var avatars:* = null;
for(avatars in Game.world.avatars){
destroy(Number(avatars));
}
function destroy(Numbar:Number){
if(Game.world.avatars[Numbar].isMyAvatar){
return;
}else{
Game.world.destroyAvatar(Numbar);
}
Edit:
I know but nothing work when .instance. is added in the code. I should probably check further!
Edit:
Drakath, I end with that each time with .instance.
ReferenceError: Error #1069: La propriété instance est introuvable sur Game et il n'existe pas de valeur par défaut.
at "MyTrainerName"_fla::MainTimeline/"buttonName"_onClick()
Last edited by sfa bugok budoy; 06-01-2015 at 05:53 PM. Reason: No multi posting