Aschbourne_PRC8/_module/nss/_use_waterwell.nss
GetOffMyYarn 7030eb2235 added things
added a crafting tool merchant,
added a training hall (not quite working yet)
fixed crafting issues,
exchanged the small cave area
2024-09-01 14:11:15 -04:00

37 lines
1002 B
Plaintext

void ItemCreate(object oPC);
#include "nw_i0_plot"
void main()
{
if (GetLocalInt(OBJECT_SELF,"iAmInUse") != 0) return;
object oPC = GetLastUsedBy();
object oBucket = OBJECT_INVALID;
oBucket = GetItemPossessedBy(oPC,"ITEM_EMPTYBUCKET");
if (oBucket == OBJECT_INVALID)
{
FloatingTextStringOnCreature("You must have an empty bucket in order to fill it with water.",oPC,FALSE);
return;
}
SetLocalInt(OBJECT_SELF,"iAmInUse",99);
DestroyObject(oBucket);
FloatingTextStringOnCreature("You fill the bucket with fresh water.",oPC,FALSE);
PlaySound("as_cv_ropepully2");
DelayCommand(2.0,PlaySound("as_na_splash1"));
DelayCommand(4.0,PlaySound("as_cv_ropepully2"));
DelayCommand(6.0,SetLocalInt(OBJECT_SELF,"iAmInUse",0));
DelayCommand(6.0,ItemCreate(oPC));
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_GET_MID,1.0,6.0));
}
void ItemCreate(object oPC)
{
object oWater = CreateItemOnObject("item002",oPC,1);
SetLocalInt(oPC,"iWaterFull",5);
return;
}