Aschbourne_PRC8/_module/nss/_uoacraft_enter.nss

31 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
//This script may be cut-and-pasted directly into your
//OnClientEnter script (module-level event)
//You may also cut-and-paste lines 10-14 into any script
//which uses 'oPC' to identify the player character
void main()
{
object oPC = GetEnteringObject(); //Get the PC entering the module
//Test to see if PC has a skill book.. if not, then create one.
if (GetItemPossessedBy(oPC,"NoDrop_SkillLogBook")==OBJECT_INVALID)
{
CreateItemOnObject("skilllogbook",oPC,1);
}
//Delete persistent hooks which need to be 'gone' to begin with
//**this added due to HoTU effects on servervault characters
DeleteLocalInt(oPC,"iSkillGain");
DeleteLocalInt(oPC,"iPCUsedMap");
DeleteLocalInt(oPC,"iAmFollowingMap");
DeleteLocalInt(oPC,"iAmDiggingMap");
DeleteLocalInt(oPC,"iAmFishing");
DeleteLocalInt(oPC,"iCancelFishing");
DeleteLocalInt(oPC,"iAmInField");
DeleteLocalInt(oPC,"iAmInWaterField");
DeleteLocalInt(oPC,"iAmInCommodityArea");
DeleteLocalString(oPC,"sKillMe");
DeleteLocalInt(oPC,"iAmDigging");
DeleteLocalLocation(oPC,"lIWasHere");
}