1 - repeat
2 - gosub do_this
3 - gosub do_that
4 - until #false
6 - sub do_this
7 - stuff
8 - return
10 - sub do_that
11 - more stuff
12 - and more stuff
13 - return
Another quick thing...
display ok IMPORTANT!!! LONG LINE OF STUFF
You can break that into separate lines by putting in the $ char. That will end one line and begin another.
I see you are using * variables, which isn't bad but they are used more commonly in scripts which send info to other scripts through the registry. A better variable for a stand alone script like yours would be %
It's not a problem to use the * variables. If everyone did, you would have one cluttered registry though.
To resolve that issue, consider a later version that would automate the flute finding for you ;)Spoiler: show
Script moved to script debug.
(If you disagree with the move please pm me.)
Thank you for the script submission
This script generated quiet a bit of interest .. I would recommend that you finish it and get that first script contribution under your belt.
finditem PGP c_ , #backpackid
for #findindex 1 #findcnt
{
event property #findid
if arachnid in #property
set !slayer1 #findid
if elemental in #property
set !slayer2 #findid
if demon in #property
set !slayer3 #findid
if reptile in #property
set !slayer4 #findid
if repond in #property
set !slayer5 #findid
if undead in #property
set !slayer6 #findid
}
Here's a bit of code to get ya moving in the right direction so you don't have to target your flutes every time.The Idea is not bad, what i miss, why only flutes? what is with my regular slayer tools?Code: [Select]finditem PGP c_ , #backpackid
for #findindex 1 #findcnt
{
event property #findid
if arachnid in #property
set !slayer1 #findid
if elemental in #property
set !slayer2 #findid
if demon in #property
set !slayer3 #findid
if reptile in #property
set !slayer4 #findid
if repond in #property
set !slayer5 #findid
if undead in #property
set !slayer6 #findid
}
Here's a bit of code to get ya moving in the right direction so you don't have to target your flutes every time.The Idea is not bad, what i miss, why only flutes? what is with my regular slayer tools?
set !people
set !forms
set !summons
set !nonSlayer1 yab_p_ki_ud_qd_vgb_n_pe_se_to_po_rb_ub ; easy non spell
set !nonSlayer2 uc_mc_md_je ; easy spell
set !nonSlayer3 db_kqb ; medium non spell
set !nonSlayer4 r_eb_wd_fd ; medium spell
set !nonSlayer5 is_me_dd_bd_ej_ed_ri_cj_i ; hard
for !do 5 1
{
if !do = 5
set !allNonSlayers !nonSlayer5
else
set !allNonSlayers !allNonslayers , _ , !nonSlayer . !do
}
; Arachnid Slayer
set !11 empty
set !12 empty
set !13 empty
set !14 empty
set !15 empty
; Elemental Slayer
set !21 empty
set !22 empty
set !23 empty
set !24 empty
set !25 dd_bd_ej_ed_ri_cj
; Demon Slayer
set !31 empty
set !32 uc
set !33 empty
set !34 fd
set !35 me
; Reptile Slayer
set !41 empty
set !42 empty
set !43 empty
set !44 empty
set !45 empty
; Repond Slayer
set !51 empty
set !52 empty
set !53 empty
set !54 empty
set !55 is ; human
; Undead Slayer
set !61 empty
set !62 empty
set !63 empty
set !64 r_eb_wd ; lichlord,lichlord
set !65 empty
for !do 1 6
{
for !it 5 1
{
if !do = 1 && !it = 5
set !allSpawn !15
else
{
set !combo !do , !it
set !allSpawn !allSpawn , _ , ! . !combo
}
if !it = 5
{
set !combo !do , !it
set ! . !do ! . !combo
}
else
{
set !combo !do , !it
set ! . !do ! . !do , _ , ! . !combo
}
}
}