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..
Question
djpain
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