Areas and Fixes
Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
This commit is contained in:
39
_module/nss/_mageonlydoor.nss
Normal file
39
_module/nss/_mageonlydoor.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
///////////////////////////////////////
|
||||
// Door Script - Allows only Mages to enter
|
||||
//
|
||||
////////////////////////////////////////
|
||||
#include "prc_class_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Close the door after 30 seconds
|
||||
DelayCommand(30.0, ActionCloseDoor(OBJECT_SELF));
|
||||
|
||||
object oClicker = GetClickingObject();
|
||||
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
||||
location lLoc = GetLocation(oTarget);
|
||||
location lLoc2 = GetLocation(GetObjectByTag("WP_Throw_out"));
|
||||
|
||||
// Sum of arcane class levels
|
||||
int iArcane = GetLevelByClass(CLASS_TYPE_BARD, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_BEGUILER, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_DREAD_NECROMANCER, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_KNIGHT_WEAVE, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_SORCERER, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_SUBLIME_CHORD, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_WARMAGE, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_WARLOCK, oClicker) +
|
||||
GetLevelByClass(CLASS_TYPE_WIZARD, oClicker);
|
||||
|
||||
// Determine action based on arcane class level sum
|
||||
if (iArcane > 0)
|
||||
{
|
||||
AssignCommand(oClicker, JumpToLocation(lLoc));
|
||||
}
|
||||
else
|
||||
{
|
||||
AssignCommand(oClicker, JumpToLocation(lLoc2));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user