Aantioch_Infernum/_module/nss/emote_rod_give.nss
EpicValor d49d0d353e All I did was replace and npc that went missing
and added a setlocalint in a trigger script.

I have no idea why it says 4492 changed files.
2024-04-06 01:56:31 -05:00

32 lines
815 B
Plaintext

//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
SetLocalInt (oPC, "DynConv_Waiting", 1);
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);
}
if (GetItemPossessedBy(oPC, "playershandbook")!= OBJECT_INVALID)
return;
CreateItemOnObject("playershandbook", oPC);
//////////////////////////////////////////////////////
if (GetItemPossessedBy(oPC, "emotewand")!= OBJECT_INVALID)
return;
CreateItemOnObject("emotewand", oPC);
GiveGoldToCreature(oPC, 230);
}