[Tut] cm.CoMannDs

Newbie Spellweaver
Joined
Sep 1, 2008
Messages
16
Reaction score
0
cm.CoMannDs


[Warps to a map]
cm.warp(mapID,0);

[Maxes all skills]
cm.getChar().maxAllSkills();

[Resets Stats]
cm.resetStats();

[Gives Mesos, to take mesos simply add a "-" ]
cm.gainMeso(Amount);

[Gives an Item]
cm.gainItem(itemID, amount);

[Gives Random Equipments]
cm.gainRandEquip(itemID); cm.gainRandEquip(itemID); cm.gainRandEquip(itemID);

[Gives EXP]
cm.gainExp(Amount);

[Gives Reborns]
cm.gainReborns(Amount);

[Gives Closeness Points to Pet]
cm.gainCloseness(Amount);

[Removes all of the specific item]
cm.removeAll(ItemID);

[Sends a message with the "OK" button]
cm.sendOk("Your text here");

[Sends a message with the "Next" button]
cm.sendNext("Your text here")

[Sends a message with the "Yes" & "No" button]
cm.sendYesNo("Your text here")

[Sends a message with the "Next" & "Previous" button]
cm.sendNextPrev("Your text here")

[Sends a Message with the "Accept" & "Decline" button.]
cm.sendAcceptDecline("Your text here");

[Ends the Chat]
cm.dispose();

[Opens a Npc]
cm.openNpc (NpcID);

[Opens a Shop]
cm.openShop (ShopID);

[Checks for pets.]
cm.c.getPlayer().getPet(amount of pets) == null

[Checks for the Item]
cm.haveItem(itemID, amount)

[Checks for Mesos]
cm.haveMeso(Amount)

[Checks for multiple Items, just add "&&"]
cm.haveItem(itemID, amount) && cm.haveItem(itemID, amount)

[Check for player's level]
cm.getLevel() >= Amount

[Checks for Reborns]
cm.getReborns() >= Amount

[Checks for Male]
cm.getChar().getGender() == 0

[Checks for Female]
cm.getChar().getGender() == 1

[Sets Hair Style]
cm.setHair(hairID);

[Sets Face]
cm.setFace(FaceID);

[Changes Music in the Map]
cm.changeMusic("MusicID");

[Change Job]
cm.changeJob(jobID);

[Refreshes the map's reactor to its original stat]
cm.resetReactors();

[Makes an Announcement to the whole World]
cm.makeAnnounce("[Notice] "+ charname +": Your text here");

[Displays Guild Ranks]
cm.displayGuildRanks();


Credits: ermelious
Do let me know if there's more of these commands.
 
Last edited:
how come in when you make a command

for example

} else if (splitted[0].equals("@blah") {
player.gainItem(129333, 10);

something like that doesnt work. for some reason. any1 know why?
it should work shouldnt it?
 
i know its an npc thread, im saying i tried to test with it in player command form but it didnt work. and my caps in netbeans are right. that one i posted was an example.
 
Back