View Single Post
  #6  
Unread 01-05-2008, 10:40 PM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

There is a command to stop casting (and if you did it twice it should clear the queue I think) -- I just forget it off the top of my head.

As for it auto-detecting if you can use the spell or not... I'm not sure about that. I suppose in theory if you try to cast the spell and then use the potion, it should work... ie if you can cast the spell, the potion wont work since you're currently casting. In the opposite case, the spell will do nothing since you don't have it and so the potion will be used.

You'd have to modify the lines to be something like this:

OnPress="stop_casting
stop_casting
useabilityonplayer parent.parent.Name.LocalText Cure <whatever>
useitem_vdl <number>"

Notice that it's ok (and required I think) to have the commands on separate lines, but you have to have the entire block quoted or it won't work one bit. I'm not sure if stop_casting is the right command for that, but thta should be easy enough to verify in-game.
Reply With Quote