Author Topic: What's the deal with trees?  (Read 4230 times)

0 Members and 1 Guest are viewing this topic.

Offline DeadIssue2Topic starter

  • Sr. Member
  • *
  • Posts: 287
  • Activity:
    0%
  • Reputation Power: 3
  • DeadIssue2 has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 1
    • View Profile
What's the deal with trees?
« on: March 15, 2009, 05:27:50 AM »
0
Almost every scripter that I know of is terrified of trees.

When I say that you must understand that I have been trying for ages to write or get someone to help me with making a gating lumberjack script similiar to the gating mining script. I figure, man how easy can you get, most of the script is done just have to change the mine subs to jackin sub. So I guess I am wrong. Someone tried to tell me that finding the ID's of trees is very hard not to mention getting it to find and hit each of them. Is this true or false??

Basically what i'm looking for here guys is some one to explain in detail the process of walking up to a tree and using an axe on it to get logs. I swear this sounds simple enough but not one scripter that I know is able to do this.

Offline TrailMyx

  • 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: What's the deal with trees?
« Reply #1 on: March 15, 2009, 10:48:34 AM »
0
Ah, it's not very hard.  It's different than normal item scanning.  I'll explain some from my Beetle Lumberjacker.

The best way to hunt for trees is to use the tile stacks.  First you need in your code somewhere in your setup section:

Code: [Select]
tile init

Then you need a determine how many different tiles are located at a specific location:

Code: [Select]
; !targx, !targy computed somewhere relative to your character...
tile cnt !targx !targy #CURSKIND
if #TILECNT > 0
{
  for !i 1 #TILECNT
  {
    tile get !targx !targy !i #CURSKIND
    if tree in #TILENAME
    {
      ; you found a tree, wack it.
    }
  }
}

But how do you wack it?  Well you need to save the stack information found to the last target tiles stuff by:

Code: [Select]
set #LTARGETX !targx
set #LTARGETY !targy
set #LTARGETZ #TILEZ
set #LTARGETTILE #TILETYPE
set #LTARGETKIND 3

Now you can use "event macro 22" on the tile space to hack at.




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

Offline DeadIssue2Topic starter

  • Sr. Member
  • *
  • Posts: 287
  • Activity:
    0%
  • Reputation Power: 3
  • DeadIssue2 has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 1
    • View Profile
Re: What's the deal with trees?
« Reply #2 on: March 15, 2009, 11:34:05 AM »
0
where might I take a look at your beetle lumberjack script? Maybe in context this makes more sense.

Offline TrailMyx

  • 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: What's the deal with trees?
« Reply #3 on: March 15, 2009, 11:45:36 AM »
0
I haven't released the beetlejacker script to anyone but the Elites.  However, if you go take a look at the recall lumberjacker they have over at WinUO, that script uses tiles and scans your general proximity for trees.

Cerveza was working on a similar script based on j4bs original work, but I'm not sure if his intention was to release it to the general public.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: What's the deal with trees?
« Reply #4 on: March 15, 2009, 01:32:23 PM »
0
j4bs had a major issue with banking. When I feel the need for trees I'll kick it back up and see what the problems are.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Khameleon

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: What's the deal with trees?
« Reply #5 on: March 15, 2009, 02:16:06 PM »
0
beetle Jacker one great script. to advanced to let the whole world in on it yet.

Offline TrailMyx

  • 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: What's the deal with trees?
« Reply #6 on: March 15, 2009, 02:18:25 PM »
0
Those little hinty-poos I gave you DeadIssue2 are pretty much the meat of any lumberjacking script.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline DeadIssue2Topic starter

  • Sr. Member
  • *
  • Posts: 287
  • Activity:
    0%
  • Reputation Power: 3
  • DeadIssue2 has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 1
    • View Profile
Re: What's the deal with trees?
« Reply #7 on: March 15, 2009, 02:53:18 PM »
0
I am on the right track for sure thanks to you guys. I had to go back to EZuo site to find documentation on the different commands you are referencing. Lucky for me I found an old essay on it how to use it and what its for. Hopefully that puts things into a better light for me. I will worry about banking later. And yes the recall miner from WinUO is a good start esp since I can set that one up to gate. I just need to remove the mining nonsense and replace with LJ subs. I will have to make due without the beetle lumberjacker for now; I don't think I am Elite yet tho I wouldn't mind joining the club someday.

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: What's the deal with trees?
« Reply #8 on: March 16, 2009, 05:37:29 PM »
0
thiers plenty of good lumberjacking scripts out thier.. on easyuo on winuo.. and many people have thier own custom versions .. myself included... but as TM said the principle in all of them is the same.

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 DeadIssue2Topic starter

  • Sr. Member
  • *
  • Posts: 287
  • Activity:
    0%
  • Reputation Power: 3
  • DeadIssue2 has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 1
    • View Profile
Re: What's the deal with trees?
« Reply #9 on: March 16, 2009, 05:45:16 PM »
0
No doubt there is no shortage of lumberjacking scripts but the two troubles I have been having with them is they are not SIEGE specific. We can not recall or sacred journey so most of these scripts just point and laugh at me :) The other trouble is I am currently not so very good at writing or understanding half of what those scripts are doing. I am currently learning as I go and asking a TON of questions. Thanks go out to both TM and Cerveza who have both been so helpful with all my annoying questions.

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: What's the deal with trees?
« Reply #10 on: March 16, 2009, 05:46:47 PM »
0
have a look at the walking mining mubler bot on easyuo. its old and its mining but can be modififed.
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."

Tags: