Further PRC integration
Further PRC integration. Fixed Rod of Ruin. Full compile.
This commit is contained in:
@@ -17,7 +17,9 @@ the X2_ITEM_EVENT_ACTIVATE: script code will run.
|
||||
|
||||
*/
|
||||
////////////////////////////////////////
|
||||
|
||||
#include "x2_inc_switches"
|
||||
#include "prc_class_const"
|
||||
|
||||
//Main Script
|
||||
void main()
|
||||
@@ -92,8 +94,15 @@ void main()
|
||||
oTarget = GetItemActivatedTarget(); //The target of the item's power
|
||||
lway = GetItemActivatedTargetLocation(); //To get the location of the target!
|
||||
|
||||
nWLvl = GetLevelByClass(CLASS_TYPE_WIZARD, oPC);
|
||||
nSLvl = GetLevelByClass(CLASS_TYPE_SORCERER, oPC);
|
||||
nWLvl = GetLevelByClass(CLASS_TYPE_WIZARD, oPC);
|
||||
|
||||
nSLvl = GetLevelByClass(CLASS_TYPE_SORCERER, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_DREAD_NECROMANCER, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_WARMAGE, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_SHADOWCASTER, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_WARLOCK, oPC)
|
||||
+GetLevelByClass(CLASS_TYPE_DRAGONFIRE_ADEPT, oPC);
|
||||
|
||||
//Determine effects...
|
||||
if(nWLvl >=21)
|
||||
{
|
||||
|
Reference in New Issue
Block a user