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

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • Topics

×
×
  • 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