Battledale_PRC8/_module/nss/jw_water_scoop.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

19 lines
681 B
Plaintext

void main()
{
object oPC=GetClickingObject();
object oBottle=GetItemPossessedBy(oPC,"ah_miscbottle");
if (!GetIsObjectValid(oBottle))
{
SendMessageToPC(oPC,"If you want to collect some water from this pool, you will need a bottle to store it in");
return;
}
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW));
FloatingTextStringOnCreature(GetName(oPC)+" scoops up some water from the pool into a bottle",oPC);
AssignCommand(oPC,PlaySound("fs_water_hard2"));
DestroyObject(oBottle);
CreateItemOnObject("jw_clear_water",oPC,1);
//DelayCommand(0.3,ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_HEAD_HOLY),oPC));
}