Page 1 of 1

[Orion] Weapon leveling statistics

Posted: Sun Aug 25, 2019 12:43 pm
by Meliofaro
Hello everyone!
I made a tiny script, that shows how much exp you got after each kill and shows exp per minute rate. It helped me alot to find more optimal spot for farming =) Just edit weapon serial at beginning and start trackDeadMobs() function right before you start hunting!

Image

Code: Select all

var weapon = "0x4096EF53";

function getWeaponInfo(serial)
{
	var result = {};
	var exp = 0;
	var lvl = 0;
	var object = Orion.FindObject(serial);
	if(object != null)
	{
		var properties = object.Properties();
		var matchesExp = /Experience: (\d+)/.exec(properties);
		var matcheslvl = /Level: (\d+)/.exec(properties);

		if(matchesExp && matchesExp.length>0)		
			var exp = parseInt(matchesExp[1]);		
		
		if(matcheslvl && matcheslvl.length>0)		
			var lvl = parseInt(matcheslvl[1]);		

		return {"lvl" : lvl, "exp" : exp};
	}
}

function trackDeadMobs()
{	
	var started = new Date().getTime();	
	var totalExp = 0;
	while(true)
	{		
		var startExp = getWeaponInfo(weapon)['exp'];						
		if(Orion.WaitJournal("You received",Orion.Now(),Orion.Now()+20000))
		{	
			Orion.Wait(500);
			var currentExp = getWeaponInfo(weapon)['exp'];
			var currentLvl = getWeaponInfo(weapon)['lvl'];
			var toNextLvl = 100*Math.pow(currentLvl+1,2)-100;
			Orion.Print('0x0035',"Weapon lvl : "+currentLvl);
			Orion.Print('0x0035',"Weapon exp : "+currentExp+"/"+toNextLvl+" (+"+(currentExp-startExp)+")");
			totalExp = totalExp+(currentExp-startExp);						
			var minutes = ((new Date().getTime() - started) / 1000) / 60;
			var expPerMinute = (totalExp/minutes).toFixed(2);
			Orion.Print('0x0035', "Exp@minute : "+expPerMinute);
		}
	}
}

Re: [Orion] Weapon leveling statistics

Posted: Tue Aug 27, 2019 8:21 am
by mattwaldram
Nice - will check this out next time I'm on. Cheers for sharing :)

Re: [Orion] Weapon leveling statistics

Posted: Tue Aug 27, 2019 9:57 am
by Nick
man that looks really cool.... maybe I should stop using razor...

Re: [Orion] Weapon leveling statistics

Posted: Tue Aug 27, 2019 3:16 pm
by Fist
Easyuo?

Re: [Orion] Weapon leveling statistics

Posted: Wed Aug 28, 2019 12:51 am
by Animol
Fist wrote:Easyuo?
There's [Orion] right in the title :P

Re: [Orion] Weapon leveling statistics

Posted: Thu Aug 29, 2019 3:56 am
by Opopanax
What is orion? Is it a tool like Razor or Easyuo? I've never heard of it before.

Re: [Orion] Weapon leveling statistics

Posted: Thu Aug 29, 2019 4:12 am
by Animol

Re: [Orion] Weapon leveling statistics

Posted: Thu Aug 29, 2019 5:02 am
by Opopanax
Thanks! This looks really interesting.

Is it better than Razor? I've been using Razor for a while, but it's a bit clunky sometimes

Re: [Orion] Weapon leveling statistics

Posted: Thu Aug 29, 2019 10:53 am
by Meliofaro
Opopanax wrote:Thanks! This looks really interesting.

Is it better than Razor? I've been using Razor for a while, but it's a bit clunky sometimes
Give it a try =) 60+ FPS UO looks awesome =) I made many scripts for Orion Client, so if there will be more ppl who use Orion - i'll post them, from autoloot to lumberjacking with automatic tree search etc =)

Re: [Orion] Weapon leveling statistics

Posted: Thu Feb 06, 2020 12:35 pm
by Coalfire
Meliofaro wrote:
Opopanax wrote:Thanks! This looks really interesting.

Is it better than Razor? I've been using Razor for a while, but it's a bit clunky sometimes
Give it a try =) 60+ FPS UO looks awesome =) I made many scripts for Orion Client, so if there will be more ppl who use Orion - i'll post them, from autoloot to lumberjacking with automatic tree search etc =)
I gave it a try, and I must say I like several of the features that Orion offers. Do you have an Auto Attacker Script? Thats the one I use the most in UOSteam, and basically the only thing holding me back from trying Orion on a most permanent basis.

A script that will attack nearest Grey Target, Cast Consecrate Weapon, and Divine Fury as needed, and Discordance.

Re: [Orion] Weapon leveling statistics

Posted: Fri Nov 06, 2020 3:28 pm
by Orionesss
Guys, are there active users of this alternative client?
Any scripting library?

Re: [Orion] Weapon leveling statistics

Posted: Wed Nov 11, 2020 1:21 am
by Alamiester
if you could help with a setup on how to get it running with excelsior, maybe more would use it. i have it installed but am having issues starting uo client with it.