Aantioch_Infernum/_module/nss/emote_rod_give.nss

32 lines
815 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
2023-08-08 16:22:17 -04:00
if (!GetIsPC(oPC)) return;
DeleteLocalInt (oPC, "DynConv_Waiting");
SetCreatureTailType (CREATURE_TAIL_TYPE_NONE, oPC);
SetPhenoType (PHENOTYPE_NORMAL, oPC);
SetFootstepType (FOOTSTEP_TYPE_DEFAULT, oPC);
if (GetCurrentHitPoints(oPC)<=0)
{
effect eKill = EffectDeath(TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eKill,oPC);
PopUpGUIPanel(GetLastPlayerDied(),GUI_PANEL_PLAYER_DEATH);
}
2023-08-08 16:22:17 -04:00
if (GetItemPossessedBy(oPC, "playershandbook")!= OBJECT_INVALID)
return;
CreateItemOnObject("playershandbook", oPC);
//////////////////////////////////////////////////////
if (GetItemPossessedBy(oPC, "emotewand")!= OBJECT_INVALID)
return;
CreateItemOnObject("emotewand", oPC);
2023-08-09 19:41:38 -05:00
GiveGoldToCreature(oPC, 230);
2023-08-08 16:22:17 -04:00
}