PWE_PRC8/_module/nss/emote_actvate.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

36 lines
759 B
Plaintext

void main()
{
object oPlayer = GetItemActivator();
object oItem = GetItemActivated();
{
if(GetTag (oItem) == "leadercrystal")
AssignCommand (oPlayer, ActionStartConversation (oPlayer, "master_port2", TRUE, FALSE));
}
// {
// if(GetTag (oItem) == "EmoteWand")
// AssignCommand (oPlayer, ActionStartConversation (oPlayer, "emotewand", TRUE, FALSE));
// }
{
if(GetTag (oItem) == "FoodRations")
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectHeal(50), oPlayer);
}
{
if(GetTag (oItem) == "Milk")
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectHeal(30), oPlayer);
}
{
if(GetTag (oItem) == "Water")
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectHeal(10), oPlayer);
}
}