KEMO PC Scry is an adaptation of NWN1 (and NWN2-adopted) "scry" scripts that places the information in a GUI Panel similar to the Player List panel. The panel's contents update every few seconds.
Like previous scry systems, this one provides a few different status options, selectable from the buttons at the bottom of the panel.
In the Status column:
- set LFG (looking for group)
- set AFK (away from keyboard)
- set DND (do not disturb)
PC's name:
- no PVP (white name)
- PVP OK (red name)
- PVP negotiable (yellow name)
- Capture OK (green name)
- Go Anonymous (PC disappears from list)
In the DM Column:
- [DM] (marks player as a DM)
- * (DM client only: Anonymous players appear, but are marked with an asterisk)
BUILDERS:
To implement, import the ERF and compile. Then either attach the HAK to your module or extract its contents (one xml file) to another HAK.
Depending on how you want to distribute the scry ability, do either of the following:
- give players the Scry Device (unlimited uses, activate to open the panel)
- using Heed's PC Tools, create or replace a scry button in the custom buttons section of gui_hss_tools with the following two lines:
In the kemo_scry_includes script, there is one constant and one function. The constant, KEMO_USE_CAPTURE, lets you toggle whether or not the "Capture OK" button/status is available.
The function is used to translate an area tag into an area name. Using the existing "if" statements as a guide, add your own area tags and the names you wish them to report back. If you don't want to go through all the trouble, replace the contents of the function with a simple return GetName(sAreaTag);
update 3/29/09 (version 1.10):
* fixed some display glitches
* the refresh rate was 1 second, causing the list to bounce to the top every second unless you held down the scrollbar button while you browsed; now changed to 15 seconds, with specific refreshes at the start and each time a button is pressed
* demo module removed, as it was rather useless as a demo without being set up as a MP server
* 1.22-ready
update 7/3/09 (no files changed):
* fixed an outdated instruction in the description above
update 9/24/09 (no files changed):
* relisted as 1.23-compatible
The description is out of date, I just noticed. Here's how it works now: inside gui_kemo_scry_gather there is a line sPCArea = AreaRename(GetTag(GetArea(oList))); If you change this to sPCArea = GetTag(GetArea(oList)); then it will just use the tag. If you keep it as it is, then it will use the function in kemo_scry_includes. That function is the one that was referred to as being commented out; it's not anymore. Using the same "if" format in the function you can add all the tags of your module and have them spit out area names in a readable format. Include files (essentially ones that don't have a main() or StartingConditional()) don't compile into NCS files themselves; they get folded into the compiled scripts that use them. _________________________ KEMO Auctions | KEMO Beds and Tables | KEMO Bio | KEMO Custom Animations | KEMO Custom Chairs | KEMO Experience Award System | KEMO Jukebox | KEMO PC Scry | KEMO Storage System Kingdom of Haven admin
Posted by Dedic8ed at 2009-06-29 20:50:47 Voted 9.75 on 06/29/09
Fantastic tool, I know this from logging onto Haven and using this. However....
I'm currently trying to implement this in a small semi-private server I'm developing, and seem to be running into a brick wall so far as having it return the area names is concerned. I've compiled and recompiled, and this does not seem to be an issue (although I do find it interesting that the kemo_scry_includes script does not seem to create an .ncs file upon compiling (although I am pretty much a scripting novice, so for all I know this is normal). In addition, in the description you mention a commented-out section of the include script, this does not seem to be there. I'd be much obliged if you could shed some light on this....
Posted by AlgolagniaVolcae at 2009-05-17 11:36:36 Voted 10.00 on 05/17/09
Voting. _________________________ A wise man gets more use from his enemies than a fool from his friends. - Baltasar Gracian, Spanish Jesuit
Posted by Philos at 2009-05-04 10:19:50 Voted 9.00 on 05/04/09
Great addition to any persistent world that wants to get connected. _________________________ Forgotten Realms: Starmantle
A role playing persistent world in the cutthroat region of the Dragon Coast set in the town of Starmantle.
"As pirates skim the coasts for booty, Nobanions followers hold on to the last few groves of the Gulthmere forest from the blood thirsty Malarites."
Posted by scalyface at 2009-04-10 02:31:13 Voted 10.00 on 04/10/09
I'm having a little problem with the areas showing up when it's used.I've followed the directions, but might have missed something. I've entered the tags and the relative Area names and compiled.
Posted by OzmaDarkheart at 2009-03-30 00:07:03 Voted 10.00 on 03/30/09
Fine work, as expected. The availability options are greatly needed in any workable PW.
Posted by KHart115 at 2009-03-29 20:01:53 Voted 10.00 on 09/25/09
Great tool here, so useful... can't live without it anymore. _________________________ nwnhaven.com
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone