Author Topic: lumber issue  (Read 6033 times)

0 Members and 1 Guest are viewing this topic.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
lumber issue
« on: August 15, 2011, 12:20:46 PM »
0
I just started playing with some lumber scripts...

The thing is, I used this stuff I wrote this morning, and it was working, and now it doesn't work anymore.

I'm setting #ltargetx #ltargety #ltargetz #ltargetkind #ltargettile to the tree, and using the axe, and then event macro 22...

A message appears: You can't do that.

Anyone know what's causing this?

Cheers!

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Goliath

  • Sr. Member
  • *
  • Posts: 424
  • Activity:
    0%
  • Reputation Power: 5
  • Goliath has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
Re: lumber issue
« Reply #1 on: August 15, 2011, 12:26:56 PM »
0
I haven't yet given it a shot to write a script, but at first glance people are going to need more information.

1) Where are you when it happens (ie.. at home, bank, near a tree)?
2) Does it happen after you recall to a location (ie no axe in hand)?
3) Does it loop and continue you give this message?
4) Any chance I can see it in action?

Or... Maybe I am wrong and someone here can answer this on the fly ;D

Like I said... I haven't made my first script yet... But I would like to consider myself an avid scripter.

On second thought... you would probably be best to ignore me.. LOL

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: lumber issue
« Reply #2 on: August 15, 2011, 12:30:32 PM »
0
Well, I'm just testing some stuff... So, I stand near a tree, double-click my axe, and target the tree. It starts chopping...

Then I set the ltargetx, y, z, etc to the tree's.

Then I try something like this, standing in the same position:

set #ltargetx %1
set #ltargetz %2
set #ltargety %3
set #ltargetkind %4
set #ltargettile %5
finditem %axe C_ , #charid
set #lobjectid #findid
event macro 17
repeat
wait
until #targcurs = 1
event macro 22

Am I doing something wrong?
Weird thing is that this worked for me this morning (unless I'm going crazy or sth), and now I get a message:
You can't do that...
:(

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6206
  • Activity:
    3%
  • 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: lumber issue
« Reply #3 on: August 15, 2011, 12:39:16 PM »
0
Where did you test?

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: lumber issue
« Reply #4 on: August 15, 2011, 12:43:48 PM »
0
Where did you test?

Malas and Ter Mur so far....
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: lumber issue
« Reply #5 on: August 15, 2011, 12:46:00 PM »
0
Just tested trammel, no luck either!
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
Re: lumber issue
« Reply #6 on: August 15, 2011, 12:55:12 PM »
0
for example
Code: [Select]
tile Init
  for %x -2 2
  {
    for %y -2 2
    {
      set %xx #CHARPOSX + %x
      set %yy #CHARPOSY + %y
      set #LTARGETX %xx
      set #LTARGETY %yy
      tile Cnt #LTARGETX #LTARGETY 1
      tile Get #LTARGETX #LTARGETY #TILECNT 1
      if tree in #TILENAME
      {
        set #LTARGETTILE #TILETYPE
        set #LTARGETKIND 3
        set #LTARGETZ #TILEZ
        set #LOBJECTID %AXE
        event Macro 17 0
        target 2s
        event Macro 22
        gosub scan_journal
      }
    }
 }

Oh and yes, tile scaning does not work in ter-mur
« Last Edit: August 15, 2011, 12:56:58 PM by camotbik »
What you witness -- is whatver..
uogamers hybrid.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: lumber issue
« Reply #7 on: August 15, 2011, 12:57:54 PM »
0
for example
Code: [Select]
tile Init
  for %x -2 2
  {
    for %y -2 2
    {
      set %xx #CHARPOSX + %x
      set %yy #CHARPOSY + %y
      set #LTARGETX %xx
      set #LTARGETY %yy
      tile Cnt #LTARGETX #LTARGETY 1
      tile Get #LTARGETX #LTARGETY #TILECNT 1
      if tree in #TILENAME
      {
        set #LTARGETTILE #TILETYPE
        set #LTARGETKIND 3
        set #LTARGETZ #TILEZ
        set #LOBJECTID %AXE
        event Macro 17 0
        target 2s
        event Macro 22
        gosub scan_journal
      }
    }
 }

Oh and yes, tile scaning does not work in ter-mur
Yeah, I know it doesn't work... But I was manually setting the tile, just to test something, and it's not working... :(
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: lumber issue
« Reply #8 on: August 15, 2011, 01:11:13 PM »
0
Weird...
I just changed the order of this



to this:

set #ltargetx %x
set #ltargety %y
set #ltargetz %z
set #ltargettile %tile
set #ltargetkind %kind

And now it's working! :O

Maybe I had a typo before? Or I dunno... I think I'm spending too much time in front of the computer these days! :)

Thanks for the quick replies guys!

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Hoby

  • Elite
  • *
  • *
  • Posts: 1344
  • Activity:
    0%
  • Reputation Power: 14
  • Hoby barely matters.Hoby barely matters.
  • Gender: Male
  • Respect: +79
  • Referrals: 1
    • View Profile
Re: lumber issue
« Reply #9 on: August 15, 2011, 02:52:51 PM »
0
Kudos for you for trying to write a script and being able to trouble shoot it.  Thata more than I've ever done.
I like you, your death shall be quick and painless!!
I may have alzheimers, but at least I don't have alzheimers.
Walruses are like vampires, only awesome
Pwned-The total domination or shut down of a person or thing. 
I believe a hangover is gods way of saying you kicked ass last night!
Life's to short to remove usb safely.

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6206
  • Activity:
    3%
  • 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: lumber issue
« Reply #10 on: August 15, 2011, 03:00:41 PM »
0
Is there a default z value?


Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: lumber issue
« Reply #11 on: August 15, 2011, 03:46:15 PM »
0
Is there a default z value?


No, the z value varies too.

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

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: lumber issue
« Reply #12 on: August 16, 2011, 05:09:32 PM »
0
set targetz to 0
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 NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: lumber issue
« Reply #13 on: August 16, 2011, 05:54:17 PM »
0
set targetz to 0
If you set it generically to 0, it'll work for every tree?
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

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: lumber issue
« Reply #14 on: August 16, 2011, 06:30:55 PM »
0
set targetz to 0
If you set it generically to 0, it'll work for every tree?

I believe so yes.
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: