15 lines
489 B
Plaintext
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);
|
|
}
|
|
}
|