Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

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);
}
}
}
}
}