for OOG you'd have to do somthing like this,
NPCDLG(Warehouse Chief Donald[iD=*****)
//changing subclass
DELAY(1500)
DLGSEL(Change between sub-classes.)
DELAY(1500)
DLGSEL(Prophet)
//buffing
UseSkill(Haste[iD=*****],Player,TARGETNAME)
"
"
"
"
"
//
NPCDLG(Warehouse Chief Donald[iD=*****)
//changing subclass
DELAY(1500)
DLGSEL(Change between sub-classes.)
DELAY(1500)
DLGSEL(Bladedancer)
//buffing
UseSkill(Dance of Fury[iD=*****],Party,TARGETNAME)
"
"
"
"
"
but again, i dont know if you can select this NPC in OOG (should be able to tho).
and if the server your playing on has no protection, you can find the IP/Port by using netstat, and finding the token, there are some good tutorials out there to find a token, but i dont know any (since gamehaqs went down).