Initial upload
Initial upload
This commit is contained in:
40
_module/nss/newbitemtrigg.nss
Normal file
40
_module/nss/newbitemtrigg.nss
Normal file
@@ -0,0 +1,40 @@
|
||||
//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));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user