Central Forums Code Wiki Characters Tools Helpbot
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]   Go Down
Print
Topic: !inits  (Read 389 times)
« on: January 20, 2010, 01:33:31 »
Noob

View Profile


Epeen: -1
Posts: 4


I've added a new public interface to www.xyphos.com specifically for this plugin.

This plugin is a re-written copy of vh_Items.cs
that allows people to see a dozen init calculations and optimal AGG-DEF Slider settings
for their weapon in-game, without having to look up the weapon on www.xyphos.com
the init calculations also factor in QL interpolation.

to use, just !inits [drop weapon in chat]

THERE IS 1 BUG IN IT
For some unknown reason, it will show the init calculations followed by another blank line.
I have no idea why.

--Xyphos

* xy_Inits.cs (5.93 KB - downloaded 38 times.)
« Last Edit: January 21, 2010, 03:57:46 by Xyphos »
Logged
« Reply #1 on: January 22, 2010, 00:13:21 »
Administrator
Novice

View Profile
*****

Epeen: 4
Posts: 324


Its one peculiarity of c# try/catch/finally I think. Despite the 'return' in your Try block, its still executing the Finally block .. so a simple change to line 119 to

Code:
               if (result != string.Empty) { bot.SendReply(e, result); }
removes the extra bot message .. because it's trying to display the error which doesn't exist.


* xy_Inits.cs (5.95 KB - downloaded 32 times.)
Logged
« Reply #2 on: January 22, 2010, 17:16:55 »
Noob

View Profile


Epeen: -1
Posts: 4


oh. well thanks for fixing it.
any chance that this (your fixed attachment) will be added to the SVN?
Logged
« Reply #3 on: January 22, 2010, 18:14:32 »
Administrator
Novice

View Profile
*****

Epeen: 4
Posts: 324


I was just thinking it would be Nat's final approval .. but it occurs to me that I'm supposedly trusted to administer the plugins section myself!

If that is indeed the case .. it will be added to the major commit session thats pending. I have many revised versions of the existing plugins which are awaiting approval before also being committed to the SVN repository for public access.
Logged
Pages: [1]   Go Up
Print
Jump to: