Initial upload
Initial upload
This commit is contained in:
32
_module/nss/givegodtoken2.nss
Normal file
32
_module/nss/givegodtoken2.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
//Put this script OnEnter
|
||||
#include "nw_i0_tool"
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetItemPossessedBy(oPC, "deepkey")== OBJECT_INVALID)
|
||||
return;
|
||||
|
||||
object oItem;
|
||||
oItem = GetFirstItemInInventory(oPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetTag(oItem)=="deepkey") DestroyObject(oItem);
|
||||
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
|
||||
CreateItemOnObject("godmark2", oPC);
|
||||
|
||||
RewardPartyXP(5000, oPC, FALSE);
|
||||
|
||||
RewardPartyGP(99999, oPC, FALSE);
|
||||
|
||||
CreateItemOnObject("planekey", oPC);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user