Aschbourne_PRC8/_module/levelrescryptall.nss
GetOffMyYarn 8622e5ce08 Area Changes and other fixes
added areas and ccoh,
fixed some areas to work with crafting
fixed some on death issues
added server entry/ooc
2024-08-30 10:38:04 -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));
}
}
}