Id of nomal attack

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Id of nomal attack

#1 Post by lolilol » Sat Dec 01, 2012 6:09 am

Hi everyone,


I have a warmage and I search the ID for a normal attack, no skill use, just the "attack" that every class have.

Someone Know that Id ?

Thx for help and sorry for my English.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Id of nomal attack

#2 Post by lisa » Sat Dec 01, 2012 7:04 am

Honestly I have no idea what the ID of "attack" is, why would you need it?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#3 Post by rock5 » Sat Dec 01, 2012 7:11 am

I actually know that off by heart. I use it when I need to test GetIdName() function. It's 540000. But you can use the bot function

Code: Select all

Attack()
as well.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#4 Post by lolilol » Sat Dec 01, 2012 7:33 am

Okay thx for answers but, In my waitpoint I do:

player:cast("WARRIOR_NAMEOFSKILL")

So I can make

player:cast("ATTACK")

or just

ATTACK() ?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#5 Post by rock5 » Sat Dec 01, 2012 7:45 am

Just

Code: Select all

Attack()
Of course the enemy needs to be targeted first.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#6 Post by lolilol » Sat Dec 01, 2012 7:47 am

Okay thx, i'll try in few hours.

I'll be back to post the results.

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#7 Post by lolilol » Sat Dec 01, 2012 10:57 am

Well, I don't know if attack() really works because my bot was too far from boss so I added waypoint for the boss aggro.
Actually, I use bot from M4gm4 (http://www.solarstrike.net/phpBB3/viewt ... fir#p36386)
And with my warmage, I can't use the cristal. He doesn't want to press on the crystal and I don't know why.


I did that:

<!-- # 37 --><waypoint x="2065" z="1812" y="399">
lf = player:findNearestNameOrId(102623)
if lf then
player:target(lf)
Attack()
end
</waypoint>

And in my profile I add the code in <OnSkillCast>

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#8 Post by rock5 » Sat Dec 01, 2012 11:08 am

If you want to attack the mob so you get aggro and then let the bot take over then you probably have to wait until it finishes walking over to the mob and attacks it. You could do a yrest() for the amount of time you think it will take to attack the mob or you could wait until you get aggro. Some thing like

Code: Select all

<!-- # 37 --><waypoint x="2065" z="1812" y="399">
lf = player:findNearestNameOrId(102623)
if lf then
    repeat
        player:target(lf)
        Attack()
        yrest(200)
        player:update()
    until player.Battling
end
</waypoint> 
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#9 Post by lolilol » Sun Dec 02, 2012 5:31 am

So I use your Code rock5 but, I have a message like "you are too close, back off" and I think that my bot can't use the cristal when he is too close because he is moving back always.

In my profil, the distance is 200, but when i run micromacro, it's change to 50. I don't find how he can't change that.

I will try an other method. And i'll post results.


EDIT : i added this line in skilldatabase :<skill name="WARRIOR_ATTACK" id="540000" type="damage" target="enemy" />
And in the waypoint I added :


lf = player:findNearestNameOrId(102623)
if lf then
player:target(lf)
player:cast("WARRIOR_ATTACK")
player:cast("WARRIOR_ATTACK")
player:cast("WARRIOR_ATTACK")
end

When I watch micromacro I don"t see the lines " player:cast("WARRIOR_ATTACK")" like in the original waypoint. And I have the same problem with distance.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#10 Post by rock5 » Sun Dec 02, 2012 6:09 am

If you want to use an item on the target, that is different. I'm guessing you want to attack the mob to get aggro then you want to use the "cristal" but you can't use it too close. So after you get aggro you have to back up and use the item.

Code: Select all

<!-- # 37 --><waypoint x="2065" z="1812" y="399">
lf = player:findNearestNameOrId(102623)
if lf then
    repeat
        player:target(lf)
        Attack()
        yrest(200)
        player:update()
    until player.Battling

    keyboardHold(settings.hotkeys.MOVE_BACKWARD.key) 
    yrest(1000) -- Change this until it moves the right distance back
    keyboardRelease(settings.hotkeys.MOVE_BACKWARD.key) 

    inventory:useItem("cristal") -- or whatever the item is called
end
</waypoint> 
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Id of nomal attack

#11 Post by lisa » Sun Dec 02, 2012 6:46 am

you seem off your game tonight rock

Code: Select all

keyboardPress(settings.hotkeys.MOVE_BACKWARD.key) 
that should probably be Hold and not Press
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#12 Post by rock5 » Sun Dec 02, 2012 6:51 am

lisa wrote:you seem off your game tonight rock
What do you mean? Isn't this usual for me? :mrgreen:
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#13 Post by lolilol » Wed Dec 05, 2012 2:15 pm

hey, i'm back.

I use the last code but my bot doesn't want use the item. I think that i'll wait some stuff for One Shoot the boss. Like that, no need use item.
Thx for your help :)

Best regards

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#14 Post by rock5 » Wed Dec 05, 2012 2:19 pm

lolilol wrote: I use the last code but my bot doesn't want use the item
Did you change the name to the correct name? The name has to be the full correct name (or the id).
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#15 Post by lolilol » Wed Dec 05, 2012 2:48 pm

yep, I tried with the name and after with the ID, but he doesn"t use it.
With my other bot it's work perfectly.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#16 Post by rock5 » Wed Dec 05, 2012 9:59 pm

What other bot? Are you talking about a different script or different bot but same script?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#17 Post by lolilol » Thu Dec 06, 2012 4:32 pm

same script, but when I'm front of the boss, the script is :
lf = player:findNearestNameOrId(102623)
if lf then

player:cast("ROGUE_PREMEDITATION")
player:target(lf)

player:cast("ROGUE_SHADOWSTAB")
player:cast("ROGUE_LOW_BLOW")
player:cast("ROGUE_WOUND_ATTACK")
player:cast("ROGUE_SHADOWSTAB")
player:cast("ROGUE_LOW_BLOW")

(*3)

end

My second bot is warmage, that why I would know the ID of normal attack but it's doesn't work.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Id of nomal attack

#18 Post by rock5 » Thu Dec 06, 2012 11:29 pm

I'm surprised how many times you've posted code and not one has told you to use [ code] tags yet. Please, from now on, use [ code] tags when writing code. Just select the code and click the 'code' button at the top of the edit page.

If all you want to do is 'attack' use the Attack() function.

Code: Select all

lf = player:findNearestNameOrId(102623)
    if lf then
        Attack()
        Attack()
        Attack()
    end
end
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

lolilol
Posts: 18
Joined: Tue Mar 27, 2012 2:17 pm

Re: Id of nomal attack

#19 Post by lolilol » Sun Dec 16, 2012 5:12 am

Oh sorry I will use the function code now.
Finally my mage is enought strong to kill the boss, and I can use the Item now .

Thx for four help and your time,

Best regards,

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 1 guest