Fogotendx20
Members-
Posts
444 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Fogotendx20
-
2 Problimatakia nA mou lisete :)
Fogotendx20 replied to DaRkWaRs's question in Request Server Development Help [Greek]
sto 1: trava mia //quest_reload ID merikes fores prepi na to kanis! -
[SHARE]Gm Shop!! ~ For CT1.5 And CT2 ~
Fogotendx20 replied to Cobra's topic in Server Development Discussion [L2J]
ofc! belive me we have a lot of nobs here,they know only how to add :) -
ya im know :) :D but i dont know where to put it....in wich part of code anywayi will check it! nop now.....delay is for 2 second! w8 a little maby they fx it,smthink like chat flood protection add Properties to can from config to chose a time! smthink like this # Time limit between using Global Chat in 100ms GlobalChatTime = 1 well a little Update! FloodProtector.java /* * 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.util; import java.util.logging.Logger; import javolution.util.FastMap; import javolution.util.FastMap.Entry; import net.sf.l2j.Config; import net.sf.l2j.gameserver.GameTimeController; /** * Flood protector * * @author durgus */ public class FloodProtector { private static final Logger _log = Logger.getLogger(FloodProtector.class.getName()); private static FloodProtector _instance; public static final FloodProtector getInstance() { if (_instance == null) { _instance = new FloodProtector(); } return _instance; } // ========================================================= // Data Field private FastMap<Integer, Integer[]> _floodClient; // ========================================================= // reuse delays for protected actions (in game ticks 1 tick = 100ms) private static final int[] REUSEDELAY = new int[] { 4, 42, 42, 16, 100, 10, 20 }; // protected actions public static final int PROTECTED_USEITEM = 0; public static final int PROTECTED_ROLLDICE = 1; public static final int PROTECTED_FIREWORK = 2; public static final int PROTECTED_ITEMPETSUMMON = 3; public static final int PROTECTED_HEROVOICE = 4; public static final int PROTECTED_MULTISELL = 5; public static final int PROTECTED_SUBCLASS = 6; // ========================================================= // Constructor private FloodProtector() { _log.info("Initializing FloodProtector"); _floodClient = new FastMap<Integer, Integer[]>(Config.FLOODPROTECTOR_INITIALSIZE).setShared(true); } /** * Add a new player to the flood protector (should be done for all players * when they enter the world) * * @param playerObjId */ public void registerNewPlayer(int playerObjId) { // create a new array Integer[] array = new Integer[REUSEDELAY.length]; for (int i = 0; i < array.length; i++) array[i] = 0; // register the player with an empty array _floodClient.put(playerObjId, array); } /** * Remove a player from the flood protector (should be done if player loggs * off) * * @param playerObjId */ public void removePlayer(int playerObjId) { _floodClient.remove(playerObjId); } /** * Return the size of the flood protector * * @return size */ public int getSize() { return _floodClient.size(); } /** * Try to perform the requested action * * @param playerObjId * @param action * @return true if the action may be performed */ public boolean tryPerformAction(int playerObjId, int action) { Entry<Integer, Integer[]> entry = _floodClient.getEntry(playerObjId); if (entry == null) return false; // player just disconnected Integer[] value = entry.getValue(); if (value[action] < GameTimeController.getGameTicks()) { value[action] = GameTimeController.getGameTicks() + REUSEDELAY[action]; entry.setValue(value); return true; } return false; } } well we start from 0 0,1,2,3,4,5,6 6=Subclass here is the times! // reuse delays for protected actions (in game ticks 1 tick = 100ms) private static final int[] REUSEDELAY = new int[] { 4, 42, 42, 16, 100, 10, 20 }; xmmm 0=4 1=42 2=42 3=16 4=100 5=10 6=20 well 4 is Hero Voice Flood Protection, i think HV Protection is 10 second? right? well for subclass add 150(15 second) and remove 20 (2sec) so easy :) Again little UPDATE case 7: // Change Subclass - Action /* * Warning: the information about this subclass will be removed from the * subclass list even if false! */ if (player.modifySubClass(paramOne, paramTwo)) { player.stopAllEffects(); // all effects from old subclass stopped! player.setActiveClass(paramOne); content.append("Change Subclass:<br>Your sub class has been changed to <font color=\"LEVEL\">" + CharTemplateTable.getInstance().getClassNameById(paramTwo) + "</font>."); player.sendPacket(new SystemMessage(SystemMessageId.ADD_NEW_SUBCLASS)); // Subclass added. } else { /* * This isn't good! modifySubClass() removed subclass from memory * we must update _classIndex! Else IndexOutOfBoundsException can turn * up some place down the line along with other seemingly unrelated well in case7(change sub action) go in content.append("Change Subclass:<br>Your sub class has been changed to <font color=\"LEVEL\">" + CharTemplateTable.getInstance().getClassNameById(paramTwo) + "</font>."); this is message when u change sub ^^ Edit it and add your message! EXAMPLE just play with Custom Message,play with color :) to be beuty:) my english is DEAD Soz!
-
ya and atk speed 2k :) 1 i have to say bro, dager with 2k atk speed will get lethal in 5 sec :)
-
i dont have try this server bcause i have gracia client and i cant...anyway but kamael buffs for atkspeed/patk/csped/matk is only 10 sec bro :)....ya better delete thems bcause server with kamael buffs changed time and tattos with status is sh1t unbalanced 100%
-
[SHARE]Gm Shop!! ~ For CT1.5 And CT2 ~
Fogotendx20 replied to Cobra's topic in Server Development Discussion [L2J]
Cobra this is l2emu gmshop :) isent ur shop anyway bro if is your shop 1 i have to say you...play a little with htmls! i mean with buttons...in some button text is bigest from button :D -
my bro another ppl, from your net to conect in your (server) need LAN IP not 127.0.0.1 and in configs dont add local ip but lan ip (your pc ip in local network)
-
sosta :) exeis prosbasi sto pc me klista matia :)
-
Ligo help me afta plx..
Fogotendx20 replied to sabas's question in Request Server Development Help [Greek]
gia to 2o s apadiso! Eclipse Maven kai katevazis kapia Addons sto Eclipse! eiparxoun oloklira posts,me to pos na kanis compile :) psakse! -
[help]pedia help!
Fogotendx20 replied to DaRkWaRs's question in Request Server Development Help [Greek]
o hellbound litourgi 824 nmzio o gracia 851 lipon exoume kai leme! ti noima na to valis 1....999 mipos na benane se gracia server kai apo IL Client! ? emm den ginete :) -
1on esei max exeis l2j :) 2on pigne DB kai rithmise ta privelegies,ola ta privelegies einai rithmismena sto 100 alakse merika...afto p enoo einai oti an thes kapion GM xoris full priv.... aplos valtou alo acces lvl! oxi 100 oute 200 px 70 o GM Aftos bori na ekteli dikeomata sta opoia esei exeis orisi ton arithmo 70! anyway ta poume msn! exo kai poli dulia man den poli asxoloume tora teleftea!
-
well this changet :), use flood protection now! well go /gameserver/util/FloodProtector.java this is ur code,or smthink like this! a part of code! // protected actions public static final int PROTECTED_USEITEM = 0; public static final int PROTECTED_ROLLDICE = 1; public static final int PROTECTED_FIREWORK = 2; public static final int PROTECTED_ITEMPETSUMMON = 3; public static final int PROTECTED_HEROVOICE = 4; public static final int PROTECTED_DROPITEM = 6; Add public static final int PROTECTED_SUBCLASS = 5; 2nd STEP go /gameserver/model/actor/instance/L2VillageMasterInstance.java in imports add this import com.l2jfree.gameserver.util.FloodProtector; And Before This player.setActiveClass(paramOne); content.append("Change Subclass:<br>Your active sub class is now a <font color=\"LEVEL\">" Add This /* * DrHouse: Despite this is not 100% retail like, it is here to avoid some exploits during subclass changes, specially * on small servers. TODO: On retail, each village master doesn't offer any subclass that is not given by itself so player * always has to move to other location to change subclass after changing previously. Thanks Aikimaniac for this info. */ if (!FloodProtector.getInstance().tryPerformAction(player.getObjectId(), FloodProtector.PROTECTED_SUBCLASS)) { _log.warn("Player "+player.getName()+" has performed a subclass change too fast"); return; } ps: code dont checked from me, i dont know if it work 100% well for help go http://l2jfree.com:8060/browse/l2jfree/trunk/l2jfree-core/src/main/java/com/l2jfree/gameserver/util/FloodProtector.java?r1=4558&r2=4677 http://l2jfree.com:8060/browse/l2jfree/trunk/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2VillageMasterInstance.java?r1=4672&r2=4677
-
sto gracia exei alaksi to sistima! ali sira exoun dances/song ali sira normal buffs/pets/etc!
-
[Share]Morph NPCs to PCs(Players)
Fogotendx20 replied to fdLP.'s topic in Server Shares & Files [L2J]
gz very good job i was lookink for this! -
akouse me kai esei kai oli edw mesa! egw @@ den tha gino san esas..... exoume edo merikous donator kai les kai einai tpt! o kathe enas bori na gini! lipon epidi den tha katso na xalaso lefta gia mia mkia kai misi ,eiste eleftheri gia ban/-karma oti thelete aplos na kserete ston moutso m :) kai me mena tha eiste oli ok edw mesa na min akousete panagies! kai to war den ksekinise apo mena :) esei filaraki mathe mia zoi na s lene mlkies kai na tis dexese :) ego mlkies den dexome :) SIMBOULI: DIABASTE KALA TIS EROTISIS META APDISTE AII SIXTIR PIA .......akouse me kala anikse to mialo kala......AFTA TA NPC IPARXOUN OK? DEN KSERO POS LEGODE KAI THELO NA MATHO ? P TO PROBLEM...NAI EINAI APO PHOTO TA THES ZODANA NA SOU XOREBOUN STIN OTHONI?
-
[help]Problem with newbies :S
Fogotendx20 replied to dem0x`'s question in Request Server Development Help [L2J]
this problem fixed i think check for 1.2.3 and download again datapack (the problem was in SQL Files) (in this pack 1.2.2) -
vsika cobra den enousa afto ala anyway, to pedi eipe oti den ftiaxnode ...malon tha nmizi oti einai SQL Shop :) tha psaxni DB : )) file pigene multisell/kai vres ta xml files kai anikse ta me notepad :) so easy ps: hmm ida tin apdaisi s :P telika piges multisell :)) my friend den ftani mono i alagi multisell in game kane //reload_multisell, na fortosis tis alages :)
-
:)) einai multisell :) oso gia bugs den to nmizo :)) ala pote den kseris bori na exo ksexasi kana mideniko
-
1st cant log from host in NO-IP Servers, example u cant write myserver.no-ip.biz and to conect 1: go http://www.selfseo.com/find_ip_address_of_a_website.php and write NO-IP Adres,u will get ip in numbers (this way is sh1t bcause ip change all time) 2: make a patch open l2.ini and add in line ServerAdress:myserver.no-ip.biz encrypt it and share it in your site :)
-
1on epidi to l2emu einai gia ta baza! anyway dose m msn na sto ftiakso! 2on 2 fores katevasa l2emu pack! kai to 1 diafere apo to alo stin core....os pros ta imports e ti na po oreo pack! den ksero an kseris tpt apo l2j ala as s doso ena mikro guide edw...ahhhhhhhhhhhh pare to 9999_NPCBuffer kai valto sto scripts/custom/(mesa ston fakelo custom) pare to 40006.html kai valtin html/defaul(mesa ston default) pigene data/script.cgf (anikse to script.cgf) kai vale afto (custom/9999_NPCBuffer/__init__.py sto telos tis selida opou einai kai ta ala customs anikse SQL Manager (Navicat) kai kane add to npc! trekse ton server....kai ola tha einai ok......apoki kai pera to ti kanis lathos den boro na ksero :) afta einai ta imports tou l2emu.....ala opos eipa to l2emu einai sh1t eiparxi periptosi na exeis l2emu me tin domi tou l2j dld diaforetika import.......an den kani AFTO http://www.4shared.com/file/65299507/60d27fed/NPCBuffer_L2Emu.html DOKIMASE AFTO http://www.4shared.com/file/66021754/496cac14/L2J_Npc_Buffer.html import sys from net.l2emuproject.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from net.l2emuproject.gameserver.datatables import SkillTable from net.l2emuproject import L2DatabaseFactory from net.l2emuproject.gameserver.model.quest import State from net.l2emuproject.gameserver.model.quest import QuestState from net.l2emuproject.gameserver.model.quest.jython import QuestJython as JQuest PS: Eida to post tou stefoulis kai vrika merika lathaki : 1: i diadromi einai (data.scripts.custom) kai oxi (data.jscripts.custom) __import__('data.jscript.custom.'+name,globals(), locals(), ['__init__'], -1) 2: afto to guide einai gia l2j c6 packs! gia ct1+ exei alaksi den kanis imports etc ala pas script.cgf kai vazis afto : custom/9999_NPCBuffer/__init__.py PS2: Lathaki os pros ct1+ install gia c6 etsi einai!
-
[Share] Hellbound GM Shop
Fogotendx20 replied to TheSoN's topic in Server Development Discussion [Greek]
blasta vale kai kamia ss :p anyway :) ala afto p eipes miaxara bugs bori na exei kai afto kai malista den se proidopi stin consola :) -
[help]Problem with newbies :S
Fogotendx20 replied to dem0x`'s question in Request Server Development Help [L2J]
this happened and l2jfree :D well.....l2emu is l2j copy :)) u must download older version or w8 for new version :) -
MAVEN PROGRAM...IT's The 1st Time That I Saw ThaT!OMG!
Fogotendx20 replied to sτrίkε-'s question in Request Server Development Help [L2J]
1. download a maven 2.0.1 :)....and instal plugins!(or reinstall plugins) 2. pres to + and remove ( Maven POM Editor.)look in photo 3.u will get problem in install m2plugin! u must remove (( Maven POM Editor.)) -
vsika afto to site (ucoz) exei problimataki me ta cutenews ama den to piraksis apo default einai rithmismena na bori opoiosdipote na ta piraksi :D ucoz kai kurafeksala :) ala exei kapia orea skin :)


