Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » VGExtreme General Discussion

const NUKE_Doom = "/cast ""Doom III"" " ??? didnt work : VGExtreme General Discussion

Posted: November 12th, 2007
User avatar
Total Posts:374 Joined:2005
const NUKE_Doom = "/cast ""Doom III"" " ??? didnt work

to setup my bot easyer i want that VGExtreme directly cast my spell i wish, without setup hotbars.
i setup this:
const NUKE_Doom = "/cast ""Doom III"" "

and this to ask for this but my spells didnt come up why?

if ((LEVEL_TRAINED => 1) and (TargetDistance < 24) and )) then

VGSendCommand NUKE_Doom '// Holy Nuke !!!!!!!!!!!!!!!!!!!!!!!!
Sleep SPELL_SLEEP
VGSendCommand NUKE_Doom '// Holy Nuke !!!!!!!!!!!!!!!!!!!!!!!!
Sleep SPELL_SLEEP
end if


ty
Posted: November 12th, 2007
stuarcl
don't think it likes those double quotes. Try it like this
const NUKE_Doom = "/cast +'Doom III+' "
Posted: November 13th, 2007
beergeek
the script interprets the extra quotes as the end of the string and gives an error when it encounters the rest.

I believe the escape code in vbscript is a backslash, so try this:

const NUKE_Doom = "/cast \"Doom III\" "

EDIT: just realized this doesn't work, also tried single quotes in stuarcl's example, both with and without the "+" and it does not work either.

Anyone know the escape code?
Posted: November 13th, 2007
stuarcl
This is how I set up to do something similar in the crafting bot. The Recipe needs quotes when doing. The + is supposed to be a shift so the +' should be a "

Beergeek was it typing anything when you tried it?

You might try splitting it up and see if that works.


Recipe_type = "+'Practice Select Plank+'"

VGSendCommand "/RefineSetRecipe " & Recipe_Type

Hmm just noticed you didn't have the & Try adding that...
Posted: November 15th, 2007
User avatar
Total Posts:374 Joined:2005
nothing works ... any other idears?
Posted: November 15th, 2007
beergeek
Yes, stuarcl, that worked... I had fat-fingered it in my script :)

kumpel, just substitute anywhere you want a double quote to appear in the command with +'
Posted: November 15th, 2007
User avatar
Total Posts:374 Joined:2005
const BUFF_Ward_Shield = "/cast ""Ward Shield I"" "


VGSendCommand BUFF_Ward_Shield


this way works for me but is rly slow to use in a farming bot.... while this always type in chat slows the battle alot.
Posted: November 15th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
It is MUCH better to hotkey it. and press the hotkey.

You can speed up the chat typing by calling the input delay API and set it to a lower number, but using hotkeys is the preferred method of casting spells.

_________________
Use Search first, ask questions later!
Posted: November 15th, 2007
User avatar
Total Posts:374 Joined:2005
wyvernx wrote:It is MUCH better to hotkey it. and press the hotkey.

You can speed up the chat typing by calling the input delay API and set it to a lower number, but using hotkeys is the preferred method of casting spells.
was just an idear to make the setup for the users more easy.
you have right i stay on hotkeys.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 7 guests
Locked