I have totally re-written the socket item system and the way it works.
You now target the socket items with the gem's unique power (Just as it should be) instead of vice versa.
You can use the item's unique power to check how many socket slots are left on the item.
Becase so much of the code has been optimized and modified, it is no longer compatible with the old socket items and gems, however this one is far superior and has alot more options so it's in your best interest to change over.
You can use both this and the old version together, but I would recommend just using this one.
For those of you who don't know what socketed items are I will explain... A socketed item is a normal item like a sword for example; except it has sockets in it that special gems can be placed into for adding bonuses to it (i.e. Keen, Enhancement Bonus etc...).
Items that can be socketed:
Gems you can make for socketing
Damage types for Damage Bonuses and Damage Resistances are:
Acid, Bludgeioning, cold, Divine, Electrical, Fire, Magical, Negative, Piercing, Positive, Slashing, Sonic.
Other customizable options:
You just create your socketed items and gems, add some simple local variables onto them via toolset; customize the constants in the include script and you are ready to go.
WARNING!!
Variables on items are automatically deleted when sold from standard merchants that have their inventory items set to "Infinite" (blame Bioware for that). If items are NOT set to "Infinite"; then they will retain their variables and the system will work; please bare that in mind when using this system.
There me be other possible compatibility problems with some scripts that use CopyItem(). If you use any scripts that involve socket items and the CopyItem() function, be sure to make sure the last paramter bCopyVars = TRUE otherwise vars are lost and socket items and gems will break. Some armour dying kits and crafting can cause this issue, but it is an easy fix by doing as suggested above.
Compiled Previous Updates:
Update 7th August 07:
Update 18th September 07:
Myths And Lies All Answered Here:
Please do not believe the utter nonsense being spread by a certain troll on Bioware forums, this system has NO dupe bugs, and does NOT lag servers, a well known expert in scripting Looked at the code, and couldn't find ANYTHING that would allow duping (Check link in my comments), you can also have this proven if you want to log onto my fairly popular PW server and try it out for yourself. As for efficiency, here is my proof:
NWNX and the Profiler plugin was left running on my PW for 2 hours with 15 players (early morning).
Average Results:
sf_sockets - 4 msec - 56 calls
This is calls per profiler update, this is extremely fast, lets compare it to an unmodified default Bioware spell:
NW_S0_AcidArrow - 31 msec - 28 calls
Now let's face it, Acid arrow isn't exactly a laggy spell is it, it has low visual effects and the code is very small in size yet it's read time is 15 times slower than my socket scripts.
What does this mean? It means trolls can't be trusted :)
The reason I posted this in the description is to clear up any misinformation being spread by trolls who know very little about scripting.
Please post REAL bugs found; on our forums. the forum link is in the forum link box above, thanks.
Attachment | Size |
---|---|
![]() | 57.71 KB |
Hi! I am trying to grab some info about this wonderful system, since i have included it in my pw, it works fine and its great! but now i am in need to find, or make it mayself, a way to remove a single item property from a socketed item..
Is there already a script to fast remove a single item property from a socketed item? And If that also gives the gem of the property removed back.
Thank you!
This was last updated in mid september 2007 and I don't think the author is still around.
TR
See micro-review here.
TR