Page 1 of 1
FEAT REQ: Sit State and Walk State
Posted: Mon Oct 07, 2002 4:13 am
by Fippy
I would like to be able to check if I am sat down and also check if I am walking or running.
$sit()=="TRUE" if I am sat down and $walk()=="TRUE" if I am walking.
Fippy
varible
Posted: Mon Oct 07, 2002 11:32 am
by FlashG
This can be done now with a workaround. Why not just use the commands /sit and /stand (may need ON and OFF options too) As far as movement just check the your location to see if its different. Having the varible would be nice but not essential.
Posted: Mon Oct 07, 2002 11:34 am
by Valerian
/sit toggles your sit state now for some reason, whether you use ON or OFF it doesn't matter. if sitting, you stand, if standing you sit. I think this would be a great feature
Posted: Mon Oct 07, 2002 11:53 am
by Fippy
Yeah thats exactly my problem sometimes beacause of lag my sript gets confused and i have to restart.
The $walk thing is so I could switch from running to walking as i approach a point i want to do something at, e.g. doors. If I am within a few ticks of a door I would switch from running to walking and then when i get there open it then start running again. I also do this manually atm but again sometimes beacause of lag things screw up and I end up running instead of walking and vica versa.
Why walk you may be wondering. Well I find that quite often GotoLoc runs me around and around in circles when i get close to a loc until i get close enough to it. I am pretty sure it looks like i have had whirl till you hurl cast on me from outside :-) If i could re-write gotoloc to switch to walking mode as you get near it should reduce this problem.
Fippy.
Posted: Mon Oct 07, 2002 1:29 pm
by macromage
Code: Select all
Sub Sit
/if n $p0==1 {
/if n $v0==1 /return
/varset v0 1
/sit
}
/if n $p0==0 {
/varset v0 0
/stand
}
/return
Then you can call the routine with...
Code: Select all
/call Sit 0 | This will stand
/call Sit 1 | This will sit
$v0 | returns 0 or 1 depending on your current state.
Use your imagination, and something very similar will work for walk/run as well.
Posted: Mon Oct 07, 2002 2:25 pm
by Genoius
Aye, I had this same problem. I like the above code more than mine, since all I had was this to make sure I sat back down after casting.
This made me stand if I was sitting, or stay standing if i was already up, then made me sit.
---Genoius---
Posted: Mon Oct 07, 2002 3:27 pm
by S_B_R
yep that's what I do too

Posted: Mon Oct 07, 2002 3:59 pm
by Fippy
OK then picture this situation.
I am tanking with my cleric botted using the excellent cleric macro from the Macro Depot. My second PC being a bit of an old beast lags a bit just as I am starting to get really low hp. My script kicks in and tells my cleric to get off his but and cheal me. The lag is really bad though and he doesnt respond to the /sit off so hes still sat down 'You must be standing to cast a spell' says EQWatcher on my ther PC. Bugger I say and trigger my LOH. Things are getting desperate. My Cleric bot thinks hes stood up now but he aint and so he sits down to med and actually stands up since lag isnt to bad now. I am gonna need that Cheal again pretty soon so I am gonna have to do that 10ft dash and leap over the sofa to get my bot back on track. On my way the mob aggros the wizzie in the group so my now unattended Pally is stood like a dork doing nothing. I get the cleric sat down again and do the dash back to my main. I turn him around and taunt the mob of the wizzie whos shouting nast things to me and finally the mob goes down.
I then collapse of heart failure.
Now if I had $sit I could make the code cope with this situation (that really happened, well apart from the heart failure bit :-) )without a million /if's and events.
Fippy
Posted: Mon Oct 07, 2002 6:47 pm
by rootmoth
I'm pretty sure that /sit off always stands you up, but /sit on will make you sit or stand.
I would have to play around with it again, but that's my in-game experience.
Posted: Mon Oct 07, 2002 7:52 pm
by Genoius
/sit and /stand work, so if you /stand BEFORE you /sit, no matter what you are doing, whether standing, or sitting, you will STAND, then SIT. could try editting spellsub.mac a eensy bit for "You must be standing to cast" to trigger /stand then re-cast the spell.
So, /sit then /stand!
BTW, /sit off, if i recall, makes you sit or stand, as well as /sit on does the same thing(its doesnt recognize the operators, just to make you do whichever you arent doing), but /stand always makes u stand, whether standing or sitting...hope the majority of you can understand what i just tried to say there
[:edit:]Also, i do understand what you are saying, fippy. $sit would be nice to have. for now, try that workaround for the sake of your heart![end edit]
---Genoius---
Posted: Wed Oct 09, 2002 11:24 pm
by AMadMonk
I believe that the sit/stand state and the walk/run state are new memory locations.
I would love to see the run state location added -- a lot of my macros (PL and xp'ing macros) need to change their behavior based upon whether the toon is running or not (don't bother casting if running, etc.) and right now I have to use a complicated system of pulleys and hooks (IE, state variables and /if's) to get it to "sorta" work.
Posted: Thu Oct 10, 2002 9:21 am
by macromage
unattended Pally is stood like a dork doing nothing.
Flippy! You said the U word... unattended=bad
Posted: Thu Oct 10, 2002 9:27 am
by Fippy
Ony unattend as in not within arms reach. I dont class that as unattended macroing. Starting your script and then going to bed or something, thats unattended. I mean Sony even gave away account keys and mentioned getting asecond acount and playing both at the same time in the email. I think that expecting people to run 2 characters without and assistance is a bit nieve of them.
Fippy