33 lines
541 B
Plaintext
33 lines
541 B
Plaintext
//Put this script OnEnter
|
|
#include "nw_i0_tool"
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "planekey")== OBJECT_INVALID)
|
|
return;
|
|
|
|
object oItem;
|
|
oItem = GetFirstItemInInventory(oPC);
|
|
|
|
while (GetIsObjectValid(oItem))
|
|
{
|
|
if (GetTag(oItem)=="planekey") DestroyObject(oItem);
|
|
|
|
oItem = GetNextItemInInventory(oPC);
|
|
}
|
|
|
|
CreateItemOnObject("godmark3", oPC);
|
|
|
|
RewardPartyXP(5000, oPC, FALSE);
|
|
|
|
RewardPartyGP(99999, oPC, FALSE);
|
|
|
|
CreateItemOnObject("hellsgatekey", oPC);
|
|
|
|
}
|
|
|