Author Topic: Forges - Tile versions  (Read 3233 times)

0 Members and 1 Guest are viewing this topic.

Offline decloTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Forges - Tile versions
« on: March 10, 2016, 02:50:51 PM »
0
Does anyone have a snippet or sub for using tiles forges (those without ids)?

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • 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: Forges - Tile versions
« Reply #1 on: March 10, 2016, 08:40:25 PM »
0
This is one I use in some scripts.  Works OK for most forges, but the IDs were pulled some time ago.

Code: [Select]
;-------------------------------------------------------------------------------
sub SmeltOre         ; JBG
  finditem SUJ_OUJ_KUJ_JBG_CUT_SOJ_HVJ_WUJ_CVJ_KUJ_GUJ G_2
  if #FINDCNT > 0
  {
    menu set EUOEdit_status Smelting ore....
    set %forge #FINDID
    repeat
      set %smelt_continue #FALSE
      findItem TVJ_GWJ_DWJ_EWJ C_ , #BACKPACKID
      if #FINDCNT > 0
      {
        if ( ( #FINDTYPE = TVJ ) && ( #FINDSTACK = 1 ) )
        {
          ignoreitem #FINDID test
          if #FINDCNT > 1
            set %smelt_continue #TRUE
        }
        else
        {
          set #LOBJECTID #FINDID
          set #LTARGETID %forge
          set #LTARGETKIND 1
          event macro 17 0
          target 5s
          event macro 22 0
          wait 15
          set %smelt_continue #TRUE
        }
      }
    until %smelt_continue = #FALSE
  }
  if %sound = #TRUE
    sound
  menu set EUOEdit_status Smelting complete!
  ignoreitem reset test
  finditem %shovel_types C_ , #BACKPACKID
  if #FINDCNT > 0
    set #LOBJECTID #FINDID ; set shovel back to last object.
return

There's extra code in there at the end just because this supported my miner so it just re-finds the shovel.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline decloTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Re: Forges - Tile versions
« Reply #2 on: March 11, 2016, 07:39:26 AM »
0
Thanks!

What about those forges that do not have IDs?  Like those in dungeons.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • 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: Forges - Tile versions
« Reply #3 on: March 11, 2016, 08:27:40 AM »
0
Thanks!

What about those forges that do not have IDs?  Like those in dungeons.

Those do likely pull up with an ID using finditem.  THis sub works well for forges found in town for example.
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: