Alexandria Uptime: 51.42 Days
Total players online: 3



Take the Tour | Site Map

It is currently Fri May 24, 2019 11:14 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Nov 15, 2018 4:25 am 
Offline
Novice Scripter
Novice Scripter

Joined: 12/05/2009 22:45
Posts: 71

Groups:
i been messing around with a potion script i wrote. It works well the only complaint i have is if i start casting a spell it will cancel the spell to drink a potion. Yes i already use if #target = 0. I want to detect if i'm in the middle of casting. Any ideas?


Top
  Profile 
PostPosted: Thu Nov 15, 2018 8:10 am 
Offline
Administrator
Administrator
User avatar

Joined: 08/12/2003 07:28
Posts: 19050
Location: Switzerland

Does #Charstatus change maybe?
A quick and smart Journal-check could help aswell...

_________________
EUO Member and postwhore since: 19th Dezember, 2002; Loosing on freeshard Alexandria since: 5th January, 2005
Searches cure for cancer since: 17th November, 2003 on GRID.org & Worldcommunitygrid.org
Made scripts for Project 'Programmers for Alexandria' worth 50$
Image
Quote "mmorning": Where would theses boards be if Orn didn't miss all the sarcasm. Man its great having him here :)
Quote "author-unknown": Good idea. I gotta start doing that too. You're a trendsetter Orn. :)
Quote "dreyfus": #true is always #true


Top
  ProfileShow poster's scripts in the public script library 
PostPosted: Sat Nov 17, 2018 3:25 am 
Offline
Novice Scripter
Novice Scripter

Joined: 12/05/2009 22:45
Posts: 71

Groups:
status dose not change. journal might work but its too much to put every spell in it.


Top
  Profile 
PostPosted: Wed Dec 26, 2018 3:37 am 
Offline
Legendary Scripter
Legendary Scripter
User avatar

Joined: 07/10/2004 17:11
Posts: 2340

Status DOES change when you cast a spell. It shows "A" in #charStatus. But that's not the whole picture. Because I don't believe it takes faster casting and/or recovery into account. So you'll pause while you cast, and that's the "A" in #charStatus, but any waits for recovery and/or casting need to be accounted for still if you're scripting spells. Probly the best way, is to mark the start of a cast, and time it to a point where you always succeed in the cast, and set a timer for that time. Say like casting a Greater Heal, might take (just as an example) 1.5 seconds to cast. So set a variable to that, check if you get a cursor... and if you don't in that "error timer" 1.5 seconds, then something happened. And during that time you can check for "fizzles" in the journal... and error on that too. What exactly are you trying to do? #charstatus is just part of the solution. And not a great one, because "A" also signifies flying for a gargoyle I think. Been a while since I used it. I have some pretty insane casting subs, and you have to do multiple things to get it really tight and timed well, and get it to account for errors also. But if you're just trying to cast spells, and aren't too worried about timing, just to do a standard casting timer, and if you get a cursor within that time, target the spell, and if not, recast or error in some way... Hope that makes sense.

_________________


Top
  ProfileShow poster's scripts in the public script library 
PostPosted: Sun Dec 30, 2018 1:15 am 
Offline
Novice Scripter
Novice Scripter

Joined: 12/05/2009 22:45
Posts: 71

Groups:
thanks but status is not changing when i cast.


Top
  Profile 
PostPosted: Mon Dec 31, 2018 10:50 am 
Offline
Administrator
Administrator
User avatar

Joined: 08/12/2003 07:28
Posts: 19050
Location: Switzerland

Be sure your statusbar is open?

_________________
EUO Member and postwhore since: 19th Dezember, 2002; Loosing on freeshard Alexandria since: 5th January, 2005
Searches cure for cancer since: 17th November, 2003 on GRID.org & Worldcommunitygrid.org
Made scripts for Project 'Programmers for Alexandria' worth 50$
Image
Quote "mmorning": Where would theses boards be if Orn didn't miss all the sarcasm. Man its great having him here :)
Quote "author-unknown": Good idea. I gotta start doing that too. You're a trendsetter Orn. :)
Quote "dreyfus": #true is always #true


Top
  ProfileShow poster's scripts in the public script library 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.