68 lines
1.1 KiB
Plaintext
68 lines
1.1 KiB
Plaintext
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);
|
|
|
|
//if (GetItemPossessedBy(oPC, "leadercrystal")== OBJECT_INVALID)
|
|
// {
|
|
// DestroyObject("satchel", oPC, 1.0);
|
|
// DestroyObject("leadercrystal", oPC);
|
|
object oItem;
|
|
oItem = GetItemPossessedBy(oPC, "leadercrystal");
|
|
|
|
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
|
|
// }
|
|
|
|
|
|
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), GetLocation(oTarget));
|
|
//new
|
|
//
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetHitDice(oPC) <= 1)
|
|
{
|
|
// SetXP(oPC, 3000);
|
|
GiveGoldToCreature (oPC, 1000);
|
|
// }
|
|
//CreateItemOnObject("nw_it_mpotion020", oPC);
|
|
|
|
//CreateItemOnObject("nw_it_mpotion020", oPC);
|
|
|
|
//CreateItemOnObject("nw_it_mpotion020", oPC);
|
|
|
|
//CreateItemOnObject("nw_it_mpotion020", oPC);
|
|
}
|
|
//void main()
|
|
//{
|
|
|
|
//object oPC = GetEnteringObject();
|
|
|
|
//if (!GetIsPC(oPC)) return;
|
|
|
|
//if (GetItemPossessedBy(oPC, "GemOfReturning")!= OBJECT_INVALID)
|
|
// return;
|
|
|
|
//CreateItemOnObject("gemofreturning", oPC);
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
//}
|
|
|