Jump to content

Intrepid

Legendary Member
  • Posts

    5,521
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Intrepid

  1. disable or enable the trade for you. credits to me. For L2J CT2.2 /* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.handler.voicedcommandhandlers; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; /** * @author Intrepid * */ public class tradeoff implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "tradeoff", "tradeon" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if ((command.startsWith("tradeoff"))) { activeChar.setTradeRefusal(true); activeChar.sendMessage("Trade refusal enabled"); } if ((command.startsWith("tradeon"))) { activeChar.setTradeRefusal(false); activeChar.sendMessage("Trade refusal disabled"); } return true; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } }
  2. search for that in the core: // Add karma to attacker and increase its PK counter under that use pvp reward(from Vago) addItem("Loot", 8732, 1, this, true); sendMessage("You won 1 item!"); And here comes the special thing in it make it zone related: // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); // pvp reward if (isInsideZone(ZONE_PVP)) { addItem("Loot", 8732, 1, this, true); sendMessage("You won 1 lifestone for a pvp kill!"); } // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); The only thing you need is to change the zone type. The zone types are: ZONE_PVP -> arena ZONE_PEACE -> Town ZONE_SWAMP -> swamp zone ZONE_NOLANDING ->no landing zone like toi for example ZONE_MOTHERTREE ->elven village mothertree zone ZONE_JAIL -> Jail zone ZONE_FORT -> fortress zone ZONE_MONSTERTRACK -> derby track zone Credits to me and Vago. for l2j ct2.2
  3. 2: // Talking Island 3: // Elven village 1: // Dark elf village 4: // Orc village 6: // Dwarven village 7: // Gludio 5: // Gludin 8: // Dion 9: // Giran 10: // Oren 12: // Aden 11: // Hunters village 9: // Giran Harbour 15: // Heine 14: // Rune 13: // Goddard 17: // Schuttgart 16: // Floran 19: //Primeval Isle 20: //Kamael Village 21: //South of Wastelands Camp 22: //Fantasy Island List of the towns that can be used in that event(use only the Id)
  4. well i start to use it. -Compiled -server started -the start_war announce incorrect(it said normal too) -no error msg -bug in the grand boss manager instance i dont know its for everybody but everytime when i start the event its +12 reloaded grandboss instance. more soon when i have more time
  5. Vago i make the test for you tonight but please hide it!:)
  6. really nice about the reward i think its possible to change the zone to another type not to false and you make an event zone type.And with that you can make the pvp reward system with a same ip = no reward:)
  7. well yes thats a "basic version" and not soo hard but in high rate servers good against flooders and reach 50pvp is not a hard thing:D
  8. uhhh sry:Di correct it:Di made tonight with a bottle of tequila:D //LOL no corrections needed i need to sleep:D
  9. you need pvp points to use shout/trade/hero chat. Credits to me. just edit that:activeChar.getPvpKills() >= 50 Index: D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatTrade.java =================================================================== --- D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatTrade.java (revision 2785) +++ D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatTrade.java (working copy) @@ -42,27 +42,15 @@ */ public void handleChat(int type, L2PcInstance activeChar, String target, String text) { - CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); - - Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); - - if (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("on") || (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("gm") && activeChar.isGM())) + if((activeChar.getPvpKills() >= 50) || (activeChar.isGM())) { - for (L2PcInstance player : pls) - { - if (!BlockList.isBlocked(player, activeChar)) - player.sendPacket(cs); - } - - } - else if (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("limited")) - { - int region = MapRegionTable.getInstance().getMapRegion(activeChar.getX(), activeChar.getY()); + CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); + + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); //synchronized (L2World.getInstance().getAllPlayers()) { for (L2PcInstance player : pls) - if (region == MapRegionTable.getInstance().getMapRegion(player.getX(), player.getY()) && !BlockList.isBlocked(player, activeChar) && player.getInstanceId() == activeChar.getInstanceId()) - player.sendPacket(cs); + player.sendPacket(cs); } } } Index: D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatShout.java =================================================================== --- D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatShout.java (revision 2785) +++ D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatShout.java (working copy) @@ -42,28 +42,17 @@ */ public void handleChat(int type, L2PcInstance activeChar, String target, String text) { - CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); - - Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); - - if (Config.DEFAULT_GLOBAL_CHAT.equalsIgnoreCase("on") || (Config.DEFAULT_GLOBAL_CHAT.equalsIgnoreCase("gm") && activeChar.isGM())) + if((activeChar.getPvpKills() >= 100) || (activeChar.isGM())) { - int region = MapRegionTable.getInstance().getMapRegion(activeChar.getX(), activeChar.getY()); + CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); + + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); //synchronized (L2World.getInstance().getAllPlayers()) { for (L2PcInstance player : pls) - if (region == MapRegionTable.getInstance().getMapRegion(player.getX(), player.getY()) && !BlockList.isBlocked(player, activeChar) && player.getInstanceId() == activeChar.getInstanceId()) - player.sendPacket(cs); + player.sendPacket(cs); } } - else if (Config.DEFAULT_GLOBAL_CHAT.equalsIgnoreCase("global")) - { - for (L2PcInstance player : pls) - { - if (!BlockList.isBlocked(player, activeChar)) - player.sendPacket(cs); - } - } } /** Index: D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatHeroVoice.java =================================================================== --- D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatHeroVoice.java (revision 2785) +++ D:/L2HauntedStory/L2_GameServer/java/net/sf/l2j/gameserver/handler/chathandlers/ChatHeroVoice.java (working copy) @@ -40,7 +40,7 @@ */ public void handleChat(int type, L2PcInstance activeChar, String target, String text) { - if (activeChar.isHero()) + if (activeChar.isHero() || (activeChar.getPvpKills() >= 1000)); { if (!FloodProtector.tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_HEROVOICE)) {
  10. hmm good idea when i have some time i start to make them:D
  11. i know i know thats why i said just for fun:Pyou know thats more "special" i think because /allblock is work everywhere but find me a server where players can use a gm command(without access ofc):)
  12. //admin -> game //admin -> teleport
  13. easy to find start menu -> control panel -> system -> special system options -> system variable
  14. Easy .pmoff voicedcommand to make the pm refusal mode accessible to players. Credits to me. (I know thats a very easy one to make so plz dont comment something like "easy to me" or else...that command only for FUN) Tested and work on L2J ct2.2 /* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.handler.voicedcommandhandlers; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; /** * @author Intrepid * */ public class pmoff implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "pmoff" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if ((command.startsWith("pmoff"))) { if (activeChar.getMessageRefusal()) // already in message refusal mode { activeChar.setMessageRefusal(false); activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_ACCEPTANCE_MODE)); } else { activeChar.setMessageRefusal(true); activeChar.sendPacket(new SystemMessage(SystemMessageId.MESSAGE_REFUSAL_MODE)); } } return true; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } }
  15. Delete the C:/Documents and Settings/Friso/workspace/L2J_GameServer/ lines and apply it.
  16. i like the new chronicles YES i like it because i play the new ones on retail not only in l2j. You like IL because there are many IL servers BUT you play on l2j i think well il l2j...phx hlapex walker...huge client modding so... You dont like the new chronicle because of the kamael class because it look soo gay thats true but man nobody said you need to play with it:D And the lvl81 skills all those crap?:Dwell from the topic starter:My favorite is C4,because I like Necromancer and he was strongest on C4. lvl81skill:area vampiric its really one of the strongest skills...and the tank classes...look at DA and paladin they have now really nice skills And the balance well every chronicle has its own OP class so you cant talk about balance because there are no balance in the lineage for example in interlude the op class is the destroyer in c3 c4 c5 mages and archers in kamael and above the daggers(archers now weak because they have range related power but thats working only on retail). So my best is gracia part2.
  17. Ok here some help for the php script: in your database create new colums(for example you have 2 vote link): name:ip type:varchar lenght:255 decimals:0 allow null:x default:0 You need that to avoid dinamic IP cheating,you need that only once because you need to add a ip check for all vote. after that make time colums: name:time1 type:varchar lenght:255 decimals:0 allow null:x default:1226121496 name:time2 type:varchar lenght:255 decimals:0 allow null:x default:1226121496 you need that to make it like 1char=1vote if you dont understand: the time1 check the vote time and to avoid cheating need to w8 24hours to get vote point(with php check) thats the database side in the website make a connect.php with sql database connect info and edit your index.php where you insert the link above the vote link you need to type your character name(with input type=text)and add a check if the character dont exist in db dont allow voting,if the character name are incorrect(case sensitive)dont allow voting,if no text typed in dont allow voting,if the character name are ok go to the vote site and player can make vote.
  18. about faction system you need to enable the faction engine in the java(l2jfree)search in the config.java for FACTION or: http://www.l2jserver.com/forum/thread.php?threadid=27910&hilight=faction about rebirth here you can find it: http://www.l2jfree.com/index.php?topic=3932.0 there 2 way 1st item reward 2nd skill reward if you use another pack change the imports and thats all i think
  19. Today i test l2j l2jfree and emu heres my results: ram usage(4GB ddr2 1GB allowed to l2): l2jfree:380MB l2j:480MB L2emu:490MB implementations(skills,formulas,items etc...) L2jfree:most complete L2j:in skills poor but the really big things like olimpiad for example are better than every packs system L2emu:good skill implementations but every system is like 50% retail Support and handling: L2emu:poor support and hard handling(java) L2j:HUGE support and easy to handle L2jfree:easy to handle BUT the shittyest support that i've every known in my opinion since l2jfree is going down because of some idiot(xy global moderator make l2jfree contributions but he never run l2jfree server i dont want to tell the name...)L2j is better in my opinion.
  20. I get error without any java modification with edited pom.xml to work so... And look at the l2jfree forum...its a joke l2jfree has the shittiest support...
  21. well i'm work a lot with l2jfree and its nice BUT since(i dont know who find out it but he is really retarded idiot)the trunk is unsupported if you try to compile the trunk you get errors so thats why i leave l2jfree(because you cant keep updated your server if you get errors everytime) l2emu has a lot of things that eats the ram and cpu only(folderservice for ex.)so i dont use it l2j has the best support in core and dp side things so i use l2j.
  22. easy to decide in my laptop i have 4 gb ram xp sp3 eats 350mb vista eats 1,11gb...
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock