Can anyone give me a seduce map and mute/mutemap command? v117 Btw
Printable View
Can anyone give me a seduce map and mute/mutemap command? v117 Btw
Use the search button before posting.
I did and the ones I used don't work.
There's no errors or anything like that. Everytime I use the command from http://forum.ragezone.com/f427/v116-...utemap-913552/ It always give me the player not found message. And I couldn't find a seducemap command for v117 anywhere.
Just use a v83 source with the commands and take them from there... And change the structure and calls to fit the lithium structure. Or change the command structure to your liking.
I would if I knew how to do that. Lol
Its actually not that hard I once like you knew nothing well I still am a noob but I am learning as I go. All you have to do is copy and paste it look on the left side move the mouse over and read what the error says hit alt enter and it gives you hints its kind of simple to change and add the missing variables. The thing is that the only way you learn is by doing things like that copy and pasting and seeing whats wrong how things work and react its fun if you have the free time.
Technically, seducemap should be done by getting the player on the map then applying the monster buff seduce to them.
correct me If I'm wrong . ^^
Mutemap
MuteCode:} else if (splitted[0].equalsIgnoreCase("mutemap")) {
for (MapleCharacter chr : player.getMap().getCharacters())
{
if(chr.gmLevel()<=2)
chr.canTalk(!chr.getCanTalk());
}
for (MapleCharacter chr : player.getMap().getCharacters())
chr.dropMessage("This map's chatting ability has been changed, please listen as a GM gives instructions.");
player.dropMessage(6, "Done");
Add to maplecharacter.javaCode:} else if (splitted[0].equals("mute")) {
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
if (victim != null) {
victim.canTalk(!victim.getCanTalk());
victim.dropMessage(5, "Your chatting ability is now " + (victim.getCanTalk() ? "on" : "off"));
player.dropMessage(6, "Player's chatting ability is now set to " + victim.getCanTalk());
} else {
player.dropMessage("Player not found");
}
Code:private boolean canTalk = true;
public boolean getCanTalk() {
return canTalk;
}
public boolean canTalk(boolean yn) {
return canTalk = yn;
}
Alright thanks guys. Except now I get getsession is erroneous?