Initial upload
Initial upload
This commit is contained in:
20
_module/nss/givefinaltoken.nss
Normal file
20
_module/nss/givefinaltoken.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
//Put this script OnEnter
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
||||
|
||||
if (DoOnce==TRUE) return;
|
||||
|
||||
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
||||
|
||||
if (GetItemPossessedBy(oPC, "bosstoken")== OBJECT_INVALID)
|
||||
{
|
||||
CreateItemOnObject("bosstoken", oPC);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user