Author Topic: Trailmyx's Runebook/Spellcast Subs  (Read 108378 times)

0 Members and 3 Guests are viewing this topic.

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #75 on: October 24, 2011, 11:44:24 AM »
0
Set %GateType OTF_JEF_KEF  ; Regular Gates _ SP Gates
?

Are you saying that yes, these are definitely the only Itemtype values for Gate's? Here is the output from the EasyUO database:

Quote
KEF red moongate
JEF red moongate
EEF red moongate
DEF red moongate
GEF red moongate
OTF blue moongate
NTF blue moongate
QTF blue moongate
PTF blue moongate
AUF blue moongate
LCK summon moongate
OCK summon moongate
NCK summon moongate
YCK summon moongate
XCK summon moongate
ADK summon moongate
ZCK summon moongate
UCK summon moongate
TCK summon moongate
HDK summon moongate
CDK summon moongate
BDK summon moongate
EDK summon moongate
DDK summon moongate
ODK summon moongate
NDK summon moongate
QDK summon moongate
PDK summon moongate
ZYL summon moongate
UYL summon moongate
TYL summon moongate
WYL summon moongate
VYL summon moongate
GZL summon moongate
FZL summon moongate
IZL summon moongate
HZL summon moongate
CZL moongate
BZL moongate
EZL moongate
DZL moongate
OZL moongate
MZL summon moongate
LZL summon moongate
WZL summon moongate
VZL summon moongate
YZL summon moongate
XZL summon moongate
SZL summon moongate
RZL summon moongate
UZL summon moongate
TZL summon moongate
EAM summon moongate
DAM summon moongate
GAM summon moongate
FAM summon moongate
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6206
  • Activity:
    3.2%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #76 on: October 24, 2011, 11:47:19 AM »
0
Siege remember, but this is all i use and I have never missed one.

Offline Hrafn

  • Jr. Member
  • **
  • Posts: 39
  • Activity:
    0%
  • Reputation Power: 0
  • Hrafn has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #77 on: January 13, 2013, 11:26:37 AM »
0
For  starters: Thank you for releasing this script. Even a non-programmer like myself manage to use this :)

So i have been tinkering with a script where i basically need to recall from a named runebook (TEST1) starting at rune 1 and working my way down to rune 16. The way i got it to work was like this:
gosub TM_TravelFromNamedRunebook RE 1 1 TEST1
gosub TM_TravelFromNamedRunebook RE 2 2 TEST1
gosub TM_TravelFromNamedRunebook RE 3 3 TEST1
gosub TM_TravelFromNamedRunebook RE 4 4 TEST1
gosub TM_TravelFromNamedRunebook RE 5 5 TEST1
and so on..
and its working :)

But i got a sneaking feeling that there might be a more efficient way of doing this? I have been looking into various recall miners and lumberjacks to see how they do it, but it quickly gets to complex for my limited noob understanding. Any helpful pointers would be greatly appreciated  :o

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #78 on: January 13, 2013, 01:23:04 PM »
0
But i got a sneaking feeling that there might be a more efficient way of doing this? I have been looking into various recall miners and lumberjacks to see how they do it, but it quickly gets to complex for my limited noob understanding. Any helpful pointers would be greatly appreciated  :o


And you were right... algerbra baby.. x =1 to 16.... on first pass x=1 on second pass x=2 etc until x=16

Code: [Select]
for %x 1 16
   {
  gosub TM_TravelFromNamedRunebook RE %x %x TEST1
   }
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline Hrafn

  • Jr. Member
  • **
  • Posts: 39
  • Activity:
    0%
  • Reputation Power: 0
  • Hrafn has no influence.
  • Gender: Male
  • Respect: +11
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #79 on: January 13, 2013, 03:26:10 PM »
0
WOW!

I would never have figured that out by myself. Works flawless! Thank you for the help!!


Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #80 on: September 08, 2013, 05:33:23 PM »
0
So reading below, is there a way to do this a simple way.

I'm trying to recall to a location perform a task, recall to a new location and redo the same task.
Quote
repeat
 gosub TM_TravelFromNamedRunebook RE 1 1 AXE
 gosub TestLoop
 gosub TM_TravelFromNamedRunebook RE 2 2 AXE
 gosub TestLoop
 gosub TM_TravelFromNamedRunebook RE 3 3 AXE
 gosub TestLoop
until #CHARGHOST = yes



Is there a way to do something like this , but that increase rune by 1 each time.
Quote
repeat
for %x 1 16
   {
  gosub TM_TravelFromNamedRunebook RE %x %x AXE
  gosub TestLoop
   }
until #CHARGHOST = yes

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #81 on: September 08, 2013, 06:02:32 PM »
0
Exactly, you got it! 
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #82 on: October 05, 2013, 09:28:17 AM »
0
TM 
what does this do  and what happen if we don't insert it.   thx 

 Requirements:
;
;    This script requires that you have your character name
;    setup in a variable called %charname.  Place this bit of code
;    in your script initialization somewhere:
;
;   gosub TM_AddUnderscore #CHARNAME
;   set %charname #RESULT

Offline Grandewd

  • Full Member
  • ***
  • Posts: 239
  • Activity:
    0%
  • Reputation Power: 3
  • Grandewd has no influence.
  • Respect: +24
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #83 on: December 25, 2013, 06:16:50 PM »
0
Hey TM.... I use your TM_TravelFromRunebook in so many of my scripts, but since this last patch it's really flakey... Can you test it?

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #84 on: December 25, 2013, 08:39:50 PM »
0
I'd just wait for Cheffe to look at EasyUO.  There's something wrong with the container stuff.  

Also, please explain flakey....
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #85 on: December 25, 2013, 08:45:34 PM »
0
I'd just wait for Cheffe to look at EasyUO.  There's something wrong with the container stuff.  

Also, please explain flakey....

I've experienced the same, and it's not just this last patch:

Occasionally, my character will keep trying to SJ even after he successfully made it.  After three or four tries (usually) the script continues.  I don't think it is lag related, and it's really wigging me out.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #86 on: December 25, 2013, 09:36:40 PM »
0
Sacred Journey is a hard one because if you have very high mana regeneration, then you might beat the mana check the script makes.  There is no journal spam for chivalry stuff, so the only way to know if you have done a successful SJ is to check a mana drop.  You can try and minimized the delays in the TM_NewCastSpell gosub.

You should be using recall for bullet-proof spell casting (because you can use journal scanning then)
« Last Edit: December 25, 2013, 09:38:32 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #87 on: December 26, 2013, 04:33:19 AM »
0
You can bust out of TM's sub with a location checking sub. Grab X/Y before the cast then after the cast. Not too troublesome.

Either way, nothing to do until the #CONT stuff is fixed. So glad I don't patch until I have to! :)

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #88 on: December 26, 2013, 07:25:07 AM »
0
You can bust out of TM's sub with a location checking sub. Grab X/Y before the cast then after the cast. Not too troublesome.

Either way, nothing to do until the #CONT stuff is fixed. So glad I don't patch until I have to! :)

X

There's a patch?  =P

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #89 on: December 26, 2013, 07:36:40 AM »
0
Nice :)
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night