|
|
|
|
[VN
Boards Archive] |
Welcome to the Vault Network
forum archive.
This is not a complete archive, time didn't allot us the
opportunity to properly backup the majority of the boards
deemed "expendable". Most boards on this list have at least
20-40 pages archived (non-logged in pages, 15 topics per
page).
Popular boards may have as many as 250 pages archived at 50
topics per page, while others deemed of historical
signifigance may be archived in their entirety.
We may not agree with how the board shutdown was managed, but
we've done what we could to preserve some of its history in
lieu of that.
Please enjoy the archive.
~
Managers, Moderators, VIP's, and regular posters.
|
Author |
Topic: DEVELOPERS: How to read character skills in .net plugins post-february patch
|
Virindi-Inquisitor
Posts:
6,908
Registered:
Nov 18, '01
Extended Info (if available)
Real Post Cnt: 6,646
User ID: 511,923
|
Subject:
DEVELOPERS: How to read character skills in .net plugins post-february patch
|
A few people have asked me how to do this so I figured I should post it here. The ACHooks skill functions do a range check, and skill id cannot be >50 (the IDs for new skills now top at 52). Adapter's charstats wrapper won't let you access skills that are not in its enum, and attempting to enumerate the builtin skills list causes an exception. This leaves two options for tracking the status of a skill on a character: manually monitoring the protocol, or using charstats interops. The list of game skill names and their ids can be retrieved from FileService as always. Getting skill state from charstats interops should work the same on all decal 2960+. Here is an example of interop code that loops the fileservice skill table (from portal) and displays the current character's points in each skill: ****BEGIN CODE**** Decal.Filters.FileService fs = Decal.Adapter.CoreManager.Current.FileService as Decal.Filters.FileService; Decal.Interop.Filters.SkillInfo skillinfo = null; for (int i = 0; i < fs.SkillTable.Length; ++i) { try { skillinfo = CoreManager.Current.CharacterFilter.Underlying.get_Skill((Decal.Interop.Filters.eSkillID)fs.SkillTable[i].Id); System.Windows.Forms.MessageBox.Show(skillinfo.Name + ": " + skillinfo.Increment.ToString()); } finally { if (skillinfo != null) { System.Runtime.InteropServices.Marshal.ReleaseComObject(skillinfo); skillinfo = null; } } } ****END CODE****
-----signature-----
Virindi --- ****Virindi Plugins FAQ**** http://www.virindi.net/wiki/index.php/Virindi_Plugins_FAQ http://www.virindi.net - Virindi Tank, Follower, Integrator, Reporter, VCS5, XPHelper, Item Tool, HUDs, etc... Decal Core Dev - http://www.decaldev.com
|
Link to this post
|
-Eps
Title: I Love Boobies. And Butts, too!
Posts:
17,344
Registered:
May 30, '07
Extended Info (if available)
Real Post Cnt: 32,011
User ID: 1,226,605
|
Subject:
DEVELOPERS: How to read character skills in .net plugins post-february patch
|
Thanks cutie
-----signature-----
#dnn #og-ac http://tinyurl.com/ACDTChat Fastest 1-275 in AC history. Plugin Users: 100+ Buy Plugins Relogger, ValSalv, and AutoVendor(route trigger): http://bit.ly/ACaCAl [Trade] +Envoy Sparker says, "Rep check: Eps Levelin, PST."
|
Link to this post
|
|
|
© 2012. All
Rights Reserved. |
|
|
|
|