- 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)
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
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:
Under it past:
Then find:
Under it past:
Then again STILL IN maplecharacter find:
And under it place:
Then either find or scroll down till you see :
And under it place:
Now we are done with Maple Character.. Moving on.
Open up NPCConversationManager.java
find a correct spot while scrolling down and past this
(I have mine right above summonMob)
So now if we all go back to the command at the bottom we may now add
Here are some screen shot of it in action!!
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);
}
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~

