18 lines
485 B
Plaintext
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"));
|
|
}
|
|
}
|
|
|