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.
19 lines
681 B
Plaintext
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));
|
|
}
|
|
|