Amon_PRC8/_module/nss/tr_get_water.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

18 lines
485 B
Plaintext

#include "nw_i0_tool"
void main()
{
object oPC = GetLastUsedBy();
// Make sure the PC speaker has these items in their inventory
if(!HasItem(oPC, "EmptyWaterBottle"))
FloatingTextStringOnCreature("*You need an empty water bottle*", oPC);
else{
FloatingTextStringOnCreature("*You fill up your bottle with water*", oPC);
CreateItemOnObject("FullWaterBottle", oPC);
DestroyObject(GetItemPossessedBy(oPC, "EmptyWaterBottle"));
}
}