[RELEASE] GM Interns

Status
Not open for further replies.
@candyman3435. why are you bein such a dick?
Also try not to post errors you get while compiling, its a step closer to knowing more aboout java, click the error and try see whats wrong
 
No you just failed. I get no compiling errors.

Your an idiot. How did I "Just Fail". Theres other people getting the same exact errors as I am. Using a different compiler isn't going to solve the problem because there is obviously something wrong, and that's why NetBeans shows you the damn errors.
 
Your an idiot. How did I "Just Fail". Theres other people getting the same exact errors as I am. Using a different compiler isn't going to solve the problem because there is obviously something wrong, and that's why NetBeans shows you the damn errors.

Yeah but see here. I got it to work. I added some stuff of course, but I got it to work.
Also, you were "flaming"
I don't get how this will work for people. It compiles entirely wrong. Theres alot of elements missing to what is posted
To get the commands to work, put them in commandprocessor.java or else it will mess up.
I'll help you if you want it...
This thread should help since it's the same idea:
http://forum.ragezone.com/showthread.php?t=445769

Anyways heres stuff to add:
In CommandProcessor.java, find
PHP:
try {
            processCommandInternal(c, mc, true, true, command); 
        }
Change it to:
PHP:
try {
            processCommandInternal(c, mc, true, true, true, command); 
        }

Find:
PHP:
private static boolean processCommandInternal(MapleClient c, MessageCallback mc, boolean isGM, boolean donator, String line) {
Change to:
PHP:
private static boolean processCommandInternal(MapleClient c, MessageCallback mc, boolean isGM, boolean Intern, boolean donator, String line) {

Add:
PHP:
Intern = c.getPlayer().isIntern();
under
PHP:
ChannelServer cserv = c.getChannelServer();

Find:
PHP:
if (line.charAt(0) == '!' && isGM || line.charAt(0) =='@' || line.charAt(0) == '#' && donator)
(or if you don't have donator)
PHP:
if (line.charAt(0) == '!' && isGM || line.charAt(0) =='@')
Change to:
PHP:
if (line.charAt(0) == '!' && isGM || line.charAt(0) =='@' || line.charAt(0) == '$' && Intern || line.charAt(0) == '#' && donator)

There might be 1 more I missed.
 
@moogra : i think i found your missing step

Find this in the commandprocessor.java
Code:
return processCommandInternal(c, new ServernoticeMapleClientMessageCallback(c), c.getPlayer().isGM(), line);

Change it to this
Code:
return processCommandInternal(c, new ServernoticeMapleClientMessageCallback(c), c.getPlayer().isGM(), c.getPlayer().isIntern(), line);

If you have the donator function change it to this
Code:
return processCommandInternal(c, new ServernoticeMapleClientMessageCallback(c), c.getPlayer().isGM(), c.getPlayer().isIntern(), c.getPlayer().isDonator(), line);
 
Code:
if (line.charAt(0) == '!' && isIntern || line.charAt(0) == '#') {

Doesnt that mean that if the user is a Intern and they do a ! command then do what ever ! said to do? and if the user is normal and they do a ! command then dont do ! but if they do # then do #?
 
Lol Maybe this will teach interns to be a lil less nibblet, (we should make like a dcyourself command as a prank ie:
#KillEveryone
and it has the thing to dc him/her XD)
 
Code:
if (line.charAt(0) == '!' && isIntern || line.charAt(0) == '#') {

Doesnt that mean that if the user is a Intern and they do a ! command then do what ever ! said to do? and if the user is normal and they do a ! command then dont do ! but if they do # then do #?

This means that if the first character in a command is ! and the person is an Intern, do to command (to follow). Or if the first character is #, do the command. Normal users can use # then. There is no && isIntern.
 
script newly fixed thanx to:

moogra
oblivionz



Thank you to both of them for helping me out.


For EVERYONE saying "Ooo, mike leeched this, mike took donator stuff, mike did this". Obviously, if i leeched sum1s script, why would i need help fixing a WORKING script? I wrote all this up, and fixed it with the 2 above help. So please, if ur just here to say i leeched, 1. No, i didnt. 2. GTFO?
 
Status
Not open for further replies.
Back