[Release] Ring Command

Status
Not open for further replies.
Newbie Spellweaver
Joined
Aug 26, 2008
Messages
28
Reaction score
0
Keep the release forum alive!

Code:
else if (splitted[0].equals("@ring")) {
            mc.dropMessage("It should go like : @ring <ringid> <partner>");
            mc.dropMessage("Ring ID's available are :");
            mc.dropMessage("1112001 - Ring : Crush"); 
            mc.dropMessage("1112002 - Ring : Cloud"); 
            mc.dropMessage("1112003 - Ring : Cupid"); 
            mc.dropMessage("1112005 - Ring : Venus Fireworks"); 
            mc.dropMessage("1112006 - Ring : Crossed Hearts"); 
            mc.dropMessage("1112800 - Friendship Ring : Clover");
            mc.dropMessage("1112801 - Friendship Ring : Flower Petal");
            mc.dropMessage("1112802 - Friendship Ring : Star");
            mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
            int itemId = Integer.parseInt(splitted[1]);
            String partnerName = splitted[2];
            int partnerId = MapleCharacter.getIdByName(partnerName, 0);
            if (c.getPlayer().getMeso() < 50000000) { //Change the price if you want
            mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
            } else {
				if (itemId < 111200 || itemId > 1120000 || (itemId > 

1112006 && itemId < 1112800) || itemId == 1112808 || (itemId > 4031358 && itemId < 

40313640) || itemId == 1112809) {
					mc.dropMessage("Invalid ID.");
            } else {
            int[] ret = MapleRing.createRing(c, itemId, c.getPlayer().getId(), c.getPlayer

().getName(), partnerId, partnerName);
            c.getPlayer().gainMeso(-50000000, true); 
            if (ret[0] == -1 || ret[1] == -1) {
                mc.dropMessage("Error.");
                mc.dropMessage("Make sure the person you are attempting to create a ring with is 

online.");
            }
			}
			} 
			}

It bocks most of the wedding rings that can get stuck in your inventory..
 
Ahh this there already is a ting command on acEvolutions thread...
 
lol so if its on his thread whats the use of having another thread for it?
 
THIS IS BROKEN.
Use
else if (splitted[0].equals("@ring")) {
mc.dropMessage("It should go like : @ring <ringid> <partner>");
mc.dropMessage("Ring ID's available are :");
mc.dropMessage("1112001 - Ring : Crush");
mc.dropMessage("1112002 - Ring : Cloud");
mc.dropMessage("1112003 - Ring : Cupid");
mc.dropMessage("1112005 - Ring : Venus Fireworks");
mc.dropMessage("1112006 - Ring : Crossed Hearts");
mc.dropMessage("1112800 - Friendship Ring : Clover");
mc.dropMessage("1112801 - Friendship Ring : Flower Petal");
mc.dropMessage("1112802 - Friendship Ring : Star");
mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
int itemId = Integer.parseInt(splitted[1]);
String partnerName = splitted[2];
int partnerId = MapleCharacter.getIdByName(partnerName, 0);
if (c.getPlayer().getMeso() < 50000000) { //Change the price if you want
mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
} else {
if (itemId < 111200 || itemId > 1120000 || (itemId >

1112006 && itemId < 1112800) || itemId == 1112808 || (itemId > 4031358 && itemId <

40313640) || itemId == 1112809) {
mc.dropMessage("Invalid ID.");
} else {
int[] ret = MapleRing.createRing(c, itemId, c.getPlayer().getId(), c.getPlayer

().getName(), partnerId, partnerName);
c.getPlayer().gainMeso(-50000000, true);
if (ret[0] == -1 || ret[1] == -1) {
mc.dropMessage("Error.");
mc.dropMessage("Make sure the person you are attempting to create a ring with is online.");
}
}
}
}

anyone with any v56+ servers
you will have to do this
Where your Commands are
else if (splitted[0].equals("@ring")) {
mc.dropMessage("It should go like : @ring <ringid> <partner>");
mc.dropMessage("Ring ID's available are :");
mc.dropMessage("1112001 - Ring : Crush");
mc.dropMessage("1112002 - Ring : Cloud");
mc.dropMessage("1112003 - Ring : Cupid");
mc.dropMessage("1112005 - Ring : Venus Fireworks");
mc.dropMessage("1112006 - Ring : Crossed Hearts");
mc.dropMessage("1112800 - Friendship Ring : Clover");
mc.dropMessage("1112801 - Friendship Ring : Flower Petal");
mc.dropMessage("1112802 - Friendship Ring : Star");
mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
int itemId = Integer.parseInt(splitted[1]);
String partnerName = splitted[2];
int partnerId = MapleCharacter.getIdByName(partnerName, 0);
if (c.getPlayer().getMeso() < 50000000) { //Change the price if you want
mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
} else {
if (itemId < 111200 || itemId > 1120000 || (itemId >

1112006 && itemId < 1112800) || itemId == 1112808 || (itemId > 4031358 && itemId <

40313640) || itemId == 1112809) {
mc.dropMessage("Invalid ID.");
} else {
int[] ret = MapleRing.createRing(c, itemId, c.getPlayer().getId(), c.getPlayer

().getName(), partnerId, partnerName);
c.getPlayer().gainMeso(-50000000, true);
if (ret[0] == -1 || ret[1] == -1) {
mc.dropMessage("Error.");
mc.dropMessage("Make sure the person you are attempting to create a ring with is online.");
}
}
}
}
& Put it under: return new CommandDefinition[] {
new CommandDefinition("ring", "", "Ring Commands", 0),
 
Keep the release forum alive!

Code:
else if (splitted[0].equals("@ring")) {
            mc.dropMessage("It should go like : @ring <ringid> <partner>");
            mc.dropMessage("Ring ID's available are :");
            mc.dropMessage("1112001 - Ring : Crush"); 
            mc.dropMessage("1112002 - Ring : Cloud"); 
            mc.dropMessage("1112003 - Ring : Cupid"); 
            mc.dropMessage("1112005 - Ring : Venus Fireworks"); 
            mc.dropMessage("1112006 - Ring : Crossed Hearts"); 
            mc.dropMessage("1112800 - Friendship Ring : Clover");
            mc.dropMessage("1112801 - Friendship Ring : Flower Petal");
            mc.dropMessage("1112802 - Friendship Ring : Star");
            mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
            int itemId = Integer.parseInt(splitted[1]);
            String partnerName = splitted[2];
            int partnerId = MapleCharacter.getIdByName(partnerName, 0);
            if (c.getPlayer().getMeso() < 50000000) { //Change the price if you want
            mc.dropMessage("Creating a ring will cost 50,000,000 mesos!");
            } else {
				if (itemId < 111200 || itemId > 1120000 || (itemId > 

1112006 && itemId < 1112800) || itemId == 1112808 || (itemId > 4031358 && itemId < 

40313640) || itemId == 1112809) {
					mc.dropMessage("Invalid ID.");
            } else {
            int[] ret = MapleRing.createRing(c, itemId, c.getPlayer().getId(), c.getPlayer

().getName(), partnerId, partnerName);
            c.getPlayer().gainMeso(-50000000, true); 
            if (ret[0] == -1 || ret[1] == -1) {
                mc.dropMessage("Error.");
                mc.dropMessage("Make sure the person you are attempting to create a ring with is 

online.");
            }
			}
			} 
			}

It bocks most of the wedding rings that can get stuck in your inventory..


sry about my noobness can anyone tell me what this does? and put where ? thx for ur help :D nice release anyway:blushing:
 
sry about my noobness can anyone tell me what this does? and put where ? thx for ur help :D nice release anyway:blushing:
That makes it public to everyone if you have the new command system(flowision, projectms, arberms) and such has it.
 
sry about my noobness can anyone tell me what this does? and put where ? thx for ur help :D nice release anyway:blushing:

Put it in your commandprocessor.java. If you don't know how to compile, go to the tutorial section and you should see a section on how to compile. It makes it public to everybody because they used the @ function.
 
oic :D thx man ... but i think my ms got liao :D i just thinking how to make without hamachi.. some tut too chim i see liao i stun lols = =
 
Status
Not open for further replies.
Back