Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  Spell Tracking v1.3
Author  Creslyn
Submitted / Updated  02-11-2004 / 11-22-2006
Category  Spells
Expansions  HOTU-1.61
Format  Code Only
Type  Type - Other
Includes  Custom
Description
Method of tracking spell usage and memorisation over logout/login updated for HotU, persistent over server travel/resets/crashes. Runs off the spellhook, OnPlayerRest and OnClientEnter events. Simply unzip the .erf and import the files into your module. Instructions included in the .erf. Feedback is welcome. See the text file below for details.

Files

NameTypeSizeDownloads
spelltrackv13.rarspelltrackv13.rar
Submitted: 02-11-2004 / Last Updated: 03-21-2004
rar5.89Kb571
--
SCORE OUT OF 10
7.94
6 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (29):

1 2 3

Posted by Lucky at 2004-10-2812:00:00    
gah - its these boards that can't handle my post. I posted right the first two times in fact that is likely what happened to your code sir elric st_inc.nss(122): ERROR: NO SEMICOLON AFTER EXPRESSION these boards can't hadnle a properly formated "for" loop and its combining the for and the if statements together.

Posted by Anonymous at 2004-10-2811:53:00    
man! I can't sem to post right today one more time :P Sir Elric: the whole line for(nID=0;nID= 0 nID = 340 nID = 363 nID = 387 nID = 414 nID = 429 nID = 512 nID = 636 nID = 0 nID = 340 nID = 363 nID = 387 nID = 414 nID = 429 nID = 512 nID = 636 nID = 0 nID = 340 nID = 363 nID = 387 nID = 414 nID = 429 nID = 512 nID = 636 nID

Posted by Lucky at 2004-10-2811:50:00    
sorry the whole line for(nID=0;nID= 0 nID = 340 nID = 363 nID = 387 nID = 414 nID = 429 nID = 512 nID = 636 nID = 0 nID = 340 nID = 363 nID = 387 nID = 414 nID = 429 nID = 512 nID = 636 nID

Posted by Lucky at 2004-10-2811:40:00    
Sir E you forgot ;nID++ in the line for(nID=0;nID= 0 nID = 340 nID = 363 nID = 387 nID = 414 nID = 429 nID = 512 nID = 636 nID

Posted by Frang at 2004-09-1007:20:00    
anyway you can update the file its not working. says the spelltrackv1_3.erf header is corrupt. and wont let me unzip it

Posted by Sir_Elric at on06/29/05
The fix I created for my earlier post is this for anyone that's interested. Open st_inc and scroll down to... // Check if a spell was memorised legally (with resting) nLegal = st_GetInt(oCaster,"st_SpellCastLegal_"+IntToString(nID)+"_"); if(nLegal) { // Remove any castings of the spell already used nCasts = st_GetInt(oCaster,"st_NumSpellCast_"+IntToString(nID)+"_"); st_LegalLoopDecrement(oCaster, nID, nCasts); } //Check for more of the same spell if so decrement them if (nSpell>nLegal) { int iRemove = nSpell - nLegal; st_LegalLoopDecrement(oCaster, nID, iRemove); } change it to... // Check if a spell was memorised legally (with resting) nLegal = st_GetInt(oCaster,"st_SpellCastLegal_"+IntToString(nID)+"_"); if(nLegal) { // Remove any castings of the spell already used nCasts = st_GetInt(oCaster,"st_NumSpellCast_"+IntToString(nID)+"_"); st_LegalLoopDecrement(oCaster, nID, nCasts); //Check for more of the same spell if so decrement them if (nSpell>nLegal) { int iRemove = nSpell - nLegal; st_LegalLoopDecrement(oCaster, nID, iRemove); } } HTH SECity of Melnibone - PW ausnwn2.dyndns.org:5121 _________________________ City of Melnibone ausnwn.dyndns.org:5121

Posted by Sir_Elric at on06/29/05
One other thing I have found is if you swap used spells for spells that you already had these will not be decremented if you log in and log out. ie: 5th level wizard spells have 3 firebrands and 3 hold monsters cast all 6 spells replace the hold monster with 3 more firebrands log out and back and you have the 3 new firebrands ready to use :S SECity of Melnibone - PW ausnwn2.dyndns.org:5121 _________________________ City of Melnibone ausnwn.dyndns.org:5121

Posted by Sir_Elric at on06/29/05
Easiest way to log spells on first log in rather than decrement them all is to use your st_OnRestCompleted(oPC); function with a delayed SetLocalInt(). #include "st_inc" void main() { object oPC = GetEnteringObject(); if (!GetLocalInt(oPC, "ENTERED"))//First log in? { st_OnRestCompleted(oPC);//Log all current spells } else { st_HideCheck(oPC); DelayCommand(0.8,st_SpellCheck(oPC)); } DelayCommand(10.0, SetLocalInt(oPC, "ENTERED", TRUE)); } Cheers SECity of Melnibone - PW ausnwn2.dyndns.org:5121 _________________________ City of Melnibone ausnwn.dyndns.org:5121

Posted by Sir_Elric at on06/29/05
Excellent stuff just about to add it to my PW. One thing I added was setting a delayed local on the player as they enter in the OnEnter script. #include "st_inc" void main() { object oPC = GetEnteringObject(); DelayCommand(10.0, SetLocalInt(oPC, "ENTERED", TRUE)); st_HideCheck(oPC); DelayCommand(0.8,st_SpellCheck(oPC)); } ...then in the st_SpellCheck() function add... void st_SpellCheck(object oCaster) { if(GetIsPC(oCaster) !GetIsDM(oCaster) !GetIsDMPossessed(oCaster)) { int nID, nSpell, nLegal, nCasts; for(nID=0;nID= 0 nID = 340 nID = 363 nID = 387 nID = 414 nID = 429 nID = 512 nID = 636 nID _________________________ City of Melnibone ausnwn.dyndns.org:5121

Posted by Harkinian at on06/19/04
Excellent system. Well coded and thought out. Very user friendly.

1 2 3

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Tutorials


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters