Amon_PRC8/_module/nss/dv_level_tran.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

15 lines
489 B
Plaintext

#include "pcinclude"
void main()
{
object oPC = GetEnteringObject();
int iPCLevel = GetHitDice(oPC);
int iDoorLevel = StringToInt(GetStringRight(GetTag(OBJECT_SELF),2));
object oTarget = GetObjectByTag(GetName(OBJECT_SELF));
string keyTag = GetLockKeyTag(OBJECT_SELF);
if(iPCLevel < iDoorLevel)
{
AssignCommand(oPC, JumpToObject(oTarget));
FloatingTextStringOnCreature("You must gain more experience before passing this barrier.", oPC);
}
}