Hey all, even the best of us get stuck with a script now and again, so here I am

Ok, I'm writing a ToT farmer, which could just as easily be used to farm fame or karma I guess.
I would like a sub to permanently have a shadow wisp active, although, I can't get past the gump window to choose the pet I want.
With the ninja skill, it simply defaulted to the last one used, although this isn't the same for some reason.
Any help would be appreciated.
Finished script will be uploaded as always

Thanks