You have a logical error .. to do with your timeout code. You repeat the SAME scanning of the SAME JOURNAL entries over and over for 5 seconds.. Given that you set the end and start journal entires in a microsecond this basically means you are scanning the same zero or 1 journal entry 100's probably 1000's of times.
Also you for statment is incorrect (need an = )
Thier no such command as print.
and you cannot put multiple ifs on the same line "if x || y" not "if x || if y"
Hey there, a few question on what you mentioned. Firstly, my journal timeout is #scnt2 + 5 (5 10th's of a second, not 5 seconds,) does what you state still apply? I'm slightly confused by what you mean by I'm only scanning the zero journal entry? Please clarify if possible.
Also, wherein does my for statement need an =? Not sure how my syntax is wrong there? Thanks for the heads up, just confused.
The print thing was just an example on my part, I know it's not real, just was using it to illustrate what I wanted to do -- and the if statement error was a logical typo on my part, sorry for that.
Here is the real code in question so you can get a proper look:
set %jStart #jindex + 1
set %jTimeout #scnt2 + 5
set %jEnd #jindex
while #scnt2 < %jTimeout
{
for %ji %jStart %jEnd
{
scanjournal %ji
if is_attacking_you in #journal
{
wait 20
event macro 1 0 heh wtf
wait 20
event macro 13 21
display ok Alert: #charname being attacked! Script halted!$
halt
}
if more_reagents_are_needed_for_this_spell in #journal
{
wait 20
event macro 13 21
display ok Alert: #charname is out of reagents! Script halted!$
halt
}
if i_see_you_already_have_an_escort in #journal
{
wait 20
event macro 13 21
display ok Alert: #charname has an escort stuck! Script halted!$
halt
}
if you_see:_gm in #journal || you_see:_game in #journal || you_see:_admin in #journal ||
you_see:_counselor in #journal || you_see:_staff in #journal || you_see:_admin in #journal
set %wrongTextException #true
if %wrongTextException = #false && ( ,_ , #charname , ! in #journal || #charname , :_ in
#journal || guildmaster in #journal || you_have_hidden_yourself_well in #journal ||
you_are_now_under_the_protection_of_the_town_guards in #journal ||
you_have_left_the_protection_of_the_town_guards in #journal || you_open_a_magical_gate in #journal ||
spell_fizzles in #journal || you_see: in #journal || steal in #journal || you_enter_a_meditative_trance in
#journal || you_stop_meditating in #journal || will_you_take_me in #journal ||
you_shove_them_out_of_the_way in #journal || you_are_at_peace in #journal || karma in #journal ||
fame in #journal || compassion in #journal || you_are_dead in #journal ||
you_have_nothing_i_would_be_interested_in in #journal || delucia_for_your_last in #journal ||
can_page_for_vendor in #journal || seem_to_hide_right_now in #journal || staff_message_from_gm in
#journal || you_must_rest in #journal || you_must_wait in #journal || yourself_red-handed in #journal ||
resisting_magical_energy in #journal || you_feel in #journal || you_begin_to_feel in #journal ||
you_are_in_extreme_pain in #journal || into_your_bank_box_i in #journal || samson in #journal ||
samantha in #journal || shina in #journal || samirah in #journal || samuel in #journal || hira in #journal ||
hilda in #journal || hildegard in #journal || chiara in #journal || kachine in #journal || clarence in #journal
|| shi in #journal || botan in #journal || chyou in #journal || saree in #journal || dlagma in #journal ||
snow in #journal || white in #journal || kynthia in #journal || ares in #journal || chilali in #journal ||
rashida in #journal || bottle in #journal || ship in #journal || )
set %wrongText #true
if %wrongText = #false && ( gm in #journal || afk in #journal || script in #journal || bot in #journal || are
in #journal || you in #journal || now in #journal || hi in #journal || hey in #journal || hello in #journal ||
greetings in #journal || talk in #journal || respond in #journal || answer in #journal || speak in #journal ||
admin in #journal || game in #journal || master in #journal || #charname in #journal )
{
if gm in #journal
set %textFlag gm
if afk in #journal
set %textFlag afk
if script in #journal
set %textFlag bot
if are in #journal
set %textFlag are
if you in #journal
set %textFlag you
if now in #journal
set %textFlag now
if hi in #journal
set %textFlag hi
if hey in #journal
set %textFlag hey
if hello in #journal
set %textFlag hello
if greetings in #journal
set %textFlag greetings
if talk in #journal
set %textFlag talk
if respond in #journal
set %textFlag respond
if answer in #journal
set %textFlag answer
if speak in #journal
set %textFlag speak
if admin in #journal
set %textFlag admin
if game in #journal
set %textFlag game
if master in #journal
set %textFlag master
if #charname in #journal
set %textFlag #charname
wait 20
event macro 1 0 decoy text here
wait 40
event macro 13 21
display ok Alert: #charname being watched! Flag: %textFlag - Script halted!$
halt
}
}
}
Edit: Wow, pardon the crappy spacing/formatting. Paste fail.