Can someone help me code a Seduce command that seduces the whole map? I have one command but it only works for one person at a time. Anyone wanna help me? :o <3
Printable View
Can someone help me code a Seduce command that seduces the whole map? I have one command but it only works for one person at a time. Anyone wanna help me? :o <3
Post the command
Basically this,I need one that basically does the whole map. While that only does the selected playerCode:} else if (splitted[0].equals("givedisease")) {
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
int type = 0;
if (splitted[2].equalsIgnoreCase("SEAL")) {
type = 120;
} else if (splitted[2].equalsIgnoreCase("DARKNESS")) {
type = 121;
} else if (splitted[2].equalsIgnoreCase("WEAKEN")) {
type = 122;
} else if (splitted[2].equalsIgnoreCase("STUN")) {
type = 123;
} else if (splitted[2].equalsIgnoreCase("POISON")) {
type = 125;
} else if (splitted[2].equalsIgnoreCase("SEDUCE")) {
type = 128;
} else {
player.dropMessage("ERROR.");
}
I assume you have the "getType" method in MapleDisease if you have already implemented one already..PHP Code:} else if (splitted[0].equals("diseasemap")) {
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
int type = 0;
for (MapleCharacter players : player.getMap().getCharacters()) {
if (splitted[2].equalsIgnoreCase("SEAL")) {
type = 120;
} else if (splitted[2].equalsIgnoreCase("DARKNESS")) {
type = 121;
} else if (splitted[2].equalsIgnoreCase("WEAKEN")) {
type = 122;
} else if (splitted[2].equalsIgnoreCase("STUN")) {
type = 123;
} else if (splitted[2].equalsIgnoreCase("POISON")) {
type = 125;
} else if (splitted[2].equalsIgnoreCase("SEDUCE")) {
type = 128;
} else {
player.dropMessage("ERROR.");
}
players.giveDebuff(MapleDisease.getType(type), MobSkillFactory.getMobSkill(type, 1));
}
This is what I have. !seducemap <1/2/3> 1 = move to the left, 2 = move to the right, 3 = jump.PHP Code:} else if (splitted[0].equalsIgnoreCase("!seducemap")) {
int level = Integer.parseInt(splitted[1]);
for (MapleCharacter mch : player.getMap().getCharacters()) {
if (mch.getGMLevel() < 3) {
mch.getClient().getSession().write(MaplePacketCreator.cancelChair(-1));
mch.getMap().broadcastMessage(mch, MaplePacketCreator.showChair(mch.getId(), 0), false);
mch.giveDebuff(MapleDisease.getType(128), MobSkillFactory.getMobSkill(128, level));
}
}
How come both seducemap don't works for me.
U bumped a very old thread. The one Hugo posted works. Try !!seducemap for the one Hugo posted
Same,it don't work for me O:
Your gm lvl must be lower than 3 for it to work
We paste this command at which site, SGM command?
Just remove the if (mch.getgmlvl < 3) { and remove a bracket at the end.
Try this.
Simplified, basically removed a couple of extras.Code:else if (splitted[0].equalsIgnoreCase("seducemap")) {
for (MapleCharacter mch : player.getMap().getCharacters()) {
mch.getClient().getSession().write(MaplePacketCreator.cancelChair(-1));
mch.getMap().broadcastMessage(mch, MaplePacketCreator.showChair(mch.getId(), 0), false);
mch.giveDebuff(MapleDisease.getType(128), MobSkillFactory.getMobSkill(128, 1));
}
}
Just use !seducemap for this.
Edit: It's VERY important to put this one betweenandCode:}
of an excisting code.Code:else if (