Jump to content

I need my script to run every few days


roxas31

Recommended Posts

Hello, everyone.

I've been pulling my hair since yesterday trying to get a chest to accumulate money for a store mod, but i can't get it to run more than once.


begin aa_testmon
short myDay
short daycount
short ruun
if ( daysPassed == 0 )
set myDay to Day
set daysPassed to 1
endif
if ( myDay != Day )
set myDay to Day
set global_time to global_time + 1
endif
if ( global_time => 3 )
set ruun to 1
set global_time to 1
endif
if ( ruun = 1 )
if ( aa_chest_TEST->GetItemCount, "gold_001" < 10000 )
aa_chest_TEST->additem, "gold_001", 180
set ruun to 0
set global_time to 1
return
endif
endif
end

this is only one of the many revisions i made, most of them had the same result, they run once. i even tried adding the money when my day isn't day (which should trigger every day at 00:00), but it also runs once.

 

i tried every thing i could think of, i'm out of ideas, can anyone help?

Edited by roxas31
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...