- Joined
- Apr 7, 2008
- Messages
- 570
- Reaction score
- 31
This is based off trait0rs clone system you can find here http://forum.ragezone.com/f427/release-clone-system-484662/
it is untested, but i know it would work
first go to net.sf.odinms.scripting.npc.NPCConversationManager.java
add this import
then find this
add this under it
then compile
and here's the npc script, i used fredrick for this, use can use any npc you want
new file -> 9030000.js (fredrick)
As i repeat, this is untested, but im very sure that it will work
Enjoy!
it is untested, but i know it would work
first go to net.sf.odinms.scripting.npc.NPCConversationManager.java
add this import
Code:
import net.sf.odinms.server.maps.FakeCharacter;
Code:
public MapleClient getC() {
return getClient();
}
add this under it
Code:
public void giveClone() {
FakeCharacter fc = new FakeCharacter(c.getPlayer(), c.getPlayer().getId() + c.getPlayer().getFakeChars().size() + 1);
c.getPlayer().addFakeChar(fc);
}
then compile
and here's the npc script, i used fredrick for this, use can use any npc you want
new file -> 9030000.js (fredrick)
Code:
/*
This is made by Kippieeej/Bassoe - Clone function is made by Trait0r
*/
var status = 0;
var prize = 1000000;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.sendOk("Well, see you later");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hey there, i can give you a clone!\r\n\r\n#L1##bWohoo, i want a clone! - " + prize + " mesos#k#l\r\n#L2##rI want nothing..#k#l");
} else if (status == 1) {
if (selection == 1) {
if (cm.getMeso() >= prize) {
cm.sendYesNo("Are you sure you want to pay " + prize + " mesos for a clone?\r\nIt only works in this map\r\nAlso, it will disappear if you log out");
} else {
cm.sendOk("You don't have " + prize + " mesos..");
cm.dispose();
}
} else {
cm.sendOk("Don't bother me..");
cm.dispose();
}
} else {
cm.gainMeso(-prize);
cm.giveClone();
cm.sendOk("Enjoy!");
cm.dispose();
}
}
}
As i repeat, this is untested, but im very sure that it will work
Enjoy!

