2023-08-08 16:22:17 -04:00
|
|
|
//Put this OnEnter
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
|
2023-09-16 17:45:31 -05:00
|
|
|
|
2023-08-08 16:22:17 -04:00
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
|
2024-04-06 19:26:35 -05:00
|
|
|
DeleteLocalInt (oPC, "DynConv_Waiting");
|
2023-09-16 17:45:31 -05:00
|
|
|
SetCreatureTailType (CREATURE_TAIL_TYPE_NONE, oPC);
|
|
|
|
SetPhenoType (PHENOTYPE_NORMAL, oPC);
|
|
|
|
SetFootstepType (FOOTSTEP_TYPE_DEFAULT, oPC);
|
|
|
|
|
2023-09-03 21:12:26 -05:00
|
|
|
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-09-03 21:12:26 -05:00
|
|
|
|
2023-08-08 16:22:17 -04:00
|
|
|
}
|