Jump to content

Recommended Posts

Hello everyone, I creating a Fight Class for my Warrior tank pvp (3.3.5- LK), and I'm facing a problem:

The charge does not work (I do not know what I'm doing wrong but it does not start the fight with the ability to charge.

Warrior_Prot_xxx.xml

13 mai 2018 14H34.log.html

Link to comment
https://wrobot.eu/forums/topic/9388-pvp-warrior-prot-charge-not-work/
Share on other sites

9 minutes ago, eeny said:

Charge- condition me in combat = true

Remove this condition or set to false

I did the test and it only worked when the hostile mob saw me and came to fight. In an arena when you want to use the charge, will I have to go into combat first? There would be no way to start when I clicked the right mouse button.

Not xml, might be able to change some stuff an make it c sharp code for xml. This is my druid feral charge:

if (TargetDistance() >= 8 &&
		TargetDistance() <= 25 &&
			SpellManager.KnowSpell(16979) &&
				Rage() >= 5 &&
					SpellManager.GetSpellCooldownTimeLeft(16979) == 0)
{
	Logging.WriteFight("Casting Feral Charge (Bear Form)");
	Lua.LuaDoString(FeralCharge);
}

I've got one for warrior too, but thats also c# code. Also need something like ObjectManager.Me.HasTarget

3 hours ago, skeletonboy360 said:

Not xml, might be able to change some stuff an make it c sharp code for xml. This is my druid feral charge:


if (TargetDistance() >= 8 &&
		TargetDistance() <= 25 &&
			SpellManager.KnowSpell(16979) &&
				Rage() >= 5 &&
					SpellManager.GetSpellCooldownTimeLeft(16979) == 0)
{
	Logging.WriteFight("Casting Feral Charge (Bear Form)");
	Lua.LuaDoString(FeralCharge);
}

I've got one for warrior too, but thats also c# code. Also need something like ObjectManager.Me.HasTarget

I do not know anything about programming, but I can easily learn how to solve problems, if you can guide me, I can do the same.

5 minutes ago, skeletonboy360 said:

Check this one. Let me know if charge works how you want it to.

test.xml

yes it worked perfectly, now how should I proceed to apply this in my Fight Class, I want to boot the same to Intercept. 
Note:we have to show this to the developer, for him to ka this by default in Wrobot.

11 minutes ago, skeletonboy360 said:

Check this one. Let me know if charge works how you want it to.

test.xml

Even though I was a layman I analyzed your code, I think I can easily edit it, I just have a question, I put the coodown in [time> spellsettings> Time] or here [SpellManager.GetSpellCooldownTimeLeft ("Charge") == 0]?

  • 1 month later...
1 hour ago, Garub said:

The file is blank, has nothing written.

It certainly is not blank ?
I'll bet that you opened it with internet explorer. ?
 

<?xml version="1.0" encoding="utf-16"?>
<FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <FightClassGeneralSettings>
    <FightClassName>Fight config name</FightClassName>
	</FightClassGeneralSettings>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Bigger</Type>
            <Value>8</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Charge</SpellName>
      <Priority>1</Priority>
    </FightClassSpell>
</FightClass>

 

13 minutes ago, Ordush said:

It certainly is not blank ?
I'll bet that you opened it with internet explorer. ?
 


<?xml version="1.0" encoding="utf-16"?>
<FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <FightClassGeneralSettings>
    <FightClassName>Fight config name</FightClassName>
	</FightClassGeneralSettings>
    <FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Bigger</Type>
            <Value>8</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Charge</SpellName>
      <Priority>1</Priority>
    </FightClassSpell>
</FightClass>

 

Open in Fight Class Editor and then in NotePad ++.

I apologize for the work I'm doing to you, but I do not know how to add this to my Fight Class.xml

 

5 minutes ago, Garub said:

Open in Fight Class Editor and then in NotePad ++.

I apologize for the work I'm doing to you, but I do not know how to add this to my Fight Class.xml

 

<FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Bigger</Type>
            <Value>8</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Charge</SpellName>
      <Priority>1</Priority>
    </FightClassSpell>

<FightClassSpell> means the start of a spell (charge in this case)
</FightClassSpell> means the end of a spell
So go open your fightclass with notepad, and paste the code i just added above under a </FightClassSpell>

now if you open your fightclass with the editor the spell Droidz made will be there, move it around as you like.
Also make sure you have CombatOnly turned off. Otherwise it will not work out of combat.

Edited by Ordush
11 minutes ago, Ordush said:

<FightClassSpell>
      <FightClassConditions>
        <FightClassCondition>
          <ContionType>TargetDistance</ContionType>
          <Param xsi:type="FightClassConditionNumber">
            <Type>Bigger</Type>
            <Value>8</Value>
          </Param>
        </FightClassCondition>
      </FightClassConditions>
      <SpellName>Charge</SpellName>
      <Priority>1</Priority>
    </FightClassSpell>

<FightClassSpell> means the start of a spell (charge in this case)
</FightClassSpell> means the end of a spell
So go open your fightclass with notepad, and paste the code i just added above under a </FightClassSpell>

now if you open your fightclass with the editor the spell Droidz made will be there, move it around as you like.
Also make sure you have CombatOnly turned off. Otherwise it will not work out of combat.

I just wanted the change to work when I was not in combat and when I was in combat.

My limited English is not letting me understand, it would be possible to make this modification, if not Unfortune.

Warrior_Prot_xxx.xml

7 minutes ago, Garub said:

I just wanted the change to work when I was not in combat and when I was in combat.

My limited English is not letting me understand, it would be possible to make this modification, if not Unfortune.

Warrior_Prot_xxx.xml

I literally just told you how to make it work like that. ?

I can not edit your fightclass from here, go to your "Charge" spell, and change CombatOnly to false.
It might be called something other then CombatOnly, but it's something alike.

Also by looking at your code with notepad, i can see that you have a condition called "Me in Combat" and you have set it to false.
With this, your charge will only work when you are NOT in combat
Also you have set Target Is Player to true (So it will only work if your target is a player) As far as i know, charge is used on mobs?
Furthermore you have set it, so Charge is Lua code not a spell, however you have not written any Lua Code, so it's trying to send "Charge" as lua. This will not do anything.

Now, with all this info here, you should be able to change it so it works.

Edited by Ordush
13 hours ago, Ordush said:

I literally just told you how to make it work like that. ?

I can not edit your fightclass from here, go to your "Charge" spell, and change CombatOnly to false.
It might be called something other then CombatOnly, but it's something alike.

Also by looking at your code with notepad, i can see that you have a condition called "Me in Combat" and you have set it to false.
With this, your charge will only work when you are NOT in combat
Also you have set Target Is Player to true (So it will only work if your target is a player) As far as i know, charge is used on mobs?
Furthermore you have set it, so Charge is Lua code not a spell, however you have not written any Lua Code, so it's trying to send "Charge" as lua. This will not do anything.

Now, with all this info here, you should be able to change it so it works.

I would like to thank you for your commitment, I finally got it, everything is working right. ^^ ?

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...