- Joined
- Dec 21, 2008
- Messages
- 59
- Reaction score
- 4
what do you need:
a server.
a brain.
and very basic java skills.
if are just new to this. don't even take the time to read this coz you'll probaly wont get it coz i'm not going to spoonfeed.
this command actually opens a npc wich allows you to save the map you are in and then you can warp back later when you want to
so first of all
the npc
i used perry for this wich is 9110000
Then in Client>MapleCharacter.java
add this.
and this
also this...
and in your playercommands.java or w.e.
you should know where to put those things and else... Not my problem.
you'll also have to add a save and a load for it but everybady with basic skills on maplestory private servers should know how to do that
ow and one more thing
run this in your MySQL
and if you are using this please don't remove the credits, that's all i ask.
and tell me if i missed something
a server.
a brain.
and very basic java skills.
if are just new to this. don't even take the time to read this coz you'll probaly wont get it coz i'm not going to spoonfeed.
this command actually opens a npc wich allows you to save the map you are in and then you can warp back later when you want to
so first of all
the npc
Code:
var status = 0;
kaka = 0;
kiki = 0;
keke = 0;
koko = 0;
kuku = 0;
kokr = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode <= -1) {
cm.dispose();
} else if (mode == 0) {
cm.dispose();
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
mapsname1 = cm.getChar().getmapsname1();
mapsname2 = cm.getChar().getmapsname2();
mapsname3 = cm.getChar().getmapsname3();
mapsname4 = cm.getChar().getmapsname4();
mapsname5 = cm.getChar().getmapsname5();
cm.sendSimple(" Hello i'm the map saver!!! made by ex4life6pro of ragezone ;) \r\n#L1#"+ mapsname1 +" \r\n#L2#"+ mapsname2 +"\r\n#L7#"+ mapsname3 +"\r\n#L100#"+ mapsname4 +"\r\n#L11#"+ mapsname5 +"");
} else if (selection == 1) {
cm.sendSimple("#L4#Warp Me To Here\r\n#L3#Save My Location");
} else if (selection == 3) {
cm.sendGetText("Put Here The Map Discription");
kaka++;
} else if (kaka == 1) {
cm.getChar().setmapsname1(cm.getText());
cm.getChar().setmaps1(cm.getPlayer().getMapId());
cm.sendOk("Your map has been saved succesfully");
cm.dispose();
} else if (selection == 4) {
cm.warp(cm.getChar().getmaps1(), 0);
cm.dispose();
} else if (selection == 2) {
cm.sendSimple("#L6#Warp Me To Here\r\n#L5#Save My Location");
} else if (selection == 5) {
cm.sendGetText("Put Here The Map Discription");
keke++;
} else if (keke == 1) {
cm.getChar().setmapsname2(cm.getText());
cm.getChar().setmaps2(cm.getPlayer().getMapId());
cm.sendOk("Your map has been saved succesfully");
cm.dispose();
} else if (selection == 6) {
cm.warp(cm.getmaps2(), 0);
cm.dispose();
} else if (selection == 7) {
cm.sendSimple("#L9#Warp Me To Here\r\n#L8#Save My Location");
} else if (selection == 8) {
cm.sendGetText("Put Here The Map Discription");
kiki++;
} else if (kiki == 1) {
cm.getChar().setmapsname3(cm.getText());
cm.getChar().setmaps3(cm.getPlayer().getMapId());
cm.sendOk("Your map has been saved succesfully");
cm.dispose();
} else if (selection == 9) {
if (cm.getChar().getmaps3() == "Empty Slot") {
cm.sendOk("No Map Saved Here Yet");
cm.dispose();
} else if (cm.getChar().getmaps3() >= 1) {
cm.warp(cm.getChar().getmaps3(), 0);
cm.dispose();
}
} else if (selection == 100) {
cm.sendSimple("#L120#Warp Me To Here\r\n#L130#Save My Location");
} else if (selection == 130) {
cm.sendGetText("Put Here The Map Discription");
kuku++;
} else if (kuku == 1) {
cm.getChar().setmapsname4(cm.getText());
cm.getChar().setmaps4(cm.getPlayer().getMapId());
cm.sendOk("Your map has been saved succesfully");
cm.dispose();
} else if (selection == 120) {
cm.warp(cm.getChar().getmaps4(), 0);
cm.dispose();
}
} else if (selection == 11) {
cm.sendSimple("#L121#Warp Me To Here\r\n#L131#Save My Location");
} else if (selection == 131) {
cm.sendGetText("Put Here The Map Discription");
kokr++;
} else if (kokr == 1) {
cm.getChar().setmapsname5(cm.getText());
cm.getChar().setmaps5(cm.getPlayer().getMapId());
cm.sendOk("Your map has been saved succesfully");
cm.dispose();
} else if (selection == 121) {
cm.warp(cm.getChar().getmaps5(), 0);
cm.dispose();
}
}
i used perry for this wich is 9110000
Then in Client>MapleCharacter.java
add this.
Code:
private int maps1;
private int maps2;
private int maps3;
private int maps4;
private int maps5;
private String mapsname1;
private String mapsname2;
private String mapsname3;
private String mapsname4;
private String mapsname5;
and this
Code:
ret.maps1 = 0;
ret.maps2 = 0;
ret.maps3 = 0;
ret.maps4 = 0;
ret.maps5 = 0;
ret.mapsname1 = "Empty Slot";
ret.mapsname2 = "Empty Slot";
ret.mapsname3 = "Empty Slot";
ret.mapsname4 = "Empty Slot";
ret.mapsname5 = "Empty Slot";
also this...
Code:
public void setmaps1(int m1) {
this.maps1 = m1;
}
public void setmaps2(int m2) {
this.maps2 = m2;
}
public void setmaps3(int m3) {
this.maps3 = m3;
}
public void setmaps4(int m4) {
this.maps4 = m4;
}
public void setmaps5(int m5) {
this.maps5 = m5;
}
public void setmapsname1(String n1) {
this.mapsname1 = n1;
}
public void setmapsname2(String n2) {
this.mapsname2 = n2;
}
public void setmapsname3(String n3) {
this.mapsname3 = n3;
}
public void setmapsname4(String n4) {
this.mapsname4 = n4;
}
public void setmapsname5(String n5) {
this.mapsname5 = n5;
}
public int getmaps1() {
return maps1;
}
public int getmaps2() {
return maps2;
}
public int getmaps3() {
return maps3;
}
public int getmaps4() {
return maps4;
}
public int getmaps5() {
return maps5;
}
public String getmapsname1 () {
return mapsname1;
}
public String getmapsname2 () {
return mapsname2;
}
public String getmapsname3 () {
return mapsname3;
}
public String getmapsname4 () {
return mapsname4;
}
public String getmapsname5 () {
return mapsname5;
}
and in your playercommands.java or w.e.
Code:
} else if (splitted[0].equalsIgnoreCase("@maps")) {
NPCScriptManager.getInstance().start(c, 9110000);
you should know where to put those things and else... Not my problem.
you'll also have to add a save and a load for it but everybady with basic skills on maplestory private servers should know how to do that
ow and one more thing
run this in your MySQL
Code:
ALTER TABLE `characters` ADD COLUMN `maps1` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `characters` ADD COLUMN `maps2` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `characters` ADD COLUMN `maps3` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `characters` ADD COLUMN `maps4` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `characters` ADD COLUMN `maps5` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `characters` ADD COLUMN `mapsname5` text;
ALTER TABLE `characters` ADD COLUMN `mapsname4` text;
ALTER TABLE `characters` ADD COLUMN `mapsname3` text;
ALTER TABLE `characters` ADD COLUMN `mapsname2` text;
ALTER TABLE `characters` ADD COLUMN `mapsname1` text;
and if you are using this please don't remove the credits, that's all i ask.
and tell me if i missed something

