41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
//Put this script OnEnter
|
|
#include "nw_i0_tool"
|
|
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);
|
|
|
|
int nXP = GetXP(oPC);
|
|
if (nXP==0)
|
|
{
|
|
if(GetItemPossessedBy(oPC, "nwbwpn44")==OBJECT_INVALID)
|
|
CreateItemOnObject("nwbwpn44", oPC);
|
|
if(GetItemPossessedBy(oPC, "newbamulet44")==OBJECT_INVALID)
|
|
CreateItemOnObject("newbamulet44", oPC);
|
|
if(GetItemPossessedBy(oPC, "newbbook44")==OBJECT_INVALID)
|
|
CreateItemOnObject("newbbook44", oPC);
|
|
if(GetItemPossessedBy(oPC, "newbring44")==OBJECT_INVALID)
|
|
CreateItemOnObject("newbring44", oPC);
|
|
if(GetItemPossessedBy(oPC, "nwbsilks44")==OBJECT_INVALID)
|
|
CreateItemOnObject("newbsilks44", oPC);
|
|
if(GetItemPossessedBy(oPC, "theundeworldbk")==OBJECT_INVALID)
|
|
CreateItemOnObject("theunderworldbk", oPC);
|
|
|
|
DelayCommand(60.0, FloatingTextStringOnCreature("Be sure to level up after you leave the void area!!!", oPC));
|
|
|
|
DelayCommand(60.0, RewardPartyXP(600, oPC, FALSE));
|
|
|
|
DelayCommand(60.0, RewardPartyGP(12000, oPC, FALSE));
|
|
|
|
}
|
|
}
|
|
|