ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Noobie on February 02, 2010, 08:18:23 AM
-
-
If you have the #lTarget X and Y then you can get the direction they are in, then just teleport that direction....
if #lTargetX > #charPosX
return EAST
if #lTargetY > #charPosY
return SOUTH
Something along those lines....
-
Would this work? Now all I would have to decide how I want to initiate it. HotKey is what i was thinking, but not sure.
Set %X ( #cliXRes - #cliLeft ) / 2
Set %Y ( #cliYRes - #cliTop ) / 2
sub finddirection
IF #lTargetY > #charPosY && #lTargetX > #charPosX
gosub NE
IF #lTargetY < #charPosY && #lTargetX > #charPosX
gosub SE
IF #lTargetY > #charPosY && #lTargetX < #charPosX
gosub NW
IF #lTargetY < #charPosY && #lTargetX < #charPosX
gosub SW
IF #lTargetX > #charPosX
gosub E
IF #lTargetX < #charPosX
gosub W
IF #lTargetY < #charPosY
gosub S
IF #lTargetY > #charPosY
gosub N
sub NE
Set %Y %Y + 10
Set %X %X + 10
gosub offsetclick %X %Y
sub SE
Set %Y %Y - 10
Set %X %X + 10
gosub offsetclick %X %Y
sub NW
Set %Y %Y + 10
Set %X %X - 10
gosub offsetclick %X %Y
sub SW
Set %Y %Y - 10
Set %X %X - 10
gosub offsetclick %X %Y
sub N
Set %Y %Y + 10
gosub offsetclick %X %Y
sub S
Set %Y %Y - 10
gosub offsetclick %X %Y
sub E
Set %X %X + 10
gosub offsetclick %X %Y
sub W
Set %X - 10
gosub offsetclick %X %Y
-
Throw bola.
Teleport near target.
Teleport near target a second time.
No script needed. ::)
-
You could find the direction they are in, then use that info to see if they are within 11 tiles, and if they are, use their current x,y coords - one tile towards you to teleport next to them... only way it wouldn't work was if something was blocking that location, say a field, or a rock, or whatever... or someone/thing else on that tile...?
-
Twinkle McNugget that was what i thought but, their XY coords are map based and my cursor XY is what i would have to set to click on the tile. So you have to convert their map XY into a cursor XY so that you can click on the tile next to them.
-
Or just start at 11 and move back 1 (closer to you) until you hit a teleport spot.
-
So post up some code and lets see what you got.
-
Well that is all I have done at this point I did that here at work and have not even been able to test it yet just free writing still. After Class tonight I will see what else I can do. I will post so you can help me stream line it Twinkle McNugget. Thanks for the help as well Cerveza.
-
you'll also need to scan the tiles too to make sure there is nothing that will prevent the teleport.
honestly I think it would be too unreliable to bother with.
it really just takes practice. that's all I do on my main shard where we actually fightning even numbers at times. i usually crossheal & pull enemy bars. once I have bars I just start picking them off one at a time.
the only useful script for bolaing that I would bother with would be one that picks up the bolas (on hotkey is how I would prefer it) and/or one that keeps your weapon armed (toast on a mage on foot if you forget it). I hate scripts that auto pickup the bolas though that arn't on a hotkey. all my stupid guildies take em and dont even use em it's such a pain.
-
I like the
Pick Up Bola
Use Bola
Select Nearest Hostile
Throw Bola
Macro :)
Cracks me up when I get put on my ass by some large group and I just pick up the bola and relaunch it at someone. IT was better back when you could instantly remount.
-
I remember when the first anti-bola scripts came out.... we'd run around spamming "menacingly" and watch entire guilds dismount in unison. Funny.
-
That would be sweet. I wonder if anyone is still using one like that. Will have to see tonight. Creveza what you should hit me up with a PM about what shard you are on I could make me a new toon there to hang out a bit.
-
Yea I have to agree that it's better to just practice it! Mainly because you can do all the math to teleport towards your target, but you still have to check to make sure it's a clear spot, and if it isn't then you have to recast and find a new target and it's just not worth it, they'll be gone by then! Just have a script to pick them up as was mentioned before, then just make a macro that is Use Bola -> Last Target -> Cast teleport and do the clicking yourself!
-
Yea I have to agree that it's better to just practice it! Mainly because you can do all the math to teleport towards your target, but you still have to check to make sure it's a clear spot, and if it isn't then you have to recast and find a new target and it's just not worth it, they'll be gone by then! Just have a script to pick them up as was mentioned before, then just make a macro that is Use Bola -> Last Target -> Cast teleport and do the clicking yourself!
I still think it would be easy to do an offset click from the location of your target... then you could just teleport over and over anytime you liked. Hit a macro and it would try to teleport to them -1 tile...
-
Nubs, All nubs. All you have to do is look for : in your journal and that tells you a player said it and it wasn't an actual bola.
-
Nubs, All nubs. All you have to do is look for : in your journal and that tells you a player said it and it wasn't an actual bola.
Yea, especially if you're doing it line by line... you can just say if : in #journal && menacingly in #journal then SKIP THAT. :)
-
I laugh at the people who have terrible trapped box scripts too :P
-
I laugh at the people who have terrible trapped box scripts too :P
I have to post the pictures I just recently put up here... I watched the guy go afk, and I stealthed up to him and had him to myself for a full 30 seconds, and he drank pots and healed through it. Then he comes back, and I ripped him to shreds, and said, "Pot/bandaid scripts are no substitute for real skill bud." hehe If you know how to script AND pvp, you're SO much better for it. haha
-
Saw this over at EUO, it's Roadkills
[code];=========================
SUB TeleToSpot
;ver 1.0 13 May 03 by Roadkill
;purpose: check distance within teleport range <=11 tiles, teleport to a passed in spot
;%1 = X tile coord
;%2 = Y tile coord
;%3 = Z tile coord, optional
IF %0 < 3 || %3 = N/A
SET %3 #CHARPOSZ
SET %_xDist #CHARPOSX - %1 abs
SET %_yDist #CHARPOSY - %2 abs
IF %_xdist > 11 || %_ydist > 11
RETURN
event Macro 15 21
SET #LTARGETX %1
SET #LTARGETY %2
SET #LTARGETZ %3
SET #LTARGETKIND 2
target
event macro 22
WAIT 30
RETURN
LINK (http://www.easyuo.com/forum/viewtopic.php?t=41965&highlight=event+pathfind+move) donno what it's from, it was posted in a reply about move vs event pathfind.[/code]