Aschbourne_PRC8/_module/nss/levelrescryptall.nss
GetOffMyYarn 69879d6957 Areas and Fixes
Added CCOH and missing areas
Changed some areas to be craftable,
Fixed some on death issues,
Fixed the Gaurd
2024-08-30 11:38:44 -04:00

35 lines
946 B
Plaintext

//:://////////////////////////////////////////////
/*
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 = 15;//Set minimum level here
int nMaxLevel = 40;//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));
}
}
}