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:
34
_module/nss/levelrestri16_19.nss
Normal file
34
_module/nss/levelrestri16_19.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Only players with a minimum level of "nMinLevel"
|
||||
and a maximum level of "nMaxLevel" can use this
|
||||
transition.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Sir Elric
|
||||
//:: Created On: 7th June, 2005
|
||||
//:: Event Used: OnAreaTransitionClick
|
||||
//:://////////////////////////////////////////////
|
||||
/* OnEnter of door */
|
||||
void main()
|
||||
{
|
||||
int nMinLevel = 16;//Set minimum level here
|
||||
int nMaxLevel = 19;//Set maximum level here
|
||||
object oClicker = GetClickingObject();
|
||||
object oTarget;
|
||||
if(GetIsPC(oClicker))
|
||||
{
|
||||
if( GetHitDice(oClicker ) < nMinLevel || GetHitDice( oClicker )> nMaxLevel )
|
||||
{
|
||||
FloatingTextStringOnCreature("",
|
||||
|
||||
oClicker, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
oTarget = GetTransitionTarget(OBJECT_SELF);
|
||||
SetAreaTransitionBMP(AREA_TRANSITION_RANDOM);
|
||||
AssignCommand(oClicker,JumpToObject(oTarget));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user