קרדיט ל RZ
תירצו ב SQL:
תשימו את זה באחת ה NPCקוד PHP:INSERT INTO monsterdrops
(`monsterid`, `itemid`, `chance`)
VALUES
(8820001, 1312038, 20);
INSERT INTO monsterdrops
(`monsterid`, `itemid`, `chance`)
VALUES
(8820001, 1382059, 20);
INSERT INTO monsterdrops
(`monsterid`, `itemid`, `chance`)
VALUES
(8820001, 4020009, 20);
INSERT INTO monsterdrops
(`monsterid`, `itemid`, `chance`)
VALUES
(8820001, 4021010, 20);
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (status == 3 || mode == -1) {
cm.dispose();
} else {
if (status == 2) {
status = 3;
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hello. What do you want? \r\n \r\n #L0##bPiece Of Time#k#l \r\n #L1##bRock Of Time#k#l");
} else if (selection == 0) {
if (cm.haveItem(3010025, 1)) {
cm.sendOk("Well...i shall give You A Maple Chair... And Some Mesos...")
cm.gainMeso(+1000000000);
cm.gainItem(4000313, 1); //Piece Of Time
} else {
cm.SendOk("Hey..You Don't Have Piece Of Time!")
}
} else if (selection == 1) {
if (cm.haveItem(4021010, 1)) {
cm.sendOk("Well...i shall give You A Warrior Throne... And Some Mesos...")
cm.gainMeso(+1000000000);
cm.gainItem(3010012, 1); //Rock Of Time
} else {
cm.SendOk("Hey..You Don't Have Rock Of Time!")
}
}
}
}
למי שיש כבר את ה COMMAND @go
זה הפקודה המלאה + ה ארנב
קוד PHP:} else if (splitted[0].equalsIgnoreCase("@goto")) {
HashMap<String, Integer> maps = new HashMap<String, Integer>();
maps.put("fm", 910000000);
maps.put("henesys", 100000000);
maps.put("ellinia", 101000000);
maps.put("perion", 102000000);
maps.put("kerning", 103000000);
maps.put("lith", 104000000);
maps.put("sleepywood", 105040300);
maps.put("florina", 110000000);
maps.put("orbis", 200000000);
maps.put("happy", 209000000);
maps.put("elnath", 211000000);
maps.put("ludi", 220000000);
maps.put("aqua", 230000000);
maps.put("leafre", 240000000);
maps.put("mulung", 250000000);
maps.put("herb", 251000000);
maps.put("omega", 221000000);
maps.put("korean", 222000000);
maps.put("nlc", 600000000);
maps.put("excavation", 990000000);
maps.put("mushmom", 100000005);
maps.put("griffey", 240020101);
maps.put("manon", 240020401);
maps.put("horseman", 682000001);
maps.put("balrog", 105090900);
maps.put("showa", 801000000);
maps.put("guild", 200000301);
maps.put("shrine", 800000000);
maps.put("skelegon", 240040511);
maps.put("squids", 230040200);
maps.put("vikings", 220060300);
maps.put("wolfspiders", 600020300);
maps.put("crimsonwood", 610030000);
if (splitted.length != 2) {
StringBuilder builder = new StringBuilder("Syntax: @go <mapname>");
int i = 0;
for (String mapss : maps.keySet()) {
if (1 % 10 == 0) {// 10 maps per line
mc.dropMessage(builder.toString());
} else {
builder.append(mapss + ", ");
}
}
mc.dropMessage(builder.toString());
} else if (maps.containsKey(splitted[1])) {
int map = maps.get(splitted[1]);
if (map == 910000000) {
player.saveLocation(SavedLocationType.FREE_MARKET);
}
player.changeMap(map, 0);
mc.dropMessage("Please feel free to suggest any more locations");
} else {
mc.dropMessage("I could not find the map that you requested.");
}
maps.clear();







