Jump to content
  • 0

[Help] Buffer


Question

Posted

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!!!

6 answers to this question

Recommended Posts

  • 0
Posted

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.

 

  • 0
Posted

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!!!

  • 0
Posted

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.

 

  • 0
Posted

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

  • 0
Posted

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.

Guest
This topic is now closed to further replies.


  • Posts

    • It's a 5 days ago project. I initially started with the idea from C4, 4 months ago, you can see my stuff in the first posts of this thread. I experimented with scene loads while learning Odin and experimenting with graphics programming. Elfo got inspired by the idea and thought of implementing the full client, smth I didn't wanna do. I personally didn't look for inspiration on anything, just having fun with a new language. And elfo did the rest on his own. How about you act like an adult and acknowledge something good that's in front of you and respect the grind that Elfo pushed out since mot of vibe coders quit after a month or run out of money to invest into it. All the vibe wow slop and this recent one will get abandoned in a bit, you'll see. Also @Northy you sound like such a childish text book narcissist. Go touch some grass outside, you're not winning anything here. Have a good life 
    • ⭐ Fast support & replacement warranty guaranteed. All fresh links in stock with automated delivery!
    • Will open: 23 September 2026 | 20:00 GMT+2 Are you ready for a unique, hard-farm High Five journey? Join L2DragonLand where you can learn every skill in the game and build the ultimate character! Progress through custom farming zones and endless progression possibilities.   Server Features: XP Rate: 500x SP Rate: 2x   Drop / Spoil: 20x   Hard Farm Gameplay Safe Enchant: +600   Max Enchant: +600   Max Attribute: Level 7 Multiskill System: Learn every single skill in the game.   Custom Content: Zone Progression: Farm and progress through custom zones Item Upgrade System: Upgrade your gear step-by-step Custom Weapons & Armor: Packed with massive % P.Atk, M.Atk, P/M.Def, HP/CP stats Unique Visuals: Every item has unique custom stats and visual effects Additional Features Custom Buffer in Main Towns Custom Buff Learn NPC Global Gatekeeper Automated In-Game Events Lottery System Fast Boss Respawns: Crucial raid bosses respawn every 10 seconds Olympiad Every Two Weeks   Website: http://l2dragonland.eu/   Discord: https://discord.gg/geVGy8Xcpv   L2DragonLands
    • you can lie as much as you want. idea from git.   Open source h5 game engine on rust : https://github.com/nascimentolh/CanastraEngine
    • I have no clue what you're talking about. The idea was @Setekh's. Stop acting like a child.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..