36 lines
1.2 KiB
Plaintext
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.");
|
|
}
|