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

    • Where's the proof? I can tell you're a scammer.
    • Where was I called a scammer? Is there any proof, etc.? There are a lot of reviews about our store online, etc. https://zhyk.org/forum/showthread.php?t=1108673
    • U was reported as scammer in your previos topic why u create new topic?
    • 🔍 Inventory 1.0 is a next-generation inventory system that stands out with its special minimal clothing system. Carefully designed and prepared according to the highest standards of your server, it not only enhances your gaming experience but also contributes to your server's infrastructure. ⚙️ Supported: QB-CORE Features: ✅ Instant Delivery: All products you purchase will be instantly assigned to your account as soon as your payment is completed. ✅ Clothing System: With the special animated clothing configurations in your inventory, you will be able to change outfits with ease. Experience a unique roleplaying experience with high-quality animations and customizable clothing options. ✅ Minimalist Inventory System: This inventory system, with its visuals, animations, and mechanics, offers maximum efficiency without overwhelming your screen and limiting your roleplaying experience. It’s designed to be user-friendly while enhancing your roleplaying experience. ✅ Continuous Updates: The content in the inventory is regularly updated with innovative features added. New animations, additional clothing options, and cutting-edge features ensure a fresh and dynamic experience. ✅ Easy Setup and Compatibility: Compatible with QB-CORE, this system is easy to install and optimized for quick integration into your server. It works seamlessly with a simple drag-and-drop method. ✅ Performance Optimization: The system is optimized to avoid low FPS and performance drops. All features of the inventory run smoothly without affecting your server’s performance. ✅ Multilingual Support: With support for different languages, you can cater to an international player base and build a larger community on your server. ✅ Flexible Customization Options: You can fully customize the inventory according to your needs and server rules. Choose between different outfits and animations to create a unique gaming experience. ✅ Comprehensive Help and Support: With 24/7 support, you can quickly resolve any issues you encounter. Our technical support and user guides are always here to assist you. Shop Now! Take your game to the next level with Inventory 1.0  and enjoy its unique features. Get ready to make a real difference in your roleplaying experience!   --------------------------TEBEX: https://matza.tebex.io/package/7174862 --------------------------
  • 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