Jump to content
  • 0

[Help] Buffer


djpain

Question

so i have downloaded buffer. which buffs whole party. cant edit code. need some help.

def skillCast(player,skill,level,useAnimation):   #

# This line is necessary and gets the skill information.   #

skillInfo = SkillTable.getInstance().getInfo(skill,level)   #

if not skillInfo:   #

return False   #

############################################################################

# This line causes the client to display the animation for the   #

# skill.  If you do not want the client to display the animation   #

# for a specific skill simply set useAnimation to false for that   #

# skill call.  If you want to disable it for all skills simply   #

# comment out the below two lines.   #

############################################################################

# We need to make sure the player has him/herself targetted, but   #

# we also want to make sure we don't permanently change the target   #

# so we will save off the current target before changing it to the   #

# player.   #

currentTarget = player.getTarget()   #

player.setTarget(player)   #

############################################################################

# This gets all the targets for the skill (self, party, clan, ally, etc...)#

targets = skillInfo.getTargetList(player)   #

############################################################################

# Now we reset the target we had before we switched to the player.   #

player.setTarget(currentTarget)   #

############################################################################

# This applies the skill effects to all valid targets.  If you only want  #

# it to apply the effects to the player then you should change "targets"  #

# in the line below to "[player]".   #

player.callSkill(skillInfo,targets)   #

return True   #

############################################################################

 

targets = skillInfo.getTargetList(player) how to change it to set target only yourself not whole party clan and alliance? trying to do it 4 hours i'm pissed off :| i'm gonna destroy my computer now. someone help me please

 

 

This applies the skill effects to all valid targets.  If you only want  #

# it to apply the effects to the player then you should change "targets"  #

# in the line below to "[player]". THIS DOESN'T WORK!!!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Well i didn't understand well but you want the buffer to buff only you or to buff the whole party just by targeting one of the players in it?

 

You should change the at the last line the "targets" as it says to "player"

 

  # This applies the skill effects to all valid targets.  If you only want  #

  # it to apply the effects to the player then you should change "targets"  #

  # in the line below to "[player]".                  #

  player.callSkill(skillInfo,player)                  #

  return True

 

I'm not sure but i guess you tried it with "[player]" and not simple "player" so remove the brackets.If it still doesn't work then i don't know someone else should help you.Im not that good at coding.

 

Link to comment
Share on other sites

  • 0

i'm not that dumb, i tried player, [player], self,

instead of it targets = skillInfo.getTargetList(player)

tryed targets = skillInfo.getTarget(player)

targets = skillInfo.setTargetList(player)

targets = skillInfo.setTarget(player)

targets = (player)

and ALOT of other things. and as i said. so i have downloaded buffer. which buffs whole party. WHICH BUFFS WHOLE PARTY. i said i want to buff them? so dont spam. I'm not sure but i guess you tried it with "[player]" and not simple "player" so remove the brackets.If it still doesn't work then i don't know someone else should help you.Im not that good at coding. as i said This applies the skill effects to all valid targets.  If you only want  #

  # it to apply the effects to the player then you should change "targets"  #

  # in the line below to "[player]". THIS DOESN'T WORK!!!

Link to comment
Share on other sites

  • 0

It's my fault i tried to help you lol.You don't mention what you want to do.You just say i can't edit code.SO WHY EXACTLY DO YOU WANT TO EDIT THE CODE?WHAT DO YOU WANT IT TO DO?You should provide more info not just saying CANT EDIT CODE.

I also saw some replies on this section saying "I learned everything myself." well do the same here also.

 

Link to comment
Share on other sites

  • 0

OMGGG i want to edit it cause it buffs whole party clan alliance and everyone. cant you understand it??? lets say i'm fighter and my party member is mage if i buf myself he gets fighter buff too. i want to change that, and as i said i have learned everything myself thats why i was trying to edit code 5 hours and than asked you to help, but no one cares as i see. i cant believe that no one on this server knows how to edit that code

Link to comment
Share on other sites

  • 0

Well i tried to help but you didn't say that before "whole party gets what i choose fighter or mage buffs"

One solution is to get another buffer a normal one.

And the 2nd is to w8 for an answer.

 

So its on ur hand.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
    • I can use this folder system for High Five offline server?   The folder does not have a l2.exe file.   Thank you very much if anyone can help me.   https://drive.google.com/file/d/13kU-g_4JJ-sP-kg2F7pqkUOVKmQdubFm/view
  • Topics

×
×
  • Create New...