I'd like the bot to be able to use the druid spell "Shield of Light" but I am unsure how to do so since the spell needs an area to be targeted.
Any ideas?
Druid spell - Shield of Light. How to use?
Re: Druid spell - Shield of Light. How to use?
No "target area" spells are supported by the bot. It could, theoretically, be done but because it will only be usable if the window is active, most people wont use them. So it's not worth the work to implement.
- 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
Re: Druid spell - Shield of Light. How to use?
I sometimes wonder if they did more arguments to useskill for coords of the target ground skills. There must be some way the game is told where to use the skill.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Druid spell - Shield of Light. How to use?
I believe those skills are triggered my the mouse click action. It would calculate the position my the mouse and probably doesn't use "UseSkill" as such.
- 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
Re: Druid spell - Shield of Light. How to use?
hey mate, try this 
i use it for my "Healing Arrows" spell as d/s
also usable for thunderstorm, and other area spells
i guess you can use SpellTargetUnit("raid1") too, if you want to use it on the tank+melee group around him, make sure tank is in raid1 position, never tried. just use your imagination, the possibilities are endless
Code: Select all
/script CastSpellByName("Shield of Light")
/wait 0.1
/script CastSpellByName("Shield of Light")
/script SpellTargetUnit()
also usable for thunderstorm, and other area spells
i guess you can use SpellTargetUnit("raid1") too, if you want to use it on the tank+melee group around him, make sure tank is in raid1 position, never tried. just use your imagination, the possibilities are endless
Re: Druid spell - Shield of Light. How to use?
code works but casts skill where the mouse is located.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Druid spell - Shield of Light. How to use?
hmm i never saw this, maybe because i use my d/s as a backup when i am multiboxing, and the window is in the background always. thanks for pointing it out, when i get home i will play around with it more and see how i can improve it.
Re: Druid spell - Shield of Light. How to use?
I found the mouse pointers we could use to direct the cast.
Mouse X = Address 9CD2DC Offset 3B4
Mouse X = Address 9CD2DC Offset 3B8
If you cast the spell, lock those values where you want it to cast then run command SpellTargetUnit(), then it will cast at that location.
The next BIG hurdle is to calculate where to "click" or adjust the camera angle, zoom etc. to put the target where we want it so we know where to click. What we really need is some 3d experts. Hm.. we can set the camera to face directly to the target so we know we have to click the middle of the screen horizontally. Calculating where to click vertically is what we need to do. It needs to take into account the angle of the camera, the zoom, the player position and target possition.
Mouse X = Address 9CD2DC Offset 3B4
Mouse X = Address 9CD2DC Offset 3B8
If you cast the spell, lock those values where you want it to cast then run command SpellTargetUnit(), then it will cast at that location.
The next BIG hurdle is to calculate where to "click" or adjust the camera angle, zoom etc. to put the target where we want it so we know where to click. What we really need is some 3d experts. Hm.. we can set the camera to face directly to the target so we know we have to click the middle of the screen horizontally. Calculating where to click vertically is what we need to do. It needs to take into account the angle of the camera, the zoom, the player position and target possition.
- 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
Re: Druid spell - Shield of Light. How to use?
*Blows the dust off an old userfunction.
Obviously need to change the v.Address to be the targets address. This will make it face the target and then move camera to be looking at a downward angle.
Then need to tell mouse where to point on the screen.
Code: Select all
memoryWriteInt(getProc(), player.Address + addresses.pawnTargetPtr_offset, v.Address);
--=== change camera to look at pot ===--
local angle = math.atan2(v.Z - player.Z, v.X - player.X);
local proc = getProc();
camera:setRotation(angle);
memoryWriteFloat(proc, camera.Address + addresses.camY_offset, 16.77);
memoryWriteFloat(proc, camera.Address + addresses.camY_offset, 16.77);
memoryWriteFloat(proc, camera.Address + addresses.camY_offset, 16.77);
Then need to tell mouse where to point on the screen.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual