-
Posts
8,941 -
Credits
0 -
Joined
-
Last visited
-
Days Won
25 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by SweeTs
-
Help Skill Time Change
SweeTs replied to mikemaster's question in Request Server Development Help [L2J]
"SkillXML" on da google and the first link leads to my acc, lol.. http://www.4shared.com/rar/1yIgXMnI/skillxml.html -
Beautifull Npc Collection By Poytsomaxias ;-)
SweeTs replied to FreakbuZz's topic in Server Shares & Files [L2J]
This.. Everywhere the same shitty html.. Server owner should be able to edit godamn htm on his own and make the style he wants to and not just c/p and "done". lmao.. He point out you did a mistake in your htm and you're 'attacking' him.. -
Help One Other Problem...
SweeTs replied to Extreamer's question in Request Server Development Help [L2J]
Still, switch case is better. Case number define the kill count. Anyway :D -
Help One Other Problem...
SweeTs replied to Extreamer's question in Request Server Development Help [L2J]
It is, just put the comboDie at doDie method :P Just noticed if(combo < Config.COMBO1_KILLS) Should be >= since it's not reseted yet. -
Help Double Login Session Bug.
SweeTs replied to kenzoR's question in Request Server Development Help [L2J]
http://trac.l2jserver.com/changeset/6477/ -
Help One Other Problem...
SweeTs replied to Extreamer's question in Request Server Development Help [L2J]
This time ? :dat: -
Help One Other Problem...
SweeTs replied to Extreamer's question in Request Server Development Help [L2J]
-
Help One Other Problem...
SweeTs replied to Extreamer's question in Request Server Development Help [L2J]
Basically yup, I'd go with switch, but well.. You have your own way and that's cool :) I tested you code, and guess what.. It's working fine. Dunno how you tested, but it's working only for the pvp case, not pk :P So, if it's not working for you, you facked the placement of the code. ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 327) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -4012,6 +4012,9 @@ if (isMounted()) stopFeed(); + comboDie(killer); + removeSkill(264); + synchronized (this) { if (isFakeDeath()) @@ -4226,6 +4229,9 @@ // Add PvP point to attacker. setPvpKills(getPvpKills() + 1); + // killing spree + checkCombo(); + // Send UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); } @@ -4245,6 +4251,56 @@ } } + /** Fallen system */ + private int combo = 0; + + private void checkCombo() + { + int i = 0; + combo++; + int combos = 0; + + if(combo == 1) + { + i = 1; + addSkill(SkillTable.getInstance().getInfo(264, 1), false); + combos = 1; + } + else if(combo == 2) + { + i = 2; + addSkill(SkillTable.getInstance().getInfo(264, 110), false); + combos = 2; + } + else if(combo == 3) + { + i = 3; + addSkill(SkillTable.getInstance().getInfo(264, 120), false); + combos = 3; + } + + if(i > 0) + { + sendMessage("You have been rewarded with a skill."); + Broadcast.announceToOnlinePlayers("Player "+getName() + " is in a Combo Mode with " +combos +" pvp kills in a row!"); + } + + i = 0; + combos = 0; + } + + private void comboDie(L2Character killer) + { + if(combo > 1) + Broadcast.announceToOnlinePlayers("Player "+getName() +" has lost his combo of "+combo +" kills by "+killer.getName()); + + combo = 0; + } + public void updatePvPStatus() { if (isInsideZone(ZoneId.PVP)) -
Code Special Share (L2Jfrozen .1004)
SweeTs replied to Joniredbull's topic in Server Shares & Files [L2J]
Check l2jserver timeline for the fix. -
Help One Other Problem...
SweeTs replied to Extreamer's question in Request Server Development Help [L2J]
Well, you can do it with switch, like (some old code) Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 198) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -4530,6 +4531,8 @@ if (isMounted()) stopFeed(); + spreeKills = 0; + synchronized (this) { if (isFakeDeath()) @@ -4788,8 +4803,59 @@ * Increase the pvp kills count and send the info to the player * */ + private int spreeKills = 0; + public void increasePvpKills() { + spreeKills++; + + switch(spreeKills) + { + case 1: + //add skill code and w/e + break; + + case 2: + //add skill code and w/e + break; + + case 3: + //add skill code and w/e + break; + default: + ; + } // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); Well, it's good to put some sendMessage() so you can see if the code is working or not :P -
Devlin sux, everyone knows that.. :P
-
Try adding the code @ rewardSkill() method, before if (Config.AUTO_LEARN_SKILLS) Also, how could that work while you put your code @ doPickupItem() method which has nothing to do with that case :happyforever:
-
When you reach the desired lvl, does you get the msg ? Or nothing from the code is working ? sendMessage("Make sure you reach your level first. " +Config.LEVEL_TO_REWARD+ " .");
-
http://www.maxcheaters.com/topic/180045-l2fow-pack/
-
Code [Npc] Custom Siege Register
SweeTs replied to ExCaLiBuR®'s topic in Server Shares & Files [L2J]
Already shared.. Just "adapted" to frozen ? -
"String value required, but not specified" :D
-
Help Drop Items On Monster
SweeTs replied to Procustration90's question in Request Server Development Help [L2J]
So you did something wrong. -
Changeset 327 GrandBossManager, Misc GrandBossManager - Edit GrandBossManager to use a singleton, to fit with overall project writing style. - "Allowed players" system : - Move the initialization AFTER zones loading (it wasn't making any errors, but the system wasn't working). - Reworked it to simply use .add(, instead to set it using a temporary List. - Use an index system based on zoneId to avoid to search/retrieve current L2GrandBoss zone info on every SQL raw (it's doable since we order the query by ZONE and not by PLAYER anymore). Misc - Fix 2 NPEs on 2 quests, due to Trove drop (Trove was handling null by returning 0, while Java Map simply send null). Ty Root for fix. - Fix a NPE on itemid 8811. Ty sahar for report. - Add skill names on scheme buffer, using kdDer64 buffer graphic style. Also edit the extends in order to be invul. Ty sahar for patch. - Added few missing restock delays on Interlude spellbooks. Ty rebelstrik for report. - Move setPledgeClass() call leading to rank miscalculation for heroes on player restore, ty sahar. - Some Hasha TODO list : - Drop L2Skill._displayId, getter/setter. Replaced by getId(). - getAvailableHenna() is edited from array to List. Drop external null checks, as it is empty at worst. - Rename few packets typos, such as ware*H*ouse / withdraw*AL* - Drop DoorTable.putDoor(), single use. - Edited TaskSevenSignsUpdate _log definition (task system needs to be edited anyway).
-
Request L2 Freya Patched System
SweeTs replied to Reptιle's question in Request Server Development Help [L2J]
Download l2encded, paste the files into your system folder and run "patcher" :) http://www.4shared.com/rar/ICmhuXTmce/l2endec.html But there may be an error when you open your l2 ann the GG is not killed, it's caused by nwindow.dll (so switch it later with any). Btw, why don't you simply download the system from any l2 server? :P Also, what you mean saying -
Share Pack Npc, Monsters, Coins, Tokens (Interlude)
SweeTs replied to CriticalError's topic in Client Development Discussion
lol, its amazing. You should hide it for some post count. Good job :) -
On aCis it's EffectZone.xml , so check if you have such zone, I guess there should be.
-
Help Teleport Help
SweeTs replied to Procustration90's question in Request Server Development Help [L2J]
http://www.maxcheaters.com/topic/178644-help-how-to-make-gk-ask-for-another-item/?p=2362210 -
Request L2 Freya Patched System
SweeTs replied to Reptιle's question in Request Server Development Help [L2J]
Take clean one and patch it on your own :P There was a topic with all patched and non systems somewhere.. -
Code Who Is The God The Server Feature
SweeTs replied to Lioy's topic in Server Shares & Files [L2J]
Nice idea, gg :P Like you mentioned, you have to add some IP restriction. -
Clan System Isnt Working
SweeTs replied to BobosFTW's question in Request Server Development Help [L2J]
Script problem ?