-
Posts
226 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by StarSCreams
-
Need Vote Script php for hopzone
StarSCreams posted a question in Request Server Development Help [L2J]
hi, i searched in forum where i can post this request.. i need work on script for vote in hopzone with php but only find mod for java. before i have scripts working but before hopzone change and add API system in 2016... if some have a link with script or part, i need very basic vote with the new api. thanks if i wrong with section please some mod move to correctly category -
Source Fandc/ro-Team H5-L2Ava Files Sources.
StarSCreams replied to Akar0's topic in Server Shares & Files [L2J]
you dont searched fine -
Help Try to add Killing Spree Fandc/ro Team files
StarSCreams replied to StarSCreams's question in Request Server Development Help [L2J]
in this files does not exist onDie method, only onDeath in model/Player.java onDeath method: protected void onDeath(Creature killer) { // Check for active charm of luck for death penalty getDeathPenalty().checkCharmOfLuck(); if (isInStoreMode()) { setPrivateStoreType(Player.STORE_PRIVATE_NONE); } if (isProcessingRequest()) { Request request = getRequest(); if (isInTrade()) { Player parthner = request.getOtherPlayer(this); sendPacket(SendTradeDone.FAIL); parthner.sendPacket(SendTradeDone.FAIL); } request.cancel(); } if (_cubics != null) { getEffectList().stopAllSkillEffects(EffectType.Cubic); } setAgathion(0); if(kill_streak >= 12) { announcement stop killing spree blah blah blah; } kill_streak = 0; boolean checkPvp = true; if (Config.ALLOW_CURSED_WEAPONS) { if (isCursedWeaponEquipped()) { CursedWeaponsManager.getInstance().dropPlayer(this); checkPvp = false; } else if ((killer != null) && killer.isPlayer() && killer.isCursedWeaponEquipped()) { CursedWeaponsManager.getInstance().increaseKills(((Player) killer).getCursedWeaponEquippedId()); checkPvp = false; } } if (checkPvp) { doPKPVPManage(killer); altDeathPenalty(killer); } // And in the end of process notify death penalty that owner died :) getDeathPenalty().notifyDead(killer); if (_event != null) { _event.doDie(killer, this); } setIncreasedForce(0); if (isInParty() && getParty().isInReflection() && (getParty().getReflection() instanceof DimensionalRift)) { ((DimensionalRift) getParty().getReflection()).memberDead(this); } stopWaterTask(); if (!isSalvation() && isOnSiegeField() && isCharmOfCourage()) { ask(new ConfirmDlg(SystemMsg.YOUR_CHARM_OF_COURAGE_IS_TRYING_TO_RESURRECT_YOU, 60000), new ReviveAnswerListener(this, 100, false)); setCharmOfCourage(false); } if (getLevel() < 6) { Quest q = QuestManager.getQuest(255); if (q != null) { processQuestEvent(q.getName(), "CE30", null); } } if (isInOlympiadMode() && (killer.isPlayable() && killer.getPlayer().isInOlympiadMode())) { _log.warn("Player: " + getName() + " DIED in olympiad from: " + killer.getName()); Thread.dumpStack(); } // Ady - Call the gm event manager due to this death GmEventManager.getInstance().onPlayerKill(this, killer); super.onDeath(killer); } with this modification, when any player reach 12 kills announce appears. i need execute this announce when killer die if him take 12 kills or more.. but thanks for your help -
Help Try to add Killing Spree Fandc/ro Team files
StarSCreams replied to StarSCreams's question in Request Server Development Help [L2J]
thanks sweets, i move kill_streak 0; outside that check. you can help how to announce if killer dead and if killer take more than 12 kills? i tested modification and now work, but i need announce when killer dead and he reach 12 kills or more.. i tested again with this code if(kill_streak > 12) { announcement stop killing spree blah blah blah; } this code announce when killer reach 12 kills or more, not when he DIE hahaha i dont understand why.. thanks again. -
Help Try to add Killing Spree Fandc/ro Team files
StarSCreams posted a question in Request Server Development Help [L2J]
hi, i working with Fandc/ro team files and try add Killing spree system Any can help me with add killing spree? i already add some lines in java/model/player.java but dont work properly Problem: cannot stop killer on death, i need stop killing_spree when killer die find: private long _resurrectionBuffBlockedTime = 0; i put below private int kill_streak = 0; find: protected void doPKPVPManage(Creature killer) { and search pk.setPvpKills(pk.getPvpKills() + 1); and i put below kill_streak++; switch(kill_streak) { case 1: blah blah blah break; case 2: blah blah blah break; } find protected void onDeath(Creature killer) { i put below if(kill_streak > 0) { if(kill_streak > 12 { kill_streak = 0; announcement stop killing spree blah blah blah; } } When i test in game nothing happens and only show messages from switch if i delete kill_streak = 0; on protected void onDeath(Creature killer) { class any can help me? thanks sorry for my bad english. -
Source Fandc/ro-Team H5-L2Ava Files Sources.
StarSCreams replied to Akar0's topic in Server Shares & Files [L2J]
hi any can help me with add killing spree? i already add some lines in model/player.java but dont work properly find: private long _resurrectionBuffBlockedTime = 0; i put below private int kill_streak = 0; find: protected void doPKPVPManage(Creature killer) { and search pk.setPvpKills(pk.getPvpKills() + 1); and i put below kill_streak++; switch(kill_streak) { case 1: blah blah blah break; case 2: blah blah blah } find protected void onDeath(Creature killer) { i put below if(kill_streak > 0) { if(kill_streak > 12 { kill_streak = 0; announcement stop killing spree blah blah blah; } } but not work, when character kill other update the kill_streak at same time for (pk and victim) and never increment the kill_streak i need stop killing_spree when killer die any can help me? thanks sorry for my bad english. -
Interlude & High Five Costume Pack's
StarSCreams replied to Sinister Smile's topic in Client Development Discussion
this share is for h5? or.. interlude?.. thanks -
i dont understand,... an example?.. i frustated :(
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
hey, check my player.java with your help.. search //killingspree to see the mods.. https://pastebin.com/PZGC0vqk
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
thanks i try your help but now it's as if the assasins = 0; would not be, kills in a row increment normaly, i add announce to log onDeath... and obtain this when kill the victim: https://prnt.sc/hd364m xd
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
Yes when kill other player hahahah and i tested if(isDead()) sendMessage('u alive:); else sendMessage('u died'); only victim received the message: u live https://prnt.sc/hd2enu
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
dont work.. also try with killer.isDead() and dont work... see img: https://prnt.sc/hd1ski (three kills for test)
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
thanks for reply, i try this and other places same problem.. when victim dies the variable reset hahahah xD check this https://imgur.com/a/kL3z0
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
in my files is Player.java no l2pcinstance.. it same.. i upload my player.java here: https://pastebin.com/hGXgnsUV the source like work this: http://www.maxcheaters.com/topic/216165-h5-l2mythras-files-sources-compiled-geo-patch
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
i just want to stop the messages when the killer dies, but if i add the variable assassins = 0; in... protected void onDeath(Creature killer)..., the messages stop working since when the victim dies he sets the variable to 0 and the messages stop working the protected void onDeath(Creature killer)..., class does not detect who dies, if it is the victim or the murderer
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
the messages and kills works, but when i add assassins = 0; in... protected void onDeath(Creature killer)..., don't work anymore. i add that to stop killing spree to create this I followed this example: http://www.maxcheaters.com/topic/107756-sharefreya-killing-spree/ I hope you understand me i am from argentine and i do not know how to express myself very well in english u.u
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
hi, i try to fix my last problem but i can't... i add assasins = 0; in protected void onDeath(Creature killer) .... to stop killingspree and not increment assasins++; in protected void doPKPVPManage(Creature killer) how to check if killer is dead? or how to fix? i upload my Player.java in paste bin if any can help me, search: //killingspree to see if my code is correct.. https://pastebin.com/hGXgnsUV Thanks all!
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
thanks for you support, i found the problem.. i have put ondie character class: assasins = 0; but set 0 when any character dies not the killer for stop kills in a row.. i try find the fix now hahaha thanks!!!
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
how to check if my variable is global? i add to my variable static to make a global.. public static int assasins = 0; but obtain same result, only show first kill
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
hey melron, thanks for you reply, you fix one of my problems (How to check if 10 seconds passed), but my other problem not fix.. i make the clean code to check it work, but never increment the variable.. Example: private int assasins = 0; protected void doPKPVPManage(Creature.... ..... //Line: @@ -4286,6 +4319,37 @@ //Here my code check if pvpkill and update +1 kills to db pk.setPvpKills(pk.getPvpKills() + 1); assasins++; switch(assasins) { case 1: Announcements.getInstance().announceToAll("FIRST KILL VARIABLE: " + assasins); break; case 2: Announcements.getInstance().announceToAll("SECOND KILL VARIABLE: " + assasins); break; case 3: Announcements.getInstance().announceToAll("THIRD KILL VARIABLE: " + assasins); break; case 4: Announcements.getInstance().announceToAll("FOUR KILL VARIABLE: " + assasins); break; default: Announcements.getInstance().announceToAll("DEFAULT KILL++ VARIABLE: " + assasins); break; } Ingame, i made more than 10 kills only show FIRST ANNOUNCEMENT u.u Thanks for help me!
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
i tested and not work.. every kill obtain first case only, never update or increment the variable "assasins", i try implement this code in fandc files like mobius.. anye help me? private int assasins = 0; protected void doPKPVPManage(Creature.... long firstkill = System.currentTimeMillis() + 10 * 1000; switch(assasins) { case 1: Announcements.getInstance().announceToAll("Test First Kill VAR:" + assasins); break; case 2: if(System.currentTimeMillis() - firstkill > 10000) { Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed" + pk.getTarget().getName()); } else { Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed two times in a row!" + pk.getTarget().getName()); } break; case 3: if(System.currentTimeMillis() - firstkill > 20000) { Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed" + pk.getTarget().getName()); } else { Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed three times in a row!" + pk.getTarget().getName()); } break; case 4: ...... break; default: } Out Put only first case
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
thanks sweets, later tested and feed back :3
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
thanks sweets i try this.. private int assasins = 0; switch(assasins) { case 1: //Here obtain time when case 1 ocurred long firstkill = System.currentTimeMillis(); case 2: long checktime = System.currentTimeMillis() - firstkill; if(checktime < 10000) { Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed two times" + pk.getTarget().getName()); } else { Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed" + pk.getTarget().getName()); } break; case 3: ......... break; default: } but i get an error, in case 2 "The local variable firstkill may not have been initialized" How to fix this? i try the fix but not obtain solution hahaha thanks!
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
hi, I have this code and try to verify the time has passed when case occurred Example in l2pcinstance: private int assasins = 0; switch(assasins) { case 2: Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed two times" + pk.getTarget().getName()); break; case 3: Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed three times" + pk.getTarget().getName()); default: } i need verify if the next kill (case 3) ocurred < 10 seconds. if the time passed make a different announcements.. i think how see the code with my idea... private int assasins = 0; switch(assasins) { case 2: Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed two times" + pk.getTarget().getName()); ThreadPoolManager.getInstance().schedule(assasins = 3 , 10 * 1000); break; case 3: Announcements.getInstance().announceToAll("Player " + pk.getName() + " has killed" + pk.getTarget().getName()); ThreadPoolManager.getInstance().schedule(assasins = 4 , 10 * 1000); break; default: } sorry my bad english :3
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
thanks for this xD
