70 lines
1.9 KiB
Plaintext
70 lines
1.9 KiB
Plaintext
#include "nw_i0_plot"
|
|
void main()
|
|
{
|
|
object oDrunk = GetLastUsedBy();
|
|
object oEmptyWine = GetItemPossessedBy(oDrunk, "NW_IT_THNMISC004");
|
|
object oEmptySpirits = GetItemPossessedBy(oDrunk, "NW_IT_THNMISC003");
|
|
object oEmptyBottle = GetItemPossessedBy(oDrunk, "NW_IT_THNMISC001");
|
|
object oEmptyAle = GetItemPossessedBy(oDrunk, "NW_IT_THNMISC002");
|
|
|
|
|
|
if(HasItem(oDrunk, "NW_IT_THNMISC004") == TRUE)
|
|
{
|
|
DestroyObject (oEmptyWine, 0.0);
|
|
CreateItemOnObject("nw_it_mpotion023", oDrunk, 1);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
|
|
}
|
|
else
|
|
{
|
|
if(HasItem(oDrunk, "NW_IT_THNMISC003") == TRUE)
|
|
{
|
|
DestroyObject (oEmptySpirits, 0.0);
|
|
CreateItemOnObject("nw_it_mpotion023", oDrunk, 1);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
|
|
}
|
|
else
|
|
{
|
|
if(HasItem(oDrunk, "NW_IT_THNMISC002") == TRUE)
|
|
{
|
|
DestroyObject (oEmptyAle, 0.0);
|
|
CreateItemOnObject("nw_it_mpotion023", oDrunk, 1);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
|
|
}
|
|
else
|
|
{
|
|
if(HasItem(oDrunk, "NW_IT_THNMISC001") == TRUE)
|
|
{
|
|
DestroyObject (oEmptyBottle, 0.0);
|
|
CreateItemOnObject("nw_it_mpotion023", oDrunk, 1);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
ActionWait(0.5);
|
|
PlaySound("it_potion");
|
|
|
|
}
|
|
else
|
|
{
|
|
PlayVoiceChat(VOICE_CHAT_CUSS, oDrunk);
|
|
FloatingTextStringOnCreature("Hmmm...Wish I had an empty bottle of some kind.", oDrunk, FALSE);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|