My Dev Services

Re: [Release] My Dev Services

My server has this in maplecharacter
Code:
level += 1;
		if (level == 200) {
			exp.set(0);

			if(exp.get() > 0)
                              exp.set(0);
		}
So do I replace that with the new code for the auto 200 congratz thing?

Place the new code under

Code:
level += 1;

and before

Code:
if (level == 200) {

so its

Code:
level += 1;
code here
if (level == 200) {
 
Re: [Release] My Dev Services

Do you think I could do this for reaching an amount of rebirhts?

Code:
if(getRebirth() == 10) {
                    MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + getName() + " on reaching 10 rebirths!");
                    try 
                    {
                        getClient().getChannelServer().getInstance(getClient().getChannel()).getWorldInterface().broadcastMessage(getName(), packet.getBytes());
                    } catch (RemoteException e) {
                        
                        getClient().getChannelServer().reconnectWorld();
                    }
                }
Sorry just copied and paste and filled over the level :P
 
Re: [Release] My Dev Services

Do you think I could do this for reaching an amount of rebirhts?

Code:
if(getRebirth() == 10) {
                    MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + getName() + " on reaching 10 rebirths!");
                    try 
                    {
                        getClient().getChannelServer().getInstance(getClient().getChannel()).getWorldInterface().broadcastMessage(getName(), packet.getBytes());
                    } catch (RemoteException e) {
                        
                        getClient().getChannelServer().reconnectWorld();
                    }
                }
Sorry just copied and paste and filled over the level :P

Put that in your doReborn() method in NPCConversation manager, make a few changes though
 
Re: [Release] My Dev Services

Oh alright lol
Btw...what you mean is...I have to have getRebirth in my NPCConversationmanager.java file right?
If so, I already have that...
Now... to find where to place it :(
 
Re: [Release] My Dev Services

Could anyone help me with this T.T
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -2
at net.sf.odinms.net.PacketProcessor.reset<PacketProcessor.java:221>
at net.sf.odinms.net.PacketProcessor.getProcessor<PacketProcessor.java:140>
at net.sf.odinms.net.channel.ChannelServer.run<ChannelServer.java:220>
at net.sf.odinms.net.channel.ChannelServer.main<ChannelServer.java:501>

Already checked my PacketProcessor.java and ChannelServer.java at the lines specified and there doesn't seem to be anything wrong with it. Any idea how to fix it? Would be greatful if you helped. Many thanks in advance.
 
Re: [Release] My Dev Services

what josho say is possible .. ring can work only that we don't know how . look at this
Ring do work .. the pict is taken from v0.58
 
Re: [Release] My Dev Services

Well, Just a suggestion, maybe u can work on it =D, Maybe u can try make commands like !autobanon and !autobanoff . LOLS, this would make the server need lesser GMs and when there is no GMs, we can just put the command !autobanon so that there is no hackers even when there is no GMs. Just a suggestion =D.
 
Back