- Joined
- Sep 2, 2010
- Messages
- 393
- Reaction score
- 10
Is there any way to create a ring with the tag by NPC "A COUPLE-RING WITH: <PARTNER IGN HERE>"? I know it can obviously be done in Cash Shop if you buy a crush ring the default way with your birthday and etc... when I try creating a ring through an NPC (and of course I have the functions necessary) the ring is created without any bugs but it's missing the "a couple-ring with" tag and it doesn't work. It seems rings only work and show their effects when it has the "couple" tag? Here's the script I am using. Here's an SS to show the tag.
PHP:
public int createRing(int ringId, String partner) {
if (partner.length() < 1 || partner.length() > 15) {
return 4;
}
final MapleCharacter couple = c.getChannelServer().getPlayerStorage().getCharacterByName(partner);
if (couple == null) {
return 1;
}
if (getPlayer().getInventory(MapleInventoryType.EQUIP).isFull()) {
return 2;
} else if (couple.getInventory(MapleInventoryType.EQUIP).isFull()) {
return 3;
} else if (partner.equals(getPlayer().getName())) {
return 5;
}
MapleRing.createRing(ringId, getPlayer(), couple);
getPlayer().addCrushRing(MapleRing.loadFromDb(ringId));
return 0;
}
Last edited: