• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[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:
Master Summoner
Joined
Oct 9, 2008
Messages
572
Reaction score
14
Re: [Guide] cm.CoMannDs

Thanks, but next time I could do without the colored text and bold ;)

But I bookmarked it :D
 
Elite Diviner
Joined
Jan 20, 2009
Messages
401
Reaction score
284
Re: [Guide] cm.CoMannDs

nice! all commands here for maple
 
Getting into Graphics
Joined
Jun 22, 2008
Messages
173
Reaction score
0
Half of these won't work unless you define it in the conversation thing.
 
Newbie Spellweaver
Joined
Jan 9, 2009
Messages
60
Reaction score
0
This has already been released like 5 times. =.=
 
Newbie Spellweaver
Joined
Jul 12, 2008
Messages
29
Reaction score
0
Wow! Thx alot! know this will help me make some npc scripts! thx alot!! I've been lookign for these for like months
 
Experienced Elementalist
Joined
Sep 13, 2008
Messages
262
Reaction score
0
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?
 
Master Summoner
Loyal Member
Joined
Dec 25, 2008
Messages
538
Reaction score
1
This is a NPC command thread, not a player command thread.
As for your problem, check that your caps are right.
 
Experienced Elementalist
Joined
Sep 13, 2008
Messages
262
Reaction score
0
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.
 
Newbie Spellweaver
Joined
Jul 12, 2008
Messages
29
Reaction score
0
hey any1 no how to dump out ur stats? like lets sya u got 100str 100dex 100int 100luk how do u clean it ou tto 4 of each?
 
Skilled Illusionist
Joined
Jun 20, 2008
Messages
302
Reaction score
5
These are only the simple cm. commands, what if we add more to NPCConversationManager?
 
Back
Top