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