Initial Upload
Initial Upload
This commit is contained in:
69
_module/nss/_rg_spirits.nss
Normal file
69
_module/nss/_rg_spirits.nss
Normal file
@@ -0,0 +1,69 @@
|
||||
#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_mpotion022", 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_mpotion022", 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_mpotion022", 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_mpotion022", 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user