Rizlaaa
Members-
Posts
362 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Rizlaaa
-
[Ultimate Guide]L2J Develop
Rizlaaa replied to Fanky's topic in Server Development Discussion [Greek]
το να γνωριζεις καποιες μεθοδους της L2J δεν ειναι τιποτα , μπορεις να πας στο L2PcInstance και να βρεις παρα πολλες. Το θεμα με σενα ειναι οτι σκεφτεσαι την Java μονο σαν L2 και οχι σαν γενικη γλωσσα προγραμματισμου. Διαβασε tutorials στο internet(Οχι για L2JAVA αλλα για Java) , μαθε τη βασικη συνταξη της Java και μετα θα καταλαβαινεις κωδικες , θα μπορεις να κανεις δικες σου μεθοδους , και ετσι. -
[Ultimate Guide]L2J Develop
Rizlaaa replied to Fanky's topic in Server Development Discussion [Greek]
Ωραιος τρελε , πιστευω θα βοηθησει τους new , ειδικα στο τελος γιατι αγοραζουνε κατι μουφες και μετα παραπονιουνται. 8) -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
activeChar.deleteMe(); activeChar.sendPacket(new LeaveWorld()); σβησε αυτες τις σειρες αν δε θες να τρως exit. -
Well i looked deeper here. scheduleGeneral() executes the run() method only 1 time , to make it to happen every day(without server restart) make something for it. I made this: A different method to read the time needs from when run() executes to the other day. private static long getT(){ Calendar c = Calendar.getInstance(); if(c.get(Calendar.DAY_OF_WEEK) == 7) c.set(Calendar.DAY_OF_WEEK, 1); else c.set(Calendar.DAY_OF_WEEK, c.get(Calendar.DAY_OF_WEEK) + 1); c.set(Calendar.HOUR_OF_DAY, 19); c.set(Calendar.MINUTE, 25); long ms = c.getTimeInMillis(); long left = ms - System.currentTimeMillis(); return left; } And at the run() method , i add ThreadPoolManager.getInstance().scheduleGeneral(new Task(), getT()); Task() is one class for test. So that's create something like loop to happen again and again. Here is the code i made to test it: package net.sf.l2j.gameserver.model; import java.util.Calendar; import net.sf.l2j.gameserver.Announcements; import net.sf.l2j.gameserver.ThreadPoolManager; public class Iratus{ private static Iratus _instance; class Task implements Runnable{ public void run(){ Announcements.getInstance().announceToAll("Time:&"); ThreadPoolManager.getInstance().scheduleGeneral(new Task(), getT()); } } public static Iratus getInstance() { if(_instance == null) _instance = new Iratus(); return _instance; } private Iratus(){ ThreadPoolManager.getInstance().scheduleGeneral(new Task(), getTime()); } private static long getT(){ Calendar c = Calendar.getInstance(); if(c.get(Calendar.DAY_OF_WEEK) == 7) c.set(Calendar.DAY_OF_WEEK, 1); else c.set(Calendar.DAY_OF_WEEK, c.get(Calendar.DAY_OF_WEEK) + 1); c.set(Calendar.HOUR_OF_DAY, 19); c.set(Calendar.MINUTE, 25); long ms = c.getTimeInMillis(); long left = ms - System.currentTimeMillis(); return left; } private static long getTime(){ Calendar c = Calendar.getInstance(); c.set(Calendar.HOUR_OF_DAY, 19); c.set(Calendar.MINUTE, 25); long ms = c.getTimeInMillis(); long timeLeft = ms - System.currentTimeMillis(); return timeLeft; } } See it and tell me if i am correct.
-
WTS [WTS]L2J Interlude Protection
Rizlaaa replied to Ta®oS™'s topic in Marketplace [L2Packs & Files]
Not from you for sure or maybe fake. Bye.. -
Making a thread executing every 1 hour and when hour is 22:00 for example then do what you want is a bad way?
-
http://maxcheaters.com/forum/index.php?topic=237353.0 I did something like this , but anyway can you test it please? ( I would , but i formatted my pc before some minutes) . If it works it will help many people(and me), not only to have this code, but to know how to make seeral things happen an hour they want.
-
[Share]You Cant Logout While Enchanting
Rizlaaa replied to Ta®oS™'s topic in Server Shares & Files [L2J]
totally useless. i understand that you are new , but learn to make usefull scripts. these are just some checks that will never help. -
{HELP}PC Bang Points
Rizlaaa replied to M@n80$'s question in Request Server Development Help [Greek]
το εχει στα configs σου σαν επιλογη. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
### Eclipse Workspace Patch 1.0 #P Chr.6GMS Index: java/net/sf/l2j/gameserver/model/PcBangEvent.java =================================================================== --- java/net/sf/l2j/gameserver/model/PcBangEvent.java (revision 0) +++ java/net/sf/l2j/gameserver/model/PcBangEvent.java (revision 0) @@ -0,0 +1,137 @@ +/* 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; + +import java.util.Collection; + +import net.sf.l2j.gameserver.Announcements; +import net.sf.l2j.gameserver.ThreadPoolManager; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.util.Rnd; +import javolution.util.FastList; + +/** + * + * @author iracundus + */ +public class PcBangEvent +{ + private FastList<L2PcInstance> playersBangs = new FastList<L2PcInstance>(); + private boolean canStart = false; + + private PcBangEvent() + { + ThreadPoolManager.getInstance().scheduleEffectAtFixedRate(new Event(), 10800000, 10800000); + } + + private class Event implements Runnable{ + public void run() + { + checkPlayers(); + broadCastInfo(); + if(canStart == true) + { + waitSeconds(25); + progressEvent(); + } + endEvent(); + } + } + + private void checkPlayers() + { + Collection<L2PcInstance> allPlayers = L2World.getInstance().getAllPlayers(); + + + for(L2PcInstance player : allPlayers) + { + if(player == null || player.getPcBangScore() < 1000) + continue; + + playersBangs.add(player); + } + } + + private void broadCastInfo() + { + if(playersBangs.isEmpty() || playersBangs.size() == 1){ + canStart = false; + Announcements.getInstance().announceToAll("Pc Bang Event Cancelled due to no registrations"); + return; + } + + for(L2PcInstance player : playersBangs){ + if(player == null) + continue; + + canStart = true; + player.sendMessage("You are in the pc bang event now , in 25 seconds winner will be announced"); + } + } + + private void progressEvent() + { + //select the lucky player + + L2PcInstance lucky = playersBangs.get(Rnd.get(playersBangs.size())); + + if(lucky == null) + return; + + lucky.sendMessage("You are the winner!"); + lucky.addPcBangScore(100000000); + } + + private void endEvent(){ + if(playersBangs.isEmpty() == false) + playersBangs.clear(); + + canStart = false; + + Announcements.getInstance().announceToAll("Pc Bang Event Ended"); + } + + private void waitSeconds(int seconds){ + long start,end; + + start = System.currentTimeMillis(); + end = start * 1000; + end *= seconds; + + while(System.currentTimeMillis() < end){ + + } + } + + private PcBangEvent getInstance(){ + return SingletonHolder._instance; + } + + @SuppressWarnings("synthetic-access") + private static class SingletonHolder + { + protected static final PcBangEvent _instance = new PcBangEvent(); + } + + public static void main(String[] args) + { + PcBangEvent e = new PcBangEvent(); + + e.getInstance(); + } +} Waiting. -
[Gr][Idea] Java Code (Pc Bang Points)
Rizlaaa replied to ExCaLiBuR®'s question in Request Server Development Help [Greek]
ειναι ευκολο να γινει , θα το κανω share αυριο στο Topic μου ολοκληρο τον κωδικα. Εδω: http://maxcheaters.com/forum/index.php?topic=236702.75 -
You just trolled , congratulations.
-
Ζητηθηκε απο εναν φιλο. Day's Pvp Master Καθε μερα οταν αρχιζει η ολυμπιαδα , αυτος που εχει παρει τα πιο πολλα pvp απο τη στιγμη που τελειωσε η προηγουμενη περιοδος γινεται Pvp Master της ημερας.Ο Pvp Master εχει τα εξης πλεονεκτηματα: 1)Announce οταν μπαινει 2)Color name , title name 3)Πλεονεκτημα στο pvp: Οταν παρει 4 pvp στη σειρα , γεμιζει full hp,cp,mp. Την επομενη μερα αφου αρχισει η ολυμπιαδα βγενει αυτος απο Pvp Master και εκλεγεται αυτοματα καινουριος. Για pvp σερβερ ειναι ωραιο πιστευω. Core: ### Eclipse Workspace Patch 1.0 #P Chr.6GMS Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 5263) +++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (working copy) @@ -272,6 +272,13 @@ sendPacket(new PledgeShowMemberListAll(activeChar.getClan(), activeChar)); sendPacket(new PledgeStatusChanged(activeChar.getClan())); } + + if(activeChar.isPvpMaster()){ + Announcements.getInstance().announceToAll("Day's pvp master "+activeChar.getName()+" is now Online."); + activeChar.getAppearance().setNameColor(0xFFFF); + activeChar.getAppearance().setTitleColor(0xFFFF); + + } if (activeChar.isAlikeDead()) { Index: java/net/sf/l2j/gameserver/Olympiad.java =================================================================== --- java/net/sf/l2j/gameserver/Olympiad.java (revision 5263) +++ java/net/sf/l2j/gameserver/Olympiad.java (working copy) @@ -46,6 +46,7 @@ import net.sf.l2j.gameserver.datatables.HeroSkillTable; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.instancemanager.OlympiadStadiaManager; +import net.sf.l2j.gameserver.model.DayPvp; import net.sf.l2j.gameserver.model.Inventory; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.L2Party; @@ -597,6 +598,8 @@ { if (isOlympiadEnd()) return; + + DayPvp.newPvpMaster(); _inCompPeriod = true; OlympiadManager om = new OlympiadManager(); Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 5263) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -214,8 +214,8 @@ private static final String RESTORE_SKILL_SAVE = "SELECT skill_id,skill_level,effect_count,effect_cur_time, reuse_delay FROM character_skills_save WHERE char_obj_id=? AND class_index=? AND restore_type=? ORDER BY buff_index ASC"; private static final String DELETE_SKILL_SAVE = "DELETE FROM character_skills_save WHERE char_obj_id=? AND class_index=?"; - private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,str=?,con=?,dex=?,_int=?,men=?,wit=?,face=?,hairStyle=?,hairColor=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,clanid=?,maxload=?,race=?,classid=?,deletetime=?,title=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,in_jail=?,jail_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,last_recom_date=?,lvl_joined_academy=?,apprentice=?,sponsor=?,varka_ketra_ally=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=? WHERE obj_id=?"; - private static final String RESTORE_CHARACTER = "SELECT account_name, obj_Id, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, acc, crit, evasion, mAtk, mDef, mSpd, pAtk, pDef, pSpd, runSpd, walkSpd, str, con, dex, _int, men, wit, face, hairStyle, hairColor, sex, heading, x, y, z, movement_multiplier, attack_speed_multiplier, colRad, colHeight, exp, expBeforeDeath, sp, karma, pvpkills, pkkills, clanid, maxload, race, classid, deletetime, cancraft, title, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, in_jail, jail_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level FROM characters WHERE obj_id=?"; + private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,str=?,con=?,dex=?,_int=?,men=?,wit=?,face=?,hairStyle=?,hairColor=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,clanid=?,maxload=?,race=?,classid=?,deletetime=?,title=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,in_jail=?,jail_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,last_recom_date=?,lvl_joined_academy=?,apprentice=?,sponsor=?,varka_ketra_ally=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=?,daypvp=?,pvpmaster=? WHERE obj_id=?"; + private static final String RESTORE_CHARACTER = "SELECT account_name, obj_Id, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, acc, crit, evasion, mAtk, mDef, mSpd, pAtk, pDef, pSpd, runSpd, walkSpd, str, con, dex, _int, men, wit, face, hairStyle, hairColor, sex, heading, x, y, z, movement_multiplier, attack_speed_multiplier, colRad, colHeight, exp, expBeforeDeath, sp, karma, pvpkills, pkkills, clanid, maxload, race, classid, deletetime, cancraft, title, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, in_jail, jail_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,daypvp,pvpmaster FROM characters WHERE obj_id=?"; private static final String RESTORE_CHAR_SUBCLASSES = "SELECT class_id,exp,sp,level,class_index FROM character_subclasses WHERE char_obj_id=? ORDER BY class_index ASC"; private static final String ADD_CHAR_SUBCLASS = "INSERT INTO character_subclasses (char_obj_id,class_id,exp,sp,level,class_index) VALUES (?,?,?,?,?,?)"; private static final String UPDATE_CHAR_SUBCLASS = "UPDATE character_subclasses SET exp=?,sp=?,level=?,class_id=? WHERE char_obj_id=? AND class_index =?"; @@ -347,6 +347,8 @@ /** The number of player killed during a PvP (the player killed was PvP Flagged) */ private int _pvpKills; + + private int _daypvp; /** The PK counter of the L2PcInstance (= Number of non PvP Flagged player killed) */ private int _pkKills; @@ -451,6 +453,7 @@ private boolean _noble = false; private boolean _hero = false; + private boolean _pvpmaster = false; /** The L2FolkInstance corresponding to the last Folk wich one the player talked. */ private L2FolkInstance _lastFolkNpc = null; @@ -679,6 +682,8 @@ private int _engageid = 0; private boolean _marryrequest = false; private boolean _marryaccepted = false; + + private int masterkills = 0; // Current force buff this caster is casting to a target protected ForceBuff _forceBuff; @@ -1891,6 +1896,14 @@ { _pvpKills = pvpKills; } + + public void setDayPvp(int dayPvp){ + _daypvp = dayPvp; + } + + public int getDayPvp(){ + return _daypvp; + } /** * Return the ClassId object of the L2PcInstance contained in L2PcTemplate.<BR><BR> @@ -4176,6 +4189,8 @@ { pk.kills.add(getName()); } + + masterkills = 0; // Clear resurrect xp calculation setExpBeforeDeath(0); @@ -4448,6 +4463,23 @@ { // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); + + if(isPvpMaster()) + masterkills++; + + switch(masterkills){ + case 4: + getStatus().setCurrentCp(getMaxCp()); + getStatus().setCurrentHp(getMaxHp()); + getStatus().setCurrentMp(getMaxMp()); + sendMessage("You rewarded with full hp,cp,mp cause of your pvp master's ability"); + masterkills = 0; + break; + default: + ; + } + + setDayPvp(getDayPvp() + 1); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); @@ -5463,7 +5495,7 @@ "movement_multiplier,attack_speed_multiplier,colRad,colHeight," + "exp,sp,karma,pvpkills,pkkills,clanid,maxload,race,classid,deletetime," + "cancraft,title,accesslevel,online,isin7sdungeon,clan_privs,wantspeace," + - "base_class,newbie,nobless,power_grade,last_recom_date) " + + "base_class,newbie,nobless,power_grade,last_recom_date,daypvp,pvpmaster) " + "values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"); statement.setString(1, _accountName); statement.setInt(2, getObjectId()); @@ -5595,6 +5627,8 @@ player.setOnlineTime(rset.getLong("onlinetime")); player.setNewbie(rset.getInt("newbie")==1); player.setNoble(rset.getInt("nobless")==1); + player.setPvpMaster(rset.getInt("pvpmaster")==1); + player.setDayPvp(rset.getInt("daypvp")); player.setClanJoinExpiryTime(rset.getLong("clan_join_expiry_time")); if (player.getClanJoinExpiryTime() < System.currentTimeMillis()) @@ -6059,7 +6093,9 @@ statement.setLong(54, getClanCreateExpiryTime()); statement.setString(55, getName()); statement.setLong(56, getDeathPenaltyBuffLevel()); - statement.setInt(57, getObjectId()); + statement.setInt(57, getDayPvp()); + statement.setInt(58, isPvpMaster() ? 1 : 0); + statement.setInt(59, getObjectId()); statement.execute(); statement.close(); @@ -8214,6 +8250,14 @@ } return true; } + + public boolean isPvpMaster(){ + return _pvpmaster; + } + + public void setPvpMaster(boolean t){ + _pvpmaster = t; + } public boolean isNoble() { Index: java/net/sf/l2j/gameserver/model/DayPvp.java =================================================================== --- java/net/sf/l2j/gameserver/model/DayPvp.java (revision 0) +++ java/net/sf/l2j/gameserver/model/DayPvp.java (revision 0) @@ -0,0 +1,95 @@ +/* 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; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; + +import net.sf.l2j.L2DatabaseFactory; +import net.sf.l2j.gameserver.Announcements; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +/** + * + * @author Iracundus + */ +public class DayPvp +{ + + public static void newPvpMaster(){ + + int masterId = 0; + Connection con = null; + PreparedStatement state = null; + ResultSet rset = null; + + try{ + con = L2DatabaseFactory.getInstance().getConnection(); + state = con.prepareStatement("SELECT obj_Id,daypvp FROM characters ORDER BY daypvp DESC LIMIT 1;"); + rset = state.executeQuery(); + if(rset.next()) + masterId = rset.getInt(1); + + if(masterId == 0) + return; + + state.close(); + rset.close(); + + for(L2PcInstance p : L2World.getInstance().getAllPlayers()){ + if(p.getObjectId() == masterId) + { + p.getAppearance().setNameColor(0xFFFF); + p.getAppearance().setTitleColor(0xFFFF); + + p.sendMessage("You are the pvp master today"); + p.setPvpMaster(true); + + p.broadcastUserInfo(); + + Announcements.getInstance().announceToAll("Day's Pvp Master is : "+p.getName()); + } + } + + state = con.prepareStatement("UPDATE characters SET pvpmaster=1 WHERE obj_Id=?"); + state.setInt(1, masterId); + state.execute(); + state.close(); + + state = con.prepareStatement("UPDATE characters SET daypvp=0,pvpmaster=0 WHERE obj_Id!=?"); + state.setInt(1, masterId); + state.execute(); + state.close(); + } + catch(Exception e){ + e.printStackTrace(); + } + finally{ + try + { + con.close(); + } + catch (SQLException e) + { + e.printStackTrace(); + } + } + } +} Data: ### Eclipse Workspace Patch 1.0 #P Chr.6DTP Index: sql/characters.sql =================================================================== --- sql/characters.sql (revision 8778) +++ sql/characters.sql (working copy) @@ -79,6 +79,8 @@ clan_join_expiry_time DECIMAL(20,0) NOT NULL DEFAULT 0, clan_create_expiry_time DECIMAL(20,0) NOT NULL DEFAULT 0, death_penalty_level int(2) NOT NULL DEFAULT 0, + daypvp decimal(11,0) default NULL, + pvpmaster decimal(1,0) NOT NULL DEFAULT 0, PRIMARY KEY (obj_Id), KEY `clanid` (`clanid`) ) ; Credits: Me
-
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
Μιλα ελληνικα η μην γραφεις καθολου , εξηγησε το καλα.Explain it and speak greek , if you are not greek, dont write here. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
ALL , ναι. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
ασχολουμαι μονο με c6 προς το παρον. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
τι ακριβως χρειαζεσαι , αν ειναι ακυρο απο το θεμα που αφορα το topic κανε με pm,θελω να κρατησω το τοπικ οσο καθαροτερο γινεται. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
αυτο ειναι default σε μενα παντως, γινεται ηδη. Καποιος ζητησε οταν κανεις enchant να γραφει αφου πατησουν το scroll , με ποσο % πιθανοτητα εσπασε ή με ποσο πετυχε. Λοιπον, ### Eclipse Workspace Patch 1.0 #P Chr.6GMS Index: java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java =================================================================== --- java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java (revision 5263) +++ java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java (working copy) @@ -207,7 +207,9 @@ && item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL)) chance = 100; - if (Rnd.get(100) < chance) + int currentChance = Rnd.get(100); + + if (currentChance < chance) { synchronized(item) { @@ -237,6 +239,7 @@ } item.setEnchantLevel(item.getEnchantLevel()+1); item.updateDatabase(); + activeChar.sendMessage("Successfully enchanted, with "+currentChance+"% success"); } } else @@ -245,6 +248,7 @@ { if (item.getEnchantLevel() > 0) { + activeChar.sendMessage("Enchant failed, with "+currentChance+"% rate"); sm = new SystemMessage(SystemMessageId.ENCHANTMENT_FAILED_S1_S2_EVAPORATED); sm.addNumber(item.getEnchantLevel()); sm.addItemName(item.getItemId()); @@ -252,6 +256,7 @@ } else { + activeChar.sendMessage("Enchant failed, with "+currentChance+"% rate"); sm = new SystemMessage(SystemMessageId.ENCHANTMENT_FAILED_S1_EVAPORATED); sm.addItemName(item.getItemId()); activeChar.sendPacket(sm); @@ -259,6 +264,7 @@ } else { + activeChar.sendMessage("Enchant failed, with "+currentChance+"% rate"); sm = new SystemMessage(SystemMessageId.BLESSED_ENCHANT_FAILED); activeChar.sendPacket(sm); } -
Osoi Psinontai As Koitaksoun Edw!!
Rizlaaa replied to Dimitris22's question in Request Server Development Help [Greek]
ο krash απαντησε στο παιδι μια χαρα . Θα μπορουσατε να πειτε τη γνωμη σας και να του εξηγησετε μερικα πραγματα απο το να λετε οτι μαλακια σας κατεβει και να κοροιδευετε, δεν ειναι ολοι εμπειροι και προ σαν και εσας ξερετε. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
tested, δουλευει . οταν ο παικτης αλλαζει το οπλο που ειναι aygment , το buff φευγει. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
### Eclipse Workspace Patch 1.0 #P Chr.6GMS Index: java/net/sf/l2j/gameserver/model/L2Character.java =================================================================== --- java/net/sf/l2j/gameserver/model/L2Character.java (revision 5263) +++ java/net/sf/l2j/gameserver/model/L2Character.java (working copy) @@ -5143,8 +5143,11 @@ // Add Func objects of newSkill to the calculator set of the L2Character addStatFuncs(newSkill.getStatFuncs(null, this)); @@ -5180,8 +5183,10 @@ L2Skill oldSkill = _skills.remove(skill.getId()); // Remove all its Func objects from the L2Character calculator set - if (oldSkill != null) + if (oldSkill != null){ removeStatsOwner(oldSkill); + stopSkillEffects(oldSkill.getId()); + } return oldSkill; } πιστευω πως θα λειτουργει. -
That's what he want to say. Changing imports doesn't mean rework, rework means that someone fixed something that wasn't working (correctly).And at least he should give credits.
-
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
φιλε μ υποτιθεται θες κανα unique skill, tetoio σκιλλ υπαρχει ηδη που το εχει ο GS. το ονομα που διαφευγει . -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
αναλογα και το τι θες να κανει , αλλα ευκολα αλλα δυσκολα. πες μ τι ακριβως θες να κανει και θα σου πω, ετσι δε μπορω. -
[Discussion]Κάντε request java mods
Rizlaaa replied to Rizlaaa's topic in Server Development Discussion [Greek]
δεν ασχολουμαι με client edit , το code βεβαια ( το τι θα κανουν τα σκιλλ ) μπορω να το κανω.
