-
Posts
8,941 -
Credits
0 -
Joined
-
Last visited
-
Days Won
25 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by SweeTs
-
Source aCis - another CRAPPY interlude server
SweeTs replied to Tryskell's topic in Server Shares & Files [L2J]
Problem is that, aCis is not 'free' anymore (for those who don't want to work/help), they have to 'work' for sources while they could get it for free before 'contribute2play' system :P What a shame :D -
Source aCis - another CRAPPY interlude server
SweeTs replied to Tryskell's topic in Server Shares & Files [L2J]
No work, no cookies. You have to give 'something' in order to 'take'. Simple like that :P -
[Share]New HOPZONE vote reward system
SweeTs replied to LordOfDarkness's topic in Server Shares & Files [L2J]
Well, if you want original credits, so here you go. Originally it was made by Rain, then modified(?) by Zoey and it was for Freya. Hazzard (aCis forum member) adapted it for aCis, and then another aCis's member Fire, fixed the code to fit with current Hopzone. That's the story :) -
Sorry Darth :( Good luck with sell and I trust it's way better :D
-
[REQUEST]New hopzone votereward system.
SweeTs replied to LordOfDarkness's question in Request Server Development Help [L2J]
Here you go :D /* * This is a script completely developed by Rain^ (?) * You are not allowed to sell any copies of it. * Since 2.0 (by Zoey76 for L2J Forums): * Added logger instead of System.out.println() * Moved to Datapack. * Reworked AutoReward class. * Reworked getVotes() method. * Time is in minutes instead of milliseconds. * Uses different a-beep-t for each item. * Only rewards online players, not offline shops. * Rewarded players count. */ package custom.VoteEngine; import java.io.*; import java.net.*; import java.util.Collection; import java.util.logging.Level; import java.util.logging.Logger; import net.sf.l2j.gameserver.Announcements; import net.sf.l2j.gameserver.ThreadPoolManager; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * @author Zoey76 * @version 2.0 */ public class AutoVoteRewardHandler { protected static final Logger _log = Logger.getLogger(AutoVoteRewardHandler.class.getName()); //URL from your server site at HopZone.net //Example: [url=http://l2.hopzone.net/lineage2/moreinfo/YourServer/ID.html]http://l2.hopzone.net/lineage2/moreinfo/YourServer/ID.html[/url] private final static String _url = "http://l2.hopzone.net/lineage2/moreinfo/L2WorldPvP/74078.html";//Add your URL from HopZone here! //Reward all online players each '_votesRequiredForReward' votes. private final int _votesRequiredForReward = 1;// //Initial check, time in minutes: //Default: 1 minute private final int initialCheck = 1; //Delay interval, time in minutes (do not set it too low): //Default: 10 minutes private final int delayForCheck = 1; //Item Id, A-beep-t. private final static int[][] ITEMs = { { 5575, 10 }, //10 Event - Apiga(s) { 57, 1000000 }, //1 million Adena }; //Do not change private int _lastVoteCount = 0; private AutoVoteRewardHandler() { _log.info("[AutoVoteRewardHandler]: Vote Reward System Initiated."); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck * 60000, delayForCheck * 60000); } private class AutoReward implements Runnable { public void run() { int votes = getVotes(); int rewardedPlayers = 0; if (votes > -1) { if ((getLastVoteCount() != 0) && (votes >= (getLastVoteCount() + _votesRequiredForReward))) { Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); for (L2PcInstance player : pls) { if ((player != null) && !player.getClient().isDetached()) { for (int[] reward : ITEMs) { if (player.getInventory().validateCapacityByItemId(reward[0])) { player.addItem("reward", reward[0], reward[1], player, true); } } rewardedPlayers++; } } setLastVoteCount(getLastVoteCount() + _votesRequiredForReward); } else if (getLastVoteCount() == 0) { setLastVoteCount(votes); } _log.info("[AutoVoteRewardHandler]: Server Votes: " + votes + ", Rewarded players: " + rewardedPlayers); Announcements.getInstance().announceToAll("Server Votes: " + votes + " | Next Reward on " + (getLastVoteCount() + _votesRequiredForReward) + " votes!"); } else { _log.log(Level.WARNING, "[AutoVoteRewardHandler]: Error retreiving server votes count!"); } } } private static int getVotes() { InputStreamReader isr = null; BufferedReader in = null; int votes = -1; try { URLConnection conn = new URL(_url).openConnection(); conn.addRequestProperty("User-Agent", "Mozilla/4.76"); isr = new InputStreamReader(conn.getInputStream()); in = new BufferedReader(isr); String inputLine; while (((inputLine = in.readLine()) != null) && (votes == -1)) { if (inputLine.contains("Anonymous User Votes")) { try { votes = Integer.valueOf(inputLine.split(">")[2].replace("</span", "")); } catch (Exception e) { } } } in.close(); } catch (Exception e) { _log.log(Level.WARNING, "[AutoVoteRewardHandler]: " + e.getMessage(), e); } return votes; } private void setLastVoteCount(int voteCount) { _lastVoteCount = voteCount; } private int getLastVoteCount() { return _lastVoteCount; } public static AutoVoteRewardHandler getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); } public static void main(String[] args) { //System.out.println("Server votes: " + getVotes());//Just a test. AutoVoteRewardHandler.getInstance(); } } -
Well, its based on old aCis sources, so originally it's for interlude and like livogro said, you can adapt it for any chron, and yup it's tested. Also, there isn't any config :)
-
Use SkillXML will be way faster, just you need skills ID.
-
[SHARE]CounterStrike sounds during pvp.
SweeTs replied to Vago's topic in Server Shares & Files [L2J]
Try this + PlaySound _snd = new PlaySound(1, "enemydown", 0, 0, 0, 0, 0); + + Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); + for (L2PcInstance onlinePlayer : pls) + if (onlinePlayer.getClan() != null) + { + if (onlinePlayer.getClan() == pk.getClan() && onlinePlayer != pk) + { + onlinePlayer.sendPacket(_snd); + } + } + -
[Request] Chaos Event Sources
SweeTs replied to livogro's question in Request Server Development Help [L2J]
Mom says, I do :D http://maxcheaters.com/forum/index.php?topic=226854.msg1995796#msg1995796 -
Since some peoples asked for this event and I can't find topic about, so I decided to make new one :) The event is created by An4rchy, so credits goes to him and to Fanky who helped him with super haste part. Based on old aCis sources (86 rev). Description If admin wants, he can press //warnchaos to warn all the players before the event starts. A pop-up html will pop to all online players, warning them with what you want (the html is in: data/html/chaos). When admin presses //startchaos, event starts (there is an announcement and a message to the admin when it starts). Every player will be able to press .joinchaos in order to join the event. After they join, they get black color name and super haste lvl 4 buff (just the buff). Also a message is sent to them. All registered players will be able to fight/kill each other without taking any karma (they can't fight in peace zones). They only take karma if they kill unflagged players that aren't registered in Chaos Event. Their chaos kills, are only increased if they kill players that are in Chaos Event, and they aren't increased if they kill players that are not registered but have flag. Every time they die, and revive, they get super haste lvl 4 again. Any registered player can press .leavechaos to leave the event. But after they leave it, their chaos kills are nullified and super haste buff is removed. They can register again any time (but ofc with 0 kills again). After admin presses //endchaos, the event ends, all players' buffs are removed, the system detects the top 5 killers, and rewards them. Also all players get normal color name and lose super haste buff if they had it. Differences from original Chaos Event [*] It isn't automatic. [*] Every time the players revive, they get super haste, but in retail they die the first time and they don't have it, after they die again they have, after they die again they don't etc. password = Anarchy
-
[HELP]Ressists
SweeTs replied to *ZwntanoiNekroi*'s question in Request Server Development Help [L2J]
Anyway, paste it if you can. -
Are you sure that each drop is from other category (ex. 1,2,3)?
-
Index: /trunk/***/java/com/***/gameserver/handler/AutoVoteRewardHandler.java =================================================================== --- /trunk/***/java/com/***/gameserver/handler/AutoVoteRewardHandler.java +++ /trunk/***/java/com/***/gameserver/handler/AutoVoteRewardHandler.java @@ -235,7 +235,7 @@ while ((inputLine = in.readLine()) != null) { - if (inputLine.contains("moreinfo_total_rank_text")) + if (inputLine.contains("rank anonymous tooltip")) { - votes = Integer.valueOf(inputLine.split(">")[2].replace("</div", "")); + votes = Integer.valueOf(inputLine.split(">")[2].replace("</span", "")); break; }
-
[HELP]Ressists
SweeTs replied to *ZwntanoiNekroi*'s question in Request Server Development Help [L2J]
Paste the code which you added, mby you increased the resistances too much :o -
[Request] Chaos Event Sources
SweeTs replied to livogro's question in Request Server Development Help [L2J]
Check pm :P -
update npc SET title = 'aCis' where id between 1 and 99999; update npc SET serverSideTitle = '1' where id between 1 and 99999; update npc SET serverSideName = '1' where id between 1 and 99999;
-
[Help]Escape and /loc problem
SweeTs replied to lliuke's question in Request Server Development Help [L2J]
MapRegionManager..? -
Exactly like you said. Ppl are so dumb to add whatever they want. They just want ready files to open a server and play with modified chars with their friends and get some money from stupid kids. Now they all, flame/criticize aCis (cuz it's clean), but just share pack/sources with mods inside and they will start to love aCis, i'm pretty sure. 'Reality often surpasses even the most beautiful dream.'
-
Java Virtual Machine error
SweeTs replied to mateo2500's question in Request Server Development Help [L2J]
[PL] Edytuj startGameServer.bat (prawy klik myszki & edit) i zwiększ java -Xmn512m -cp Np. na Xms1024m :P[/PL] -
Source aCis - another CRAPPY interlude server
SweeTs replied to Tryskell's topic in Server Shares & Files [L2J]
Changeset 220 Pets update, misc. Ty to all contributors - Sikken, xblx, Junior, MC. Pets are now normally fixed. [*] when a pet raises level, his stats and HP/MP infos are corrected shown. [*] Fix an issue when you give a name to your pet. [*] Pet control item is now correctly updated, both on name update and pet level raising. Misc [*] Fix 4 skills. [*] Addition of Life Stones in GM shop. [*] Monastery AI sends now only one type of chat, but it is retail-like (better 1 retail than 3 customs). [*] fix 2 teleports location - untested. [*] Addition of a check to see if entered id is a valid NPC template for //polymorph. In addition, you can't transform if you're already mounted. [*] Fix an unvalid SystemMessage. -
Problem with DataBase installer
SweeTs replied to JustBeatIt's question in Request Server Development Help [L2J]
Right click on database_installer --> edit --> fill up set ls/gs-user :) -
Source aCis - another CRAPPY interlude server
SweeTs replied to Tryskell's topic in Server Shares & Files [L2J]
I had a small slip due my #$%^&! eclipse, that why compiled rev has been released y-day :) -
[HELP] Executing Custom Content
SweeTs replied to kitteh's question in Request Server Development Help [L2J]
So go to gameserver\data\xml\items and look how its made and add your custom weps in same way :) -
[HELP] Executing Custom Content
SweeTs replied to kitteh's question in Request Server Development Help [L2J]
Change "INSERT INTO 'custom_weapon' VALUES" to "INSERT INTO 'weapon' VALUES" in your .sql file. -
Source aCis - another CRAPPY interlude server
SweeTs replied to Tryskell's topic in Server Shares & Files [L2J]
Changeset 218 Pets big update, accessories debug, little npc.sql update. Okay, that's it. I'm first sorry for the delay. I was taking a little break trying GoD on EU server (btw my name is Tryskell, /friendinvite me if you see me ingame). I reroll a lot to make a lot of money, enjoy the free exploit... Second, the update is quite "big", even if it's not really awesome. I had to check many things about pets, because they were entirely messed up. I hope the biggest part, if not all bugs, are now corrected. I tested almost all possiblities (force delog, etc) and all seems fine. I had to check aswell the npc.sql Darth sent me. After a couple of checks I had to ask to Darth to split data in 2, because it was really messy (collision system is a little stupid in L2J...). Pets updates. fully fix pet weapons and armors equip, and "race" condition (hatchling/wolf/blabla). I decided to keep the old system as it was really easy to understand it. The core changes automatically the bodypart for "chest" or "r-hand" following type of item. addition of a feature (dunno if it's custom, and don't report because it won't be changed) : if you right click on a pet weapon/armor from YOUR inventory, it automatically TRANSFER && EQUIPS it to your pet's inventory if you got a pet summoned. Previous equipped item is desequipped and stays on pet's inventory.. fully fixed stats modifiers of summons (seriously it was a pure mess, many buffs just did nothing before, pets had 0 accu/evasion). decreased amount of packets sent compared to current L2J (-1 packet per 10sec, and that fix too a minor bug targeting pet window every 10 sec) off-like (if not retail) transfer system at unsummoning pets. Ty SweeTs for the report. Inventories of pets are cleaned at delog/unsummon, transfered to your. There is no check about slots/weight, as it is used for DELOG (and imagine at delog that don't transfer, you lose items lol). fix RequestPetUseItem behavior. Now only one itemhandler is readed (using a pet food you had twice the code readed before o_o). Misc fix the mythic accessory bug aCis got since 100+ revs (about 2 slots accessories). Now all is fine. Enjoy Wizard's Hat. when you pickup arrows and it fits with your bow and you are arrowless, arrows are now automatically equipped. Ty bomj for report. improvement of npc.sql, with the addition of retail decay system. Now all mobs got their particular timer. It debugs mobs like Gigantic Chaos Golem. Only L2Attackable are concerned, as they are the only ones supposed to die. Others use the hardcoded in core as a default, which is 7 secs (still, the sql is correctly filled anyway). Addition of all missing weapons (some can still be wrong, but it should fill a lot of templates). a couple of NPE fixes (itemhandlers).