Alangara_PRC8/_module/nss/cha_to_heal.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

32 lines
929 B
Plaintext

#include "mn_i_pwfunctions"
void ObjectToVoid(object oObject);
void ObjectToVoid(object oObject)
{ }
void main()
{
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Take stuff from the PC.
DestroyObject(GetItemPossessedBy(oPC, "potioncrystal1"));
DestroyObject(GetItemPossessedBy(oPC, "potioncrystal2"));
DestroyObject(GetItemPossessedBy(oPC, "potioncrystal3"));
DestroyObject(GetItemPossessedBy(oPC, "potioncrystal4"));
DestroyObject(GetItemPossessedBy(oPC, "potioncrystal5"));
DestroyObject(GetItemPossessedBy(oPC, "potioncrystal7"));
AssignCommand(oPC, TakeGoldFromCreature(1000, oPC, TRUE));
effect eVFX;
object oSelf = GetPCSpeaker();
eVFX = EffectVisualEffect(VFX_FNF_ELECTRIC_EXPLOSION);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSelf);
DelayCommand(1.0, ObjectToVoid(CreateItemOnObject("potioncrystal2", oPC)));
}