Coder in-training
- Joined
- Dec 28, 2008
- Messages
- 595
- Reaction score
- 47
I know but I just said that because in your command your using that function, so assuming you at least looked at it you should know that there are checks in it there fore not being needed in your command, so instead you could have that command coded in 4 lines (like I showed you as an example) with a couple of small modifications to autoJob.
Also, this is another way to improve your command without changing autoJob.
Code:int oldJob = player.getJobId(); player.autoJob(); if (oldJob != player.getJobId()) { player.dropMessage("You have advanced."); } else { player.dropMessage("You can't advance yet because I said so..."); }
Note: I am just giving you constructive criticism in order to help you improve so please don't take it the wrong way.
Yes, I thank you for that.
I NOW RELEASED A v111 OF THIS COMMAND