What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

AOE spell - with ground tageting

nauspav

New Member
Joined
Jun 15, 2012
Messages
11
Reaction score
0
Hi all, i need help with AOE ground targeted spell like "Skewer" from Vitalism...

if (skillCooldown("Skewer") == 0)
{
UseSkillAndWait("Skewer");
Log("Used: Skewer");
Thread.Sleep(100);
}
I didnt find any solution in other plugin...
possible solution: we need know the target coordinates x.y.z. and when I known this coordinates use this coordinates for skill targeting point...
or exist any easy way ?

Any one help me with this issue please?
Thanks,,,
 
you can overload the useSkill method to take an X,Y,Z co-ordinate like so
Code:
UseSkill("Skewer", X, Y, Z, [should i approach the target, boolean]);

Then your target, presumably a monster, is classified within the API as a "creature", creature itself has no way of getting x,y,z however a creature is an example of a spawn object, looking into the spawnobject api shows the properties x,y and z.

So in theory, without testing the code myself, you should be able to do the following :
Let bestmob equal your target
Code:
if(skillCooldown("Skewer") == 0)
{
    UseSkill("Skewer", bestMob.X, bestMob.Y, bestmob.Z, true);//Cast skewer where the mob is, approach the mob if it's out of range
    Log("Used: Skewer");
    Thread.Sleep(100);
}

Hope this helps
 
SH - Thanks for clue...

Here is my plugin for Cleric (23lv)
View attachment Cleric_Combat_heal.zip

If I try compile the plugin I get error:

14:52:52: c:\ArcheAge\Plugins\Cleric_Combat_Heal\Cleric_Combat_heal.cs(124,56) : error CS0103: Name bestMob in actual kontext didnt exist.
14:52:52: c:\ArcheAge\Plugins\Cleric_Combat_Heal\Cleric_Combat_heal.cs(124,67) : error CS0103: Name bestMob in actual kontext didnt exist
14:52:52: c:\ArcheAge\Plugins\Cleric_Combat_Heal\Cleric_Combat_heal.cs(124,78) : error CS0103: Name bestMob in actual kontext didnt exist

How to define the bestMob in plugin ?
 
Back
Top