Jump to content

StarSCreams

Members
  • Posts

    224
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by StarSCreams

  1. hi, i need some help. i have some commands work that perfectly i add some items on multisell merchant npc. need when shift + click on item in multisell, execute a command its this possible? i see how to work shift + click on npc, but in item i nothing have idea thanks
  2. hi, any can extract dressme system? or any can fix? work with weapons, shields and armor sets but not work if character equip fullbody armor.. not update visual armor when buy only donator coin and messages appears.. i think the problem ocurred when check if full body or with legs.. thanks
  3. for high five? i search skin system like this or scryde servers
  4. 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
  5. 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
  6. 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.
  7. 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.
  8. 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.
  9. this share is for h5? or.. interlude?.. thanks
  10. i dont understand,... an example?.. i frustated :(
  11. hey, check my player.java with your help.. search //killingspree to see the mods.. https://pastebin.com/PZGC0vqk
  12. 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
  13. 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
  14. dont work.. also try with killer.isDead() and dont work... see img: https://prnt.sc/hd1ski (three kills for test)
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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!
  20. 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!!!
  21. 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
  22. 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!
  23. 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
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock