[Release] v62 @checkme command

Newbie Spellweaver
Joined
Jun 12, 2011
Messages
73
Reaction score
6
Hello guys, I apologies for not having any time to post any new things of sorts
but I have been busy with things I will not go to deep in detail with..
So I suggest we get right into the release of the command @checkme.
Firstly open up NetBeans and go into playercommands.java
and find the correct spot to put this in..
(I have mine right above @commands)

PHP:
 else if (splitted[0].equalsIgnoreCase("@checkme")) {
                mc.dropMessage("Hello" + player.getName() + "Your stats are:");
                mc.dropMessage("Str: " + player.getStr());
                mc.dropMessage("Dex: " + player.getDex());
                mc.dropMessage("Int: " + player.getInt());
                mc.dropMessage("Luk: " + player.getLuk());
                mc.dropMessage("Available AP: " + player.getRemainingAp());
                mc.dropMessage("Rebirths: " + player.getReborns());
        }

After you have finished that you will then scrol down intel you see new CommandDefinition.......
When there you will create a command definition of @checkme. If you do not know how to do so I will then past a
copy of my command definition..
Unless you are pasting it at the bottom keep the coma at the end

PHP:
new CommandDefinition("checkme", 0),

Now of course with this command you can add what ever you want to it for example allow me to go really deep into detail with this.
I have Vote points and Karma Witch They win at an event or vote for it
now to add votes you must first go into "MapleCharacter.java"
and....

find:
PHP:
private int gender;

Under it past:
PHP:
private int karma;

Then find:
PHP:
ret.allianceRank = rs.getInt("allianceRank");

Under it past:
PHP:
ret.karma = rs.getInt("karma");

Then again STILL IN maplecharacter find:
PHP:
ps.setInt(42, world);

And under it place:
PHP:
ps.setInt(42, karma);

Then either find or scroll down till you see :
PHP:
public void sendKeymap() {
        getClient().getSession().write(MaplePacketCreator.getKeymap(keymap));
    }

And under it place:
PHP:
public void gainkarma(int gain){
        this.karma += gain;
    }

    public int getkarma(){
        return this.karma;
    }


Now we are done with Maple Character.. Moving on.

Open up NPCConversationManager.java

find a correct spot while scrolling down and past this
PHP:
public int getkarma(){
        return getPlayer().getkarma();
    }

    public void gainkarma(int gain){
        getPlayer().gainkarma(gain);
    }
(I have mine right above summonMob)

So now if we all go back to the command at the bottom we may now add
PHP:
mc.dropMessage("Karma: " + player.getkarma());

Here are some screen shot of it in action!!



~Screen Shots~

KevinSoccer5 - [Release] v62 @checkme command - RaGEZONE Forums


KevinSoccer5 - [Release] v62 @checkme command - RaGEZONE Forums
 
This is in basically every source.

PHP:
} else if (splitted[0].equalsIgnoreCase("@checkme")) { 
                mc.dropMessage("Hello " + player.getName() + " Your stats are:"); 
                mc.dropMessage("Str: " + player.getStr()); 
                mc.dropMessage("Dex: " + player.getDex()); 
                mc.dropMessage("Int: " + player.getInt()); 
                mc.dropMessage("Luk: " + player.getLuk()); 
                mc.dropMessage("Available AP: " + player.getRemainingAp()); 
                mc.dropMessage("Rebirths: " + player.getReborns()); 
        }
 
Code:
} else if (splitted[0].equalsIgnoreCase("@checkme")) { 
                mc.dropMessage("Hello " + player.getName() + " Your stats are:"); 
                mc.dropMessage("Str: " + player.getStr()); 
                mc.dropMessage("Dex: " + player.getDex()); 
                mc.dropMessage("Int: " + player.getInt()); 
                mc.dropMessage("Luk: " + player.getLuk());
                mc.dropMessage("Votepoints: " + player.getVotePoints()); // Should've added vote, although I think thats wrong ;P
                mc.dropMessage("Available AP: " + player.getRemainingAp()); 
                mc.dropMessage("Rebirths: " + player.getReborns()); 
        }

Should've added vote points along with it.
 
@Thomas the point of adding votepoints is so they can check their votepoints. They cant just go to an NPC everytime for their votepoint.. I'm just saying, it's more useful to add it there.
 
Yeah, I know. But in most servers, people are paranoid to go to the NPC in the FM to check their votepoints. I'm not saying they HAVE to add it, but its a good thing to add.
 
Back