HoS_PRC8/_mod/_module/nss/rts_it_mag25.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

36 lines
1.2 KiB
Plaintext

//////////////////////////////////////////////////////////////////////////////////
// Real Time Strategy - NWN - Chrono Device
//================================================================================
// By Deva Bryson Winblood. 03/07/2003
//////////////////////////////////////////////////////////////////////////////////
#include "rts_taxes_h"
void main()
{
object oUser=GetItemActivator();
int nMana=fnGetTeamMana(oUser);
object oPC=GetFirstPC();
if (nMana>71)
{ // enough mana
SetTime(GetTimeHour()+8,GetTimeMinute(),0,0);
nMana=nMana-72;
fnSetTeamMana(oUser,nMana);
SendMessageToPC(oUser,"You used 72 mana to activate that item.");
while(oPC!=OBJECT_INVALID)
{
SendMessageToPC(oPC,"Time has been advanced by 8 hours!!");
oPC=GetNextPC();
}
DelayCommand(3.0,fnTaxes(FALSE));
DelayCommand(6.0,fnTaxes(FALSE));
DelayCommand(9.0,fnTaxes(FALSE));
DelayCommand(12.0,fnTaxes(FALSE));
DelayCommand(15.0,fnTaxes(FALSE));
DelayCommand(18.0,fnTaxes(FALSE));
DelayCommand(21.0,fnTaxes(FALSE));
DelayCommand(24.0,fnTaxes(FALSE));
} // enough mana
else
SendMessageToPC(oUser,"It fizzled due to not having the required 72 mana to activate.");
}