[Orion] Weapon leveling statistics

If you make a Client-side script you can publish it here for other players to use
Post Reply
Meliofaro
Novice Scribe
Posts: 6
Joined: Fri Aug 16, 2019 12:43 pm

[Orion] Weapon leveling statistics

Post 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);
		}
	}
}
mattwaldram
Elder Scribe
Posts: 104
Joined: Tue May 05, 2015 10:54 am

Re: [Orion] Weapon leveling statistics

Post by mattwaldram »

Nice - will check this out next time I'm on. Cheers for sharing :)
-- In-game: Oslington Weasel
Nick
Legendary Scribe
Posts: 515
Joined: Fri Sep 24, 2010 12:40 pm
Location: PA native, liveing in NC right now Moveing to TX in march

Re: [Orion] Weapon leveling statistics

Post by Nick »

man that looks really cool.... maybe I should stop using razor...
Fist
Elder Scribe
Posts: 127
Joined: Sat Apr 09, 2016 8:34 am

Re: [Orion] Weapon leveling statistics

Post by Fist »

Easyuo?
User avatar
Animol
Elder Scribe
Posts: 166
Joined: Tue Apr 03, 2018 8:38 pm

Re: [Orion] Weapon leveling statistics

Post by Animol »

Fist wrote:Easyuo?
There's [Orion] right in the title :P
Opopanax
Legendary Scribe
Posts: 262
Joined: Sun Jun 30, 2013 10:25 am

Re: [Orion] Weapon leveling statistics

Post by Opopanax »

What is orion? Is it a tool like Razor or Easyuo? I've never heard of it before.
In game name: Abarai
Opopanax
Legendary Scribe
Posts: 262
Joined: Sun Jun 30, 2013 10:25 am

Re: [Orion] Weapon leveling statistics

Post 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
In game name: Abarai
Meliofaro
Novice Scribe
Posts: 6
Joined: Fri Aug 16, 2019 12:43 pm

Re: [Orion] Weapon leveling statistics

Post 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 =)
User avatar
Coalfire
Master Scribe
Posts: 56
Joined: Wed Jan 15, 2020 11:51 pm

Re: [Orion] Weapon leveling statistics

Post 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.
Orionesss
Apprentice Scribe
Posts: 14
Joined: Fri Oct 16, 2020 12:39 am

Re: [Orion] Weapon leveling statistics

Post by Orionesss »

Guys, are there active users of this alternative client?
Any scripting library?
User avatar
Alamiester
Legendary Scribe
Posts: 279
Joined: Wed Jan 04, 2017 8:49 pm

Re: [Orion] Weapon leveling statistics

Post 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.
Post Reply