Jump to content

leveling 1 to 25 help with lua code please


Recommended Posts

hi, ill try to explain it all the best than i can.

i want you to make a lua code for battle pet than use you numº1 pet only the first turn, making he's first regular atack and changing to the pet numº2 to continue fight, and only change if needed because another die to the pet numº3. 

if you use 1 team with 3 pets: numº1 pets lvl1-15  ,, numº2 and numº3 lvl 25 pts

 

can you help me? if you make me this code ill do profiles to lvl all pets. 

thanks for colaborate. Best regards

Link to comment
Share on other sites

23 hours ago, ildoctore said:

hi, ill try to explain it all the best than i can.

i want you to make a lua code for battle pet than use you numº1 pet only the first turn, making he's first regular atack and changing to the pet numº2 to continue fight, and only change if needed because another die to the pet numº3. 

if you use 1 team with 3 pets: numº1 pets lvl1-15  ,, numº2 and numº3 lvl 25 pts

 

can you help me? if you make me this code ill do profiles to lvl all pets. 

thanks for colaborate. Best regards

How good is your lua-knowledge?

CastPetAction(index) - Cast the corresponding pet skill
PetAttack() - Instruct your pet to attack your target
PetDismiss() - Dismiss your pet
PickupStablePet(index)

Source: http://wowwiki.wikia.com/wiki/World_of_Warcraft_API

Link to comment
Share on other sites

7 hours ago, dida1990 said:

How good is your lua-knowledge?


CastPetAction(index) - Cast the corresponding pet skill
PetAttack() - Instruct your pet to attack your target
PetDismiss() - Dismiss your pet
PickupStablePet(index)

Source: http://wowwiki.wikia.com/wiki/World_of_Warcraft_API

so 

CastPetAction(1) - Cast the corresponding pet skill
PetAttack(1) - Instruct your pet to attack your target
PetDismiss(1) - Dismiss your pet
PickupStablePet(2)

this can work like this? or is by nameS?

Link to comment
Share on other sites

On 6/9/2016 at 3:05 AM, ildoctore said:

can you use 3 pets and make and example? thanks

3 hours ago, ildoctore said:

MODERATOR: can you move this to lua programing? i hope to have help there. thanks

 

I don't think, someone is going to create for you the code.

dida1990 provided you the information, simply start working with it... trial and error.

Link to comment
Share on other sites

19 hours ago, Runaro said:

 

I don't think, someone is going to create for you the code.

dida1990 provided you the information, simply start working with it... trial and error.

this is a share comunity, i hope someone can help, i dont want a full working profile. only an example, is a lot of english information for me on lua codes to look well.

Link to comment
Share on other sites

CastPetAction(index [, "unit"])
Arguments:

index - Slot in your Pet-Skill-Book - Start top left with "1" and goes down the book with increasing number
unit = "target"

PetAttack()
No arguments, it just autoattacks your target

PetDismiss
No arguments, just dismissed your actual pet

PickupStablePet(index)
index - Slot in your pet list (0 = active pet; 1 = first slot in pet list)

 

Link to comment
Share on other sites

for example (no working profile):

CastPetAction(3, "target"); -- launches the third spell on the left column at your target

PetAttack(); -- pet auto attack your target

PetDissmis(); -- Dimiss your pet

PickupStablePet(1); -- Summon your first pet

 

Link to comment
Share on other sites

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