Initial commit. Updated release archive.
This commit is contained in:
28
_module/nss/as_use_ale_keg.nss
Normal file
28
_module/nss/as_use_ale_keg.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
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));
|
||||
|
||||
}
|
Reference in New Issue
Block a user