I am writing a script which will grant the PC money based on their level every week. The money is supposed to be stashed in a chest.
Now, this is the current script, but it doesn't seem to add anything to the chest:
begin GameModeif (GetStageDone GoldHorseRanks, 81 == 1) || (GetStageDone GoldHorseRanks, 76 == 1) ;if the quest is completed, we need to compute weekly profits if (oldgameday != gameday) ;compute a week set gamedays to gamedays + 1 set oldgameday to gameday endif if (gamedays == 7) ;if end of week is reached, flag profit gather time Set PlayerLevel to Player.Getlevel set profittime to profittime + 1 Message "It's Payday!" Set ChestGoldCount to (100 * PlayerLevel) aaaPMC.AddItem Gold001 ChestGoldCount set gamedays to 0 endifendifend