Jump to content

An4rchy

Legendary Member
  • Posts

    2,656
  • Credits

  • Joined

  • Last visited

  • Days Won

    26
  • Feedback

    100%

Everything posted by An4rchy

  1. An adice from me: Just add admins to msn and speak with them, show them your skills, the only way to become dev(the easy way actually) in a server. Too many tried with posts like: "hi i am george and i want to be gm" or "hi, i am developer, i am skilled, i want to become dev in a server", but noone succeeded.
  2. Ti pack exeis, ti client, kai pia buffer prospatheis na peraseis. Kai den einai complite pack, einai compiled pack.
  3. +1 [gr]tha deis kati gia ipostaseis kai embelies metablitwn kai dn tha ksereis ti sou ginete(an kai sto telos einai eukolo). egw eimai sto 6to apo to kefalea pou sou eipa, kai akoma dn ta katalabenw 100% auta gia ta antikeimena, pisteuw oti ta piannw 85-90 %.[/gr]
  4. Check last posts of Bobzih: http://maxcheaters.com/forum/index.php?action=profile;u=82625;sa=showPosts Also have a look at develop l2j server section. Also can you change my name to Olympus or if it exists, ~Olympus. Thanks.
  5. po, perna to se kapio alo .properties. meta aplos prepei na doses sto sosto meros sto Config.java timi stis metablites....... enow prepei na baleis tis grammes pou einai san: ALT_PERFECT_SHLD_BLOCK = Integer.parseInt(playersSettings.getProperty("AltPerfectShieldBlockRate", "10")); LIFE_CRYSTAL_NEEDED = Boolean.parseBoolean(playersSettings.getProperty("LifeCrystalNeeded", "true")); SP_BOOK_NEEDED = Boolean.parseBoolean(playersSettings.getProperty("SpBookNeeded", "true")); sto sosto meros.
  6. dld akou afton, na doume ti tha peis:
  7. deite to sto 1:18, kai peite mou me ti miazei to daxtilo tou
  8. Lol no, it's not gonna open internet explorer :S Player is gonna receive a message saying "http://redtube.com" or "http://my18teens.com" (one of these two). :D nice :P
  9. [GR]Dld, ksereis ola afta pou lene ta kefalea pou sou anefera, kai den mporeis na ftiakseis kati diko sou? Sorry, an einai etsi, i den skeftese sosta, i den skeftese arketa, i dokimase na ta ksanadiabaseis :) An katalaba lathos, pes mou ti enoeis oti ksereis afta pou lew...[/GR]
  10. Pantos egw ena paratirisa, kai filika panta, apo tin ora pou ekanes demote Coyote, dn exei ksanampei(ektos an esi tou eipes na min ksanampei). Einai olofanero pisteuw ti enow.... Tespa, nomizw oti exei dikio o Maxtor. Mia megali alagi sto staff team einai aparetiti. Toulaxiston Erol empene kai mpenei akoma...
  11. [GR]An exeis skopo na pareis kapio biblio gia na diabaseis, tis java enow, sou sinistw na pareis to Plires enxiridio tis java 2. Ama thes na matheis java, mono gia l2j (asxetos l2jfree i l2jserver), sou sinistw na diabaseis to proto meros( eisagogi stin java, eisagogi ston programatismo, ergasia me antikeimena, listes logiki kai broxoi, dimiourgia klasewn kai methodwn, paketa diasindeseis kai ala xarakthristika, nhmata kai eksereseis). Afta milane kiriws gia ttis gnoseis pou thes gia na mporeis na ftiakseis dika sou features kai polla ala sto l2j. Alla min perimeneis molis ta diabaseis oti tha ksereis na ftiakseis oti thes. Tha prepei na 'meletiseis' ligo kai l2j. Na koitas pos leitourgei to kathe share pou exoun kanei, ti xrisimopoiei, kai meta tha mporeis na ftiakseis ta dika sou. Episeis ama deis ta video sto youtube apo thenewboston(an thimame kala), tha se boithisoun poli. Ala min perimeneis oti apo l2j tha matheis java, kai poso mallon na ftiaxneis dika sou unique share. Aplos tha eisai ikanos na kaneis c/p kana code kai na ta alakseis. Ante kai adapt to poli(to idio einai panw katw).[/GR]
  12. So wait, that means ac finishes there? I hope no. But how to play The Truth mission (or what?)? Wait, let me see the videos :P
  13. yeah ok, but easier than modifying 2-3 bats :P l2jfree is dead anyway
  14. Hmm, open a html with what options? Just a simple html, no buttons(with bypasses i mean)?
  15. gz finito kai se olous tous alous. (tou matim tou pigene kalitera to portokali :D).
  16. Hi guys. I decided to make a new share. It may be similar to PvP Merchant, but it's not. It's a new share, created 100% by me. So what is it, it's not something special. Players will be able to choose a reward(become hero until restart, become noblesse, get something(item), get a skill(item skills suggested). So example, admin set sethero reward, to cost 500 pvps. After character chooses this reward, 500 pvps will be taken from him, and he will become hero until restart. Also a message will be sent to him. See configs for further info. Here: Index: java/config/npcs.properties =================================================================== --- java/config/npcs.properties (revision 66) +++ java/config/npcs.properties (working copy) @@ -148,4 +148,25 @@ # The always on option allows to ignore all this and let all grids be active at all times GridsAlwaysOn = False GridNeighborTurnOnTime = 1 -GridNeighborTurnOffTime = 90 \ No newline at end of file +GridNeighborTurnOffTime = 90 + +# PvP Trader npc settings. + +# Set hero until restart. +# How many pvps will it cost? +SetHeroPvpCost = 500 +# Set noblesse. +# How many pvps will it cost? +SetNoblePvpCost = 250 +# Give item. +# How many pvps will it cost? +GiveItemPvpCost = 100 +ItemId = 3470 +ItemCount = 500 +# Get a skill. +# Suggestion: Use augment skills. +# How many pvps will it cost? +GetASkillPvpCost = 1500 +# Default skill: Item Skill Active: Cheer (Increases your cp by 300.) +SkillId = 3131 +SkillLvl = 10 \ No newline at end of file Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PvpTraderInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PvpTraderInstance.java (revision 0) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PvpTraderInstance.java (revision 0) @@ -0,0 +1,119 @@ +/* This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package net.sf.l2j.gameserver.model.actor.instance; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; + +import net.sf.l2j.Config; +import net.sf.l2j.L2DatabaseFactory; +import net.sf.l2j.gameserver.datatables.SkillTable; +import net.sf.l2j.gameserver.model.L2Skill; +import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance; +import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate; +import net.sf.l2j.gameserver.templates.item.L2Item; + +/** + * + * @author Olympus + */ +public class L2PvpTraderInstance extends L2NpcInstance +{ + public L2PvpTraderInstance(int objectId, L2NpcTemplate template) + { + super(objectId, template); + } + @Override + public void onBypassFeedback(L2PcInstance player, String command) + { + if (command.startsWith("setHero")) + { + if (player.isHero()) + { + player.sendMessage("You are already hero."); + return; + } + else if (player.getPvpKills() < Config.SET_HERO_PVP_COST) + { + player.sendMessage("You need "+Config.SET_HERO_PVP_COST+" pvp(s) to become hero until restart."); + return; + } + else if (!player.isHero() && player.getPvpKills() >= Config.SET_HERO_PVP_COST) + { + player.setHero(true); + player.setPvpKills(player.getPvpKills() - Config.SET_HERO_PVP_COST); + player.broadcastUserInfo(); + player.sendMessage("You have become a server hero until restart, and "+Config.SET_HERO_PVP_COST+" pvp(s) were taken from you."); + } + } + if (command.startsWith("setNoble")) + { + if (player.isNoble()) + { + player.sendMessage("You are already noblesse."); + return; + } + else if (player.getPvpKills() < Config.SET_NOBLE_PVP_COST) + { + player.sendMessage("You need "+Config.SET_NOBLE_PVP_COST+" pvp(s) to become noblesse."); + return; + } + else if (!player.isNoble() && player.getPvpKills() >= Config.SET_NOBLE_PVP_COST) + { + player.setNoble(true); + player.setPvpKills(player.getPvpKills() - Config.SET_NOBLE_PVP_COST); + player.broadcastUserInfo(); + player.sendMessage("You have become noblesse, and "+Config.SET_NOBLE_PVP_COST+" pvp(s) were taken from you."); + } + } + if (command.startsWith("addItem")) + { + if (player.getPvpKills() < Config.GIVE_ITEM_PVP_COST) + { + player.sendMessage("You need "+Config.SET_NOBLE_PVP_COST+" pvp(s) to get a reward."); + return; + } + else if (player.getPvpKills() >= Config.GIVE_ITEM_PVP_COST) + { + player.addItem("PvpReward", Config.ITEM_ID, Config.ITEM_COUNT, player, true); + player.setPvpKills(player.getPvpKills() - Config.GIVE_ITEM_PVP_COST); + player.broadcastUserInfo(); + player.sendMessage("You have taken a reward and "+Config.GIVE_ITEM_PVP_COST+" pvp(s) have been taken from you. Check your inventory."); + } + } + if (command.startsWith("addSkill")) + { + if (player.getPvpKills() < Config.GET_A_SKILL_PVP_COST) + { + player.sendMessage("You need "+Config.GET_A_SKILL_PVP_COST+" pvp(s) to get a skill."); + return; + } + else if (player.getPvpKills() >= Config.GET_A_SKILL_PVP_COST) + { + L2Skill skill = null; + skill = SkillTable.getInstance().getInfo(Config.SKILL_ID, Config.SKILL_LVL); + player.addSkill(skill, true); + player.setPvpKills(player.getPvpKills() - Config.GET_A_SKILL_PVP_COST); + player.sendSkillList(); + player.broadcastUserInfo(); + player.sendMessage("You have learned "+skill.getName()+" lvl "+Config.SKILL_LVL+", and "+Config.GET_A_SKILL_PVP_COST+" pvp(s) have been taken from you. Check your skills list."); + } + } + } +} Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 66) +++ java/net/sf/l2j/Config.java (working copy) @@ -296,6 +296,15 @@ public static int GRID_NEIGHBOR_TURNON_TIME; public static int GRID_NEIGHBOR_TURNOFF_TIME; + public static int SET_HERO_PVP_COST; + public static int SET_NOBLE_PVP_COST; + public static int GIVE_ITEM_PVP_COST; + public static int ITEM_ID; + public static int ITEM_COUNT; + public static int GET_A_SKILL_PVP_COST; + public static int SKILL_ID; + public static int SKILL_LVL; + //-------------------------------------------------- // Players //-------------------------------------------------- @@ -895,6 +904,15 @@ GRIDS_ALWAYS_ON = Boolean.parseBoolean(npcsSettings.getProperty("GridsAlwaysOn", "False")); GRID_NEIGHBOR_TURNON_TIME = Integer.parseInt(npcsSettings.getProperty("GridNeighborTurnOnTime", "1")); GRID_NEIGHBOR_TURNOFF_TIME = Integer.parseInt(npcsSettings.getProperty("GridNeighborTurnOffTime", "90")); + + SET_HERO_PVP_COST = Integer.parseInt(npcsSettings.getProperty("SetHeroPvpCost", "500")); + SET_NOBLE_PVP_COST = Integer.parseInt(npcsSettings.getProperty("SetNoblePvpCost", "250")); + GIVE_ITEM_PVP_COST = Integer.parseInt(npcsSettings.getProperty("GiveItemPvpCost", "100")); + ITEM_ID = Integer.parseInt(npcsSettings.getProperty("ItemId", "3470")); + ITEM_COUNT = Integer.parseInt(npcsSettings.getProperty("ItemCount", "500")); + GET_A_SKILL_PVP_COST = Integer.parseInt(npcsSettings.getProperty("GetASkillPvpCost", "1500")); + SKILL_ID = Integer.parseInt(npcsSettings.getProperty("SkillId", "3131")); + SKILL_LVL = Integer.parseInt(npcsSettings.getProperty("SkillLvl", "10")); } catch (Exception e) { NOTES: - Credits are mine, so messages as: "nab already shared", "seen this before here", will be ignored. - Here is a sample html, you should put it at: /data/html/default(and ofc as name, the id of your npc): <html><body><br> <center>Welcome to PvP Trader!<br> Select your reward:<br> <a action="bypass -h npc_%objectId%_setHero">Make me hero until restart!</a><br> <a action="bypass -h npc_%objectId%_setNoble">Make me noblesse!</a><br> <a action="bypass -h npc_%objectId%_addItem">Give me something!</a><br> <a action="bypass -h npc_%objectId%_addSkill">Give me a skill!</a></center> </body></html> - If you want more rewards to be added, reply here(i won't add silly rewards). - It is coded on l2jaCis, rev. 66. - In order to work, you should make an npc with type: L2PvpTrader. - It is 100% tested. Have fun!
  17. L2JaCis. Clean coding, no dirty-coded customs, working with latest l2j updates on interlude, without messing with interlude gameplay.
  18. Gl. Also translate some words in english, like mascaras, joias, eventos. Everyone can understand, but...
  19. Hmm, blooddevil, o krash exei dikio. To npc pou eftiakses dn einai tpt alo apo ena aplo html npc. Leei aplos plirofories. Opote, to mono pou tha prepei na exei unique, einai i omorfia. Gt o kathenas mporei na to ftiaksei. :S Kserw, einai to proto sou share, ala prospathise ligo na alakseis ipsos kai platos. Dn einai diskolo.
×
×
  • Create New...