29 lines
617 B
Plaintext
29 lines
617 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetLastUsedBy();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_GET_MID,1.0,3.0));
|
|
ActionWait(2.0);
|
|
|
|
if (GetItemPossessedBy(oPC, "Empty")== OBJECT_INVALID)
|
|
{
|
|
string sDeny="Need something to drink out of...";
|
|
|
|
DelayCommand(1.5,FloatingTextStringOnCreature(sDeny,oPC,FALSE));
|
|
|
|
return;
|
|
}
|
|
|
|
object oItem;
|
|
oItem = GetItemPossessedBy(oPC, "Empty");
|
|
|
|
if (GetIsObjectValid(oItem)) DestroyObject(oItem);
|
|
|
|
CreateItemOnObject("nw_it_mpotion021", oPC);
|
|
DelayCommand(2.5,FloatingTextStringOnCreature("This ought to go down nicely",oPC,FALSE));
|
|
|
|
}
|