Jump to content

Get npc Projectiles


high105

Recommended Posts

Hey so I'm trying to get out what projectiles npcs are sending.

For instance, when fighting zulrah I want to know the projectile and/or the gfx ids when they're being casted on me.

I don't know what to call for that. 

If someone could shed some light this way it would be very helpful.

 

 

I'm doing this because I'm writing a script.

Link to comment
Share on other sites

Can get the animation ID for each attack which is what you want to be doing.

 

Just some advice, from your post it sounds like this is the first time your writing something for OSBot, I wouldn't write or even attempt a Zulrah script as yet as you wil 100% fuk it up happy.png make something simpler happy.png

Edited by Extreme Scripts
  • Like 1
Link to comment
Share on other sites

You get all the incoming projectiles, iterate trough them, find the projectile you need and with it do what ever you want.

 

snippy snip snips:

for (Projectile p : projectiles.getAll()) {
    if (p.getId().equals(*projectileID*)){
        //do what ever
    }
}

Simple look up on RSPS forums brings up some id's which match with the zulrah projectiles.

I'm guessing you want to pray flick between those two mage and range attacks

 
mage projectile 1046
range projectile: 1044

 


Can get the animation ID for each attack which is what you want to be doing.

 

Just some advice, from your post it sounds like this is the first time your writing something for OSBot, I wouldn't write or even attempt a Zulrah script as yet as you wil 100% fuk it up happy.png make something simpler happy.png

 

Somehow an s1 knows how to do this stuff and u don't Troll.png

Edited by Vilius
Link to comment
Share on other sites

Hey so I'm trying to get out what projectiles npcs are sending.

For instance, when fighting zulrah I want to know the projectile and/or the gfx ids when they're being casted on me.

I don't know what to call for that. 

If someone could shed some light this way it would be very helpful.

 

 

I'm doing this because I'm writing a script.

I would indeed advice what Extreme told you, checking for the animation would be the easiest way for you to go with this. 

 

Goodluck on your project! (:

  • Like 1
Link to comment
Share on other sites

 

You get all the incoming projectiles, iterate trough them, find the projectile you need and with it do what ever you want.

 

snippy snip snips:

for (Projectile p : projectiles.getAll()) {
    if (p.getId().equals(*projectileID*)){
        //do what ever
    }
}

Simple look up on RSPS forums brings up some id's which match with the zulrah projectiles.

I'm guessing you want to pray flick between those two mage and range attacks

 
mage projectile 1046
range projectile: 1044

 

 

Somehow an s1 knows how to do this stuff and u don't Troll.png

 

 

No but for Zulrah projectiles are useless if you are standing right next to it, the animation will always change before the projectile is fired giving you a much greater leniency for prayer flicking/activating. 

 

Thats why I'm S3 and your not doge.png

Edited by Extreme Scripts
  • Like 3
Link to comment
Share on other sites

No but for Zulrah projectiles are useless if you are standing right next to it, the animation will always change before the projectile is fired giving you a much greater leniency for prayer flicking/activating. 

 

Thats why I'm S3 and your not doge.png

And thats where you are wrong, when pray flicking at jad phase, you need to pray flick the instant a projectile is out.

 

I.e

magic projectile is out -> pray flick to range

range projectile is out -> pray flick to mage

 

You need to pray flick the opposite the instant a projectile comes out.

Link to comment
Share on other sites

And thats where you are wrong, when pray flicking at jad phase, you need to pray flick the instant a projectile is out.

 

I.e

magic projectile is out -> pray flick to range

range projectile is out -> pray flick to mage

 

You need to pray flick the opposite the instant a projectile comes out.

 

Why would you want to prayer flick when the projectile is out when you can prayer flick before the projectile is fired? It makes NO difference but gives you/bot more time to react. I've made this kind of script + a jad helper before, I know.

Edited by Extreme Scripts
Link to comment
Share on other sites

Mate you don't need to, AnimationID will tell you exactly what projectile is coming, never changes. Still got a lot to learn my friend Troll.png

And again, you are wrong, zulrah has only one projectile shooting animation, doesn't matter what projectile it will shoot it wont change, it will always be the same.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...