
l2redkiller
Members-
Posts
200 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by l2redkiller
-
[Help] Captcha Antibot system
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
i donno http://pastebin.com/2QFQEJAk i am from germany not that good english so ok if i replayce for that ? that : i need some more than 1 html so i donno how is the system. it will work ? -
[Help] Captcha Antibot system
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
here is my full L2Attackable.java : http://www.megaupload.com/?d=D0SKCZXI thanks for help ps maybe a way for put the htmls into data/html/antibot/...html ? -
[Help] Captcha Antibot system
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
here is my full L2Attackable.java : http://www.megaupload.com/?d=D0SKCZXI thanks for help ps maybe a way for put the htmls into data/html/antibot/...html ? -
[Help] Captcha Antibot system
l2redkiller posted a question in Request Server Development Help [L2J]
Hi guys, so i tryed to add captcha antibot system the system works after blabla kills he pop up and i must enter if wrong = jail work i just get a error here a picture : and here the code of L2Attackable : private static int AntiBotKills = 0; private static int Change = 0; NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0); @Override public boolean doDie(L2Character killer) { // Kill the L2NpcInstance (the corpse disappeared after 7 seconds) if (!super.doDie(killer)) return false; if (Config.ENABLE_ANTIBOT_SYSTEM) AntiBotKills++; Change = Rnd.get(10); int AntiBotKillsCheck = (Config.ANTIBOT_KILLS_CHECK); if (Config.ENABLE_ANTIBOT_SYSTEM && AntiBotKills >= AntiBotKillsCheck) { killer.setIsParalyzed(true); killer.setIsInvul(true); AntiBotKills = 0; switch(Change) { case 1: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 3 + 9 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 12\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 2: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 21 - 7</font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 14\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 3: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 5 + 3 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 8\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 4: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 3 - 2 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 1\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 5: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 19 + 4 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 23\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 6: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 9 - 3 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 6\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 7: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 53 - 33 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 20\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 8: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 7 + 22 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 29\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 9: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 4 + 31 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 35\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 10: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 12 - 8 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 4\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); default: ; } } // Notify the Quest Engine of the L2Attackable death if necessary try { L2PcInstance player = null; if (killer != null) player = killer.getActingPlayer(); if (player != null) { if (getTemplate().getEventQuests(Quest.QuestEventType.ON_KILL) != null) for (Quest quest: getTemplate().getEventQuests(Quest.QuestEventType.ON_KILL)) ThreadPoolManager.getInstance().scheduleEffect(new OnKillNotifyTask(this, quest, player, killer instanceof L2Summon), _onKillDelay); } } catch (Exception e) { _log.log(Level.SEVERE, "", e); } return true; } thanks for helping mee -
[Help] Captcha Antibot system
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
Hi guys, so i tryed to add captcha antibot system the system works after blabla kills he pop up and i must enter if wrong = jail work i just get a error here a picture : and here the code of L2Attackable : private static int AntiBotKills = 0; private static int Change = 0; NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0); @Override public boolean doDie(L2Character killer) { // Kill the L2NpcInstance (the corpse disappeared after 7 seconds) if (!super.doDie(killer)) return false; if (Config.ENABLE_ANTIBOT_SYSTEM) AntiBotKills++; Change = Rnd.get(10); int AntiBotKillsCheck = (Config.ANTIBOT_KILLS_CHECK); if (Config.ENABLE_ANTIBOT_SYSTEM && AntiBotKills >= AntiBotKillsCheck) { killer.setIsParalyzed(true); killer.setIsInvul(true); AntiBotKills = 0; switch(Change) { case 1: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 3 + 9 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 12\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 2: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 21 - 7</font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 14\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 3: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 5 + 3 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 8\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 4: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 3 - 2 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 1\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 5: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 19 + 4 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 23\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 6: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 9 - 3 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 6\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 7: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 53 - 33 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 20\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 8: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 7 + 22 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 29\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 9: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 4 + 31 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 35\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); break; case 10: npcHtmlMessage.setHtml("<html><title>Antibot System</title><body><center>Enter a code below and click CONFIRM<br1>You will be invulnerable until you enter<br1>the code so noone will kill you!<br1><br>Question: <font color=\"66FF00\"> 12 - 8 </font> = ?<edit var=\"antibot\" width=110><br><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot 4\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); killer.sendPacket(npcHtmlMessage); default: ; } } // Notify the Quest Engine of the L2Attackable death if necessary try { L2PcInstance player = null; if (killer != null) player = killer.getActingPlayer(); if (player != null) { if (getTemplate().getEventQuests(Quest.QuestEventType.ON_KILL) != null) for (Quest quest: getTemplate().getEventQuests(Quest.QuestEventType.ON_KILL)) ThreadPoolManager.getInstance().scheduleEffect(new OnKillNotifyTask(this, quest, player, killer instanceof L2Summon), _onKillDelay); } } catch (Exception e) { _log.log(Level.SEVERE, "", e); } return true; } thanks for helping mee -
ye link work and nice share but anyone can share working for freya ??
-
[HELP] AutoLootAdena
l2redkiller replied to StarSCreams's question in Request Server Development Help [L2J]
maybe just for people they wanna have loot adena and no other items :P -
How to code ParticipationFee for Olympiad
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
i try more if i am back @home :P -
ye i done by myself thx anyway Close :D
-
How to code ParticipationFee for Olympiad
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
okay i try and try -
How to code ParticipationFee for Olympiad
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
/** * @param noble - checked noble * @param player - messages will be sent to this L2PcInstance * @return true if all requirements are met */ // TODO: move to the bypass handler after reworking points system private final boolean checkNoble(L2PcInstance noble, L2PcInstance player) { if (Config.ALLOWOLYFEE) { player.destroyItemByItemId("Oly Participation Fee", Config.OLY_PARTICIPATION_FEE[0], Config.OLY_PARTICIPATION_FEE[1], true); } } something like that will work ? -
ye but i am just learn java so i dont know that much i had todo with oly / and some scripts for pvp pk announce and color not more sorry
-
i donno maybe you can help me with that ?
-
How to code ParticipationFee for Olympiad
l2redkiller replied to l2redkiller's question in Request Server Development Help [L2J]
ye something like that just need in config itemid and amount of it :D will be nice for help thanks -
Guys see it..Need help!!!
l2redkiller replied to BloodyIcon's question in Request Server Development Help [L2J]
its freya high five you use the server @ home or a dedicated server ? show your login and gameserver config + ipconfig.xml Maybe change the AllowedProtocolRevisions = 216 to 268 -
How to code ParticipationFee for Olympiad
l2redkiller posted a question in Request Server Development Help [L2J]
Heya anyone have the know how to create a code for that ?? Thanks for help -
[Guide] Gain skill when in Jail zone.
l2redkiller replied to SySt3MGaM3RFr3aKs's topic in Server Shares & Files [L2J]
nice share but can rewrite it with config ? will be better :D Thankss -
Really nice share thanks for it :D
-
so if i pick the flag i get this error now what is the problem ?? thanks for help
-
hmm i must test it dont know if pick or give so just wait for my test
-
unEquipItemInBodySlotAndRecord case PAPERDOLL_HAIR: slot = L2Item.SLOT_HAIR; break; case PAPERDOLL_HAIR2: slot = L2Item.SLOT_HAIR2; break; case PAPERDOLL_HEAD: slot = L2Item.SLOT_HEAD; break; case PAPERDOLL_RHAND: slot = L2Item.SLOT_R_HAND; break; case PAPERDOLL_LHAND: slot = L2Item.SLOT_L_HAND; break; case PAPERDOLL_GLOVES: slot = L2Item.SLOT_GLOVES; break; ctf code : public static void addFlagToPlayer(L2PcInstance _player) { //remove items from the player hands (right, left, both) // This is NOT a BUG, I don't want them to see the icon they have 8D L2ItemInstance wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (wpn == null) { wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (wpn != null) _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_RHAND); } else { _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_RHAND); wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LHAND); if (wpn != null) _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_LHAND); } or its anything of this : _player.getInventory().equipItem(ItemTable.getInstance().createItem("", [color=orange]CTF._FLAG_IN_HAND_ITEM_ID, 1,[/color] _player, null));
-
what i have to do with that in freya server ? player.isOnline() == 0 and player.isOnline() != 0
-
i got some errors in ctf event engine : thannkss for help if need the code : public static void addFlagToPlayer(L2PcInstance _player) { //remove items from the player hands (right, left, both) // This is NOT a BUG, I don't want them to see the icon they have 8D L2ItemInstance wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (wpn == null) { wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (wpn != null) _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_RHAND); } else { _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_RHAND); wpn = _player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LHAND); if (wpn != null) _player.getInventory().unEquipItemInBodySlotAndRecord(Inventory.PAPERDOLL_LHAND); } //add the flag in his hands _player.getInventory().equipItem(ItemTable.getInstance().createItem("", CTF._FLAG_IN_HAND_ITEM_ID, 1, _player, null)); _player.broadcastPacket(new SocialAction(_player.getObjectId(), 16)); //amazing glow _player._haveFlagCTF = true; _player.broadcastUserInfo(); _player.sendPacket(new CreatureSay(_player.getObjectId(), 15, ":", "You got it! Run back! ::")); // 8D } public static void removeFlagFromPlayer(L2PcInstance player) { final L2ItemInstance wpn = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); player._haveFlagCTF = false; if (wpn != null) { final L2ItemInstance[] unequiped = player.getInventory().unEquipItemInBodySlotAndRecord(wpn.getItem().getBodyPart()); player.getInventory().destroyItemByItemId("", CTF._FLAG_IN_HAND_ITEM_ID, 1, player, null); InventoryUpdate iu = new InventoryUpdate(); for (L2ItemInstance element : unequiped) iu.addModifiedItem(element); player.sendPacket(iu); player.sendPacket(new ItemList(player, true)); // get your weapon back now ... player.abortAttack(); player.broadcastUserInfo(); } else { player.getInventory().destroyItemByItemId("", CTF._FLAG_IN_HAND_ITEM_ID, 1, player, null); player.sendPacket(new ItemList(player, true)); // get your weapon back now ... player.abortAttack(); player.broadcastUserInfo(); } }
-
[Guide]How to Steal Timeline
l2redkiller replied to ServeSATAN's topic in Server Development Discussion [L2J]
nice but maybe need more than one changeset what do than ? -
[Collection] Links that help you to learn
l2redkiller replied to Intrepid's topic in Server Shares & Files [L2J]
really nice that is it what i searched :D