Server: 6670
Hey,
I cannot get the telnet command working for enchanting the shirt of a online player.
Code: Select all
enchant username 13 18
All the enchant commands are working for me except this one.
Greetings,
Dasoldier
Code: Select all
enchant username 13 18
http://www.chiark.greenend.org.uk/~sgta ... nload.htmlelitovec wrote:i'm looking for telnet app!
Do you have telnet app?
Can you give me and others?
sorry fo my eng
Code: Select all
public static final int PAPERDOLL_UNDER = 0;
Code: Select all
if ((player != null) && (itemType > 0)) { success = setEnchant(player, enchant, itemType); if (success) { _print.println("Item enchanted successfully."); } } else if (!su
Code: Select all
if ((player != null) && (itemType > 0))
Code: Select all
if (((player != null) && (itemType > 0)) || (itemType == 0))
Code: Select all
else if (command.startsWith("enchant")) { StringTokenizer st = new StringTokenizer(command.substring(8), " "); int enchant = 0, itemType = -1; try { L2PcInstance player = L2World.getInstance().getPlayer(st.nextToken()); itemType = Integer.parseInt(st.nextToken()); enchant = Integer.parseInt(st.nextToken()); switch (itemType) { case 1: itemType = Inventory.PAPERDOLL_HEAD; break; case 2: itemType = Inventory.PAPERDOLL_CHEST; break; case 3: itemType = Inventory.PAPERDOLL_GLOVES; break; case 4: itemType = Inventory.PAPERDOLL_FEET; break; case 5: itemType = Inventory.PAPERDOLL_LEGS; break; case 6: itemType = Inventory.PAPERDOLL_RHAND; break; case 7: itemType = Inventory.PAPERDOLL_LHAND; break; case 8: itemType = Inventory.PAPERDOLL_LEAR; break; case 9: itemType = Inventory.PAPERDOLL_REAR; break; case 10: itemType = Inventory.PAPERDOLL_LFINGER; break; case 11: itemType = Inventory.PAPERDOLL_RFINGER; break; case 12: itemType = Inventory.PAPERDOLL_NECK; break; case 13: itemType = Inventory.PAPERDOLL_UNDER; break; case 14: itemType = Inventory.PAPERDOLL_CLOAK; break; case 15: itemType = Inventory.PAPERDOLL_BELT; break; default: itemType = -1; } if (enchant > 65535) { enchant = 65535; } else if (enchant < 0) { enchant = 0; } boolean success = false; if ((player != null) && (itemType != -1)) { success = setEnchant(player, enchant, itemType); if (success) { _print.println("Item enchanted successfully."); } } else if (!success) { _print.println("Item failed to enchant."); } } catch (Exception e) { } }
Code: Select all
if ((player != null) && (itemType != -1)) { success = setEnchant(player, enchant, itemType); if (success) { _print.println("Item enchanted successfully."); } } else if (!success) { _print.println("Item failed to enchant."); }
Code: Select all
if ((player != null) && (itemType > 0))