אני רוצה שרק אחרי דקה יוכלו להשתמש בפקודה SMEGA
עוד פעם
אחרי פעם ראשונה של SMEGA
צריך לחכות דקה בשביל עוד פעם להשתמש בו
|
|
כבר הבאתי לך, תפסיק לפתוח אשכולות על אותו דבר.
אז תראה אותה פה...
הפקודה :
וגם את זה אפשר להספים גם אני חשבתי לשנות את הקוד PHP:} else if (splitted[0].equalsIgnoreCase("!smega")) {
if ((System.currentTimeMillis() - c.getPlayer().last) > 120000)
c.getPlayer().last = System.currentTimeMillis();
if (splitted.length > 3) {
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
if (victim != null) {
String type = splitted[2];
String text = StringUtil.joinStringFrom(splitted, 3);
int itemID = 5390002; // default.
if (type.equalsIgnoreCase("love")) {
itemID = 5390002;
} else if (type.equalsIgnoreCase("cloud")) {
itemID = 5390001;
} else if (type.equalsIgnoreCase("diablo")) {
itemID = 5390000;
}
String[] lines = {"", "", "", ""};
if (text.length() > 30) {
lines[0] = text.substring(0, 10);
lines[1] = text.substring(10, 20);
lines[2] = text.substring(20, 30);
lines[3] = text.substring(30);
} else if (text.length() > 20) {
lines[0] = text.substring(0, 10);
lines[1] = text.substring(10, 20);
lines[2] = text.substring(20);
} else if (text.length() > 10) {
lines[0] = text.substring(0, 10);
lines[1] = text.substring(10);
} else if (text.length() <= 10) {
lines[0] = text;
}
LinkedList<String> list = new LinkedList<String>();
list.add(lines[0]);
list.add(lines[1]);
list.add(lines[2]);
list.add(lines[3]);
try {
victim.getClient().getChannelServer().getWorldInterface().broadcastSMega(null, MaplePacketCreator.getAvatarMega(victim, c.getChannel(), itemID, list, false).getBytes());
} catch (RemoteException e) {
cserv.reconnectWorld();
}
} else {
mc.dropMessage("Player not found.");
}
} else {
mc.dropMessage("Syntax: !smega <player> <love/diablo/cloud> text");
}
if ((System.currentTimeMillis() - c.getPlayer().last) > 120000)
לה 12000
אבל זה לא עובד אפשר עדיין להספים
הנה:
אפשר לנעול?קוד PHP:} else if (splitted[0].equalsIgnoreCase("!smega")) {
if (player.getCheatTracker().Spam(12000, 1))
return;
if (splitted.length > 3) {
MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
if (victim != null) {
String type = splitted[2];
String text = StringUtil.joinStringFrom(splitted, 3);
int itemID = 5390002; // default.
if (type.equalsIgnoreCase("love"))
itemID = 5390002;
else if (type.equalsIgnoreCase("cloud"))
itemID = 5390001;
else if (type.equalsIgnoreCase("diablo"))
itemID = 5390000;
String[] lines = {"", "", "", ""};
if (text.length() > 30) {
lines[0] = text.substring(0, 10);
lines[1] = text.substring(10, 20);
lines[2] = text.substring(20, 30);
lines[3] = text.substring(30);
} else if (text.length() > 20) {
lines[0] = text.substring(0, 10);
lines[1] = text.substring(10, 20);
lines[2] = text.substring(20);
} else if (text.length() > 10) {
lines[0] = text.substring(0, 10);
lines[1] = text.substring(10);
} else if (text.length() <= 10)
lines[0] = text;
LinkedList<String> list = new LinkedList<String>();
list.add(lines[0]);
list.add(lines[1]);
list.add(lines[2]);
list.add(lines[3]);
try {
victim.getClient().getChannelServer().getWorldInterface().broadcastSMega(null, MaplePacketCreator.getAvatarMega(victim, c.getChannel(), itemID, list, false).getBytes());
} catch (RemoteException e) {
cserv.reconnectWorld();
}
} else
mc.dropMessage("Player not found.");
} else
mc.dropMessage("Syntax: !smega <player> <love/diablo/cloud> text");