Bogreaper
Member
- Joined
- Feb 8, 2017
- RedCents
- 113¢
I have always been taught to properly exit all routines or you might end up with a stack issue.
This was a great big deal back in my younger days (late 70s).
My question is.. I see some inc and macs doing this.
Sub checkitout
/if (${Target.ID<1}) /return
/if (${Target.Type.Equal[NPC]}) {
/echo NPC!
}
/return
I don't know if this is right or not.
I do know that I had seen people doing.
/for countemdown 1 to 100
/if (${Target.ID<1}) /next countemdown
/if (${Target.Type.Equal[NPC]}) {
/echo NPC!
}
/next countemdown
and with the last update those all stopped working due to it parsing out an extra /next with no for.
My question is this. Is it ok to exit the sub early like that? or is that a bad practice and we can expect issues in the future? (Me personally, I am expecting issues in the future)
Thanks and Peace
This was a great big deal back in my younger days (late 70s).
My question is.. I see some inc and macs doing this.
Sub checkitout
/if (${Target.ID<1}) /return
/if (${Target.Type.Equal[NPC]}) {
/echo NPC!
}
/return
I don't know if this is right or not.
I do know that I had seen people doing.
/for countemdown 1 to 100
/if (${Target.ID<1}) /next countemdown
/if (${Target.Type.Equal[NPC]}) {
/echo NPC!
}
/next countemdown
and with the last update those all stopped working due to it parsing out an extra /next with no for.
My question is this. Is it ok to exit the sub early like that? or is that a bad practice and we can expect issues in the future? (Me personally, I am expecting issues in the future)
Thanks and Peace

