Author Topic: TrailMyx's Runebook/Spellcast subs for OEUO  (Read 17069 times)

0 Members and 1 Guest are viewing this topic.

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: Runebook/Spellcast subs for OEUO
« Reply #15 on: August 31, 2010, 12:41:36 PM »
0
I have a finditem ID information script for OEUO I haven't published yet.  But it's easy enough to pull that from EUO since I made my Lua stuff compatible with either one.

Just for giggles, might as well use my subs to find out:

saved as: test_findrunebooks.lua
Code: [Select]
dofile("tm_subs_collection5.lua")
count, stack, items = TM_FindItem("ZBN","c", "*", UO.BackpackID)
for x,k in pairs(items) do
  print(string.format("Runebook findid = %d", k.findid))
  print(string.format("    property info: %s",k.property))
end

Produces this output:

Quote
Runebook findid = 1185662592
    property info: Blessed
Weight: 1 Stone
Zippy
« Last Edit: August 31, 2010, 12:51:31 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

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: Runebook/Spellcast subs for OEUO
« Reply #16 on: August 31, 2010, 08:25:53 PM »
0
BTW, figured out what was up with the gating.  Just needed to add a delay.  Lua is so fast that it blew past one of the wait safeguards.
Please read the ScriptUO site RULES
Come play RIFT with me!

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: Runebook/Spellcast subs for OEUO
« Reply #17 on: September 07, 2010, 12:03:12 PM »
0
I'm going to move this to public pretty soon.  I just need to put in the gating delay fix.

Also, has anyone tried the sacred journey capability?  I frankly haven't tested the spellcasting sub for chiv yet, so I'm a bit reluctant to put this public without that section testing.  I'll test myself this coming weekend, but if someone has tried already, I might be able to post sooner.
« Last Edit: September 15, 2010, 08:52:33 AM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

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 for OEUO
« Reply #18 on: September 08, 2010, 09:08:13 PM »
0
These seem to work pretty well now.  Pretty much a direct port of my popular runebook/spellcast subs.  I'm sure they aren't exact, plus my original ones needed some love.  One of these days I'll redo these, but for now it'll get ya'll started.

NOTE to the Elites that downloaded earlier:

This is a newer version where gate travel works correctly.
Please read the ScriptUO site RULES
Come play RIFT with me!

Scrripty

  • Guest
Re: TrailMyx's Runebook/Spellcast subs for OEUO
« Reply #19 on: October 02, 2010, 03:00:42 AM »
0
The recallfromnamedrunebook function keeps getting stuck.  I have it as my first called function in the script.  It gets stuck here after a successfull recall to the correct rune and continues in an endless loop.

Code: [Select]
    while true do
      if spellcast:TM_AdvJournalScan("valid", false, "that location is", "something is blocking", "your spirit lacks") == true then
        spellcast:TM_AdvJournalSync()
        if locindex == locindexend then
          if UO.ContName == "generic gump" and UO.ContSizeX == 452 and UO.ContSizeY == 236 then
            UO.Click(UO.ContPosX + 120, UO.ContPosY + 60, false, true, true, false) -- close the book
            wait(200)
            return true
          end
        end
        locindex = locindex + 1
        if locindex > locindexend then
          return true
        end
        break
      end

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 for OEUO
« Reply #20 on: October 02, 2010, 10:19:31 AM »
0
You'll have to post/pm your code to me.  This works fine for me, so it might be something you're doing.

The test code doesn't get any more simple:

Code: [Select]
dofile("tm_runebook_travel3.lua")

if TM_Runebook_Travel ~= 3 then
  print("Warning - TM_Runebook_Travel version 3 expected in tm_runebook_travel3.lua")
end
              
if TM_TravelFromNamedRunebook("re",1,1,"Zippy") == false then -- recalll to rune location 1 in runebook named "Zippy"
  print("cannot find specified runebook")
end

So you're going to have to give me ALOT more information.  Does it stop all the time?  Only sometimes?  Are you low on mana?  Are you at 100 magery?  Etc. etc. etc. etc.

"Script broke" doesn't help.
« Last Edit: October 02, 2010, 11:31:02 AM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Scrripty

  • Guest
Re: TrailMyx's Runebook/Spellcast subs for OEUO
« Reply #21 on: October 02, 2010, 07:59:15 PM »
0
I just wrote my own tool to do it.  Thanks tho.  I'm not proficient enough to debug someone elses code yet.

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 for OEUO
« Reply #22 on: October 02, 2010, 08:20:49 PM »
0
I just wrote my own tool to do it.  Thanks tho.  I'm not proficient enough to debug someone elses code yet.

Ok then.
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: