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

0 Members and 1 Guest are viewing this topic.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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 #105 on: August 17, 2014, 09:29:24 PM »
0
Have you checked to see if the journal stuff is working in EUO? Perhaps a small bit of test code to verify.  You may jave to single step through the code to see what the variables are.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 2998
  • Activity:
    3.4%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +205
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #106 on: March 09, 2015, 03:08:28 AM »
0
I am just testing this out and I have a couple of questions. I really like it so far but for what I am doing, I do not necessarily want it to go to the next rune if one is blocked. I would like for it to wait for a minute and then try it again a couple of times, if that does not work, then I would like it to go to a specific rune. Is that something possible with this? I just put it in late last night and I am rushing to work so I am afraid I did not give the forum and script it's due diligence yet.  :'(

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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 #107 on: March 09, 2015, 09:18:34 AM »
0
You'll have to handle the recasting yourself if you change this bit of code in the TM_TravelFromObject sub:

Code: [Select]
    if ( ( #CHARPOSX = !oldx && #CHARPOSY = !oldy ) && #SCNT < !tempscnt )
      goto WaitforTravel2_loop1
to this

Code: [Select]
    if ( ( ( #CHARPOSX = !oldx && #CHARPOSY = !oldy ) && ( #SCNT < !tempscnt ) ) || ( !locindex > !locindexend ) )
      goto WaitforTravel2_loop1

This should make TM_TravelFromObject return a #FALSE (no error) so it assumed the attempt was successful.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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 #108 on: March 09, 2015, 09:54:21 AM »
0
I read your post a little more closely..  Probably need something different.  Which runebook sub are you calling?  TM_TravelFromRunebook?
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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 #109 on: March 09, 2015, 10:05:00 AM »
0
Ok, so looking at your request more closely, you can pretty much do what you need to without having to modify the subs at all.  However, you'll need to manage the next rune yourself.  Here's an example (untested):

Code: [Select]
set %first 1
set %last 16
set %runebook XXYYZ1

set %index %first
set %fail #TRUE
set %give_up #FALSE
repeat
  gosub TM_TravelFromRunebook RE %index %index %runebook
  set %fail #RESULT
  if %fail = #TRUE
  {
    set %index %index + 1
    if %index > %last
      set %give_up #TRUE
    ; -- go do something else here in the mean time time, wait, whatever.
  }
until ! %fail || %give_up
;Either worked (%fail = #false) or gave up
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 2998
  • Activity:
    3.4%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +205
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #110 on: March 09, 2015, 07:28:38 PM »
0
Thank you, I will check that out tomorrow when I have some time!

Offline ErwinEUO

  • Jr. Member
  • **
  • Posts: 17
  • Activity:
    0%
  • Reputation Power: 1
  • ErwinEUO has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #111 on: August 24, 2016, 06:13:49 AM »
0
Hi There,

I'm testing out some simple functionality on OSI shard, would appreciate some help.

Per the script comments, I'm expecting the script to recall to the 2nd rune if 1st rune is blocked.  Replication: simply run the script while standing on first rune location.

Code: [Select]
set %runebookid XXXXXXX
gosub TM_TravelFromRunebook RE 1 2 %runebookid
halt

Code keeps retrying on this loop in sub TM_TravelFromRunebook
Code: [Select]
TravelFromRunebook_loop1:
...(deleted)...
    if !method = RE
      gosub TM_NewCastSpell 31 !rbook -1 10 10 ; recall until successful


My limited skills unfortunately prevent me from debugging the journal scanner, so I'm asking for help.  Any ideas?

Really appreciate the time and effort put into these subs!!

Thanks

Erwin

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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 #112 on: August 24, 2016, 09:13:35 AM »
0
Hi There,

I'm testing out some simple functionality on OSI shard, would appreciate some help.

Per the script comments, I'm expecting the script to recall to the 2nd rune if 1st rune is blocked.  Replication: simply run the script while standing on first rune location.

Code: [Select]
set %runebookid XXXXXXX
gosub TM_TravelFromRunebook RE 1 2 %runebookid
halt

Code keeps retrying on this loop in sub TM_TravelFromRunebook
Code: [Select]
TravelFromRunebook_loop1:
...(deleted)...
    if !method = RE
      gosub TM_NewCastSpell 31 !rbook -1 10 10 ; recall until successful


My limited skills unfortunately prevent me from debugging the journal scanner, so I'm asking for help.  Any ideas?

Really appreciate the time and effort put into these subs!!

Thanks

Erwin

At this line:
Code: [Select]
      gosub TM_NewCastSpell 31 !rbook -1 10 10 ; recall until successful

if you change the -1 to some number greater that 0, it will retry that many times before it gets back to the location test.  So if you have good enough magery so that you don't fail and you aren't using reagents, then you should be successfully 100% and can at least get back to the location change code. 
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ErwinEUO

  • Jr. Member
  • **
  • Posts: 17
  • Activity:
    0%
  • Reputation Power: 1
  • ErwinEUO has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #113 on: August 24, 2016, 12:42:11 PM »
0
Thanks a lot for the help, this is working beautifully now!

Erwin

Offline Gemviper

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #114 on: February 22, 2018, 02:17:17 AM »
0
Old thread, I know, but anyone reading it now will ask this so...

- Is there a reliable travel sub like this one that works with a runic atlas?

Just asking before I go create yet another.

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 #115 on: February 22, 2018, 12:21:16 PM »
0
I beleive EasyUO have one, Mr S made it.   Not sure how it work.

Offline Fabolous1

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 1
  • Fabolous1 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Trailmyx's Runebook/Spellcast Subs
« Reply #116 on: January 18, 2020, 08:32:06 AM »
0
Is there anyway to read the rune name of a specified rune in a runic atlas / rune book?

Or has anybody added Runic Atlas subs? Surely somebody has already :)

EDIT: Thanks to Gaderian, kalocr was updated with runic atlas subs today 1/18/2020 :) Check it out at http://www.easyuo.com/forum/viewtopic.php?f=3&t=53735&hilit=kalocr
« Last Edit: January 18, 2020, 04:47:14 PM by Fabolous1 »