Author Topic: Bad Tile Placer  (Read 19709 times)

0 Members and 2 Guests are viewing this topic.

Offline onkelatzeTopic starter

  • Newbie
  • *
  • Posts: 7
  • Activity:
    0%
  • Reputation Power: 0
  • onkelatze has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Bad Tile Placer
« on: July 08, 2019, 12:52:23 AM »
+2
Sick to placing a house, yes?
Then try this one!

;==================================================
; Script Name: MainBadTile
; Author: Onkelatze
; Version: 1.00
; Client Tested with: 7.0.76.4
; EUO version tested with: 1.50 ver. xxx
; Shard OSI
; Revision Date: ?/?/?
; Public Release: 08/07/19
; MainBadTile (Must)
;After the House has fall an invisible tile (top left at the corner) spawn.
;1. Get the X and Y Axes for the new plot type into the script
; set #ltargetx xxxx
; set #ltargety xxxx
;2. Ghost the plot you wish to place (plot on the mouse cursor)
;Press Play and you have a question if it's the right tile, check it out and be sure it's the right one. Maybe it will take a few tries.
;
;BadTilePlace (for more chars for trying)
;1. MainBadTile must be done and watching the tile
;2. Get the X and Y Axes for the new plot type into the script
; set #ltargetx xxxx
; set #ltargety xxxx
;3. Ghost the plot you wish to place
;==================================================
;==================================================


happy placement

There are 2 attachment(s) in this post. You must register and post an acceptable introduction to download
BadTilePlace.txt
MainBadTile.txt

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +272
  • Referrals: 1
    • View Profile
Re: Bad Tile Placer
« Reply #1 on: July 14, 2019, 09:32:42 AM »
+1
Nice, always wondered how they managed to place so fast.
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline sixmini

  • Newbie
  • *
  • Posts: 2
  • Activity:
    0%
  • Reputation Power: 1
  • sixmini has no influence.
  • Gender: Male
  • hello:)
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #2 on: November 18, 2020, 06:43:58 AM »
+1
how can I use it?

repeat EUO Message

"Right tile 0 0 ?"
Good Luck

Offline wi

  • Jr. Member
  • **
  • Posts: 13
  • Activity:
    0%
  • Reputation Power: 1
  • wi has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #3 on: September 26, 2021, 11:17:28 AM »
+1
Nice, always wondered how they managed to place so fast.


Does this still work with today's OSI house system?

I don't see no invisible tile...but there's for sure something telling these people when you can place....

anyone have any tips/tricks/info on this invisible tile or is it just a random timer now?

anyone?
Thanks in advance too!

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 490
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +283
  • Referrals: 3
    • View Profile
Re: Bad Tile Placer
« Reply #4 on: September 27, 2021, 10:04:23 PM »
+1
The house placement rules have not changed since this worked. I don't IDOC, so I can't confirm that, but considering how easy it is to locate an IDOC since it is announced by the town NPC's on OSI - it is easily confirmed.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

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: +556
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #5 on: September 28, 2021, 04:51:23 PM »
+1
To place new house, we are still have to wait.  The timer never the same,

Offline wi

  • Jr. Member
  • **
  • Posts: 13
  • Activity:
    0%
  • Reputation Power: 1
  • wi has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #6 on: September 28, 2021, 05:06:55 PM »
+1
To place new house, we are still have to wait.  The timer never the same,

So it is just the luck of the draw then....Thank you very much!

Offline wi

  • Jr. Member
  • **
  • Posts: 13
  • Activity:
    0%
  • Reputation Power: 1
  • wi has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #7 on: October 17, 2021, 07:21:19 AM »
+1
The house placement rules have not changed since this worked. I don't IDOC, so I can't confirm that, but considering how easy it is to locate an IDOC since it is announced by the town NPC's on OSI - it is easily confirmed.


Ok, I finally figured out how this thing works...It does appear to work (can't confirm 100%, but it appears to be trying)...

I appreciate everyone here that shares their scripts!!! because god knows I can only download them and click play  ;D

I was wondering if anyone is willing to take a look at this script and tell me does it constantly monitor the bad tile and then try and place?
I see a wait 25 in there for something???
can/is there anything that can be changed to speed up the placement after the tile goes poof?  (for instance that wait 25 changed to wait 5) not sure if that's how this script works but I have changed wait times before on other scripts...

just need to speed this thing up a little bit....or is it my internet/pc that needs more speed?

basically just curious if there's a wait time in here that can be sped up?

Thanks in advance!

If anyone reads this that has the knowledge to take a quick peak and help me out, It would be greatly appreciated...

Enjoy the rest of your day everyone! 
« Last Edit: October 17, 2021, 07:28:27 AM by wi »

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 490
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +283
  • Referrals: 3
    • View Profile
Re: Bad Tile Placer
« Reply #8 on: October 17, 2021, 10:50:47 AM »
+1
The only wait I see is the "wait 60" after event macro 22.

So that wait is waiting for the target cursor to show up. That code should be cleaned up to end the wait cycle as soon as the target cursor shows up.

Something like this idea which you could test on other target cursor things to prove it works.
Code: easyuo
  1. while *badtilegone = #false
  2.  {
  3.  ; make sure you don't lose the line after the while statement by having this comment in a block
  4.  }
  5. event macro 22
  6. ; wait 60
  7. set %TargetCursorTimeout #systime + 3000 ; equivalent period to wait 60 - both are 3 seconds
  8. while %TargetCursorTimeout > #systime
  9.  {
  10.  if #contsizex = 420 && #contsizey = 280 3
  11.     set %clickX #contposx + %confirmplace    ; 25 = Yes 225 = No
  12.     set %clickY #contposy + 260
  13.     click %clickX %clicky dmc
  14.  }
  15. sound warning ; Filename(wav) same Folder
  16. stop
  17.  
  18.  

Personally, I think the 'sound warning' statement is a waste of time. I would move that to the end before the stop statement. This would still give you the sound notification, but after it tries to click - especially if you are trying to combat any lag.

You could adapt similar logic to both files for the target attempt.

There is a way to automatically fill in the X and Y values of the target using the find statement results in the Main script and share those via either the registry variables or revise these to use namespace. I do not know which is quicker (namespace vs. registry).
« Last Edit: October 18, 2021, 09:39:13 PM by Gaderian »
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline wi

  • Jr. Member
  • **
  • Posts: 13
  • Activity:
    0%
  • Reputation Power: 1
  • wi has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #9 on: October 17, 2021, 12:10:24 PM »
+1
The only wait I see is the "wait 60" after event macro 22.

So that wait is waiting for the target cursor to show up. That code should be cleaned up to end the wait cycle as soon as the target cursor shows up.

Something like this idea which you could test on other target cursor things to prove it works.
Code: easyuo
  1. while *badtilegone = #false
  2.  {
  3.  ; make sure you don't lose the line after the while statement by having this comment in a block
  4.  }
  5. event macro 22
  6. ; wait 60
  7. set %TargetCursorTimeout #systime + 3000 ; equivalent period to wait 60 - both are 3 seconds
  8. while %TargetCursorTimeout > #systime
  9.  {
  10.  if #targcurs <> 0
  11.   break
  12.  }
  13. if #targcurs <> 0
  14.  {
  15.  if #contsizex = 420 && #contsizey = 280 3
  16.     set %clickX #contposx + %confirmplace    ; 25 = Yes 225 = No
  17.     set %clickY #contposy + 260
  18.     click %clickX %clicky dmc
  19.  }
  20. sound warning ; Filename(wav) same Folder
  21. stop
  22.  
  23.  

Personally, I think the 'sound warning' statement is a waste of time. I would move that to the end before the stop statement. This would still give you the sound notification, but after it tries to click - especially if you are trying to combat any lag.

You could adapt similar logic to both files for the target attempt.

There is a way to automatically fill in the X and Y values of the target using the find statement results in the Main script and share those via either the registry variables or revise these to use namespace. I do not know which is quicker (namespace vs. registry).


I'm going to take that as a no...LOL

I wish I could do the things you suggested...The auto fill in the x and y would be nice too....
I was honestly hoping for a quick "change 60 to 20" answer :)  That's about all I'm capable of when it comes to scripting...

Just trying to get a house without that "for sale, only 1.5p" in front of it...
can't compete with the other scripters, there scripts are just too fast...

Thanks for the reply
and again, I appreciate everything everyone does to help myself and others on this site.

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 490
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +283
  • Referrals: 3
    • View Profile
Re: Bad Tile Placer
« Reply #10 on: October 17, 2021, 04:40:24 PM »
+1
I showed you exactly how to revise it to speed up the delay waiting for the cursor so that as soon as it appears, it will take action. Not sure what else you could need...
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline wi

  • Jr. Member
  • **
  • Posts: 13
  • Activity:
    0%
  • Reputation Power: 1
  • wi has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #11 on: October 18, 2021, 05:23:16 AM »
+1
I showed you exactly how to revise it to speed up the delay waiting for the cursor so that as soon as it appears, it will take action. Not sure what else you could need...

Like I stated in the OP...I can basically downlaod and click play...what you posted I'd have better luck reading and understanding what my Dr. writes on my perscription lol (that's impossible too) lol

I do appreciate your reply but that is way way way above my knowledge or scripts (I try messing with it it'll never work again)...was hoping for "yeah, change that 60 to 20 and your good  ;)


I'm gonna send you a pm....

Offline Sofia

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • Sofia has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #12 on: May 01, 2022, 01:08:45 PM »
+1
Anyone able to help with this script? Description is very hard to understand. Like what does "Ghost the plot you wish to place (plot on the mouse cursor)" mean? Unsure what ghost means

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 490
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +283
  • Referrals: 3
    • View Profile
Re: Bad Tile Placer
« Reply #13 on: May 03, 2022, 08:30:58 PM »
+1
"ghost plot" means select the house you want to place where it shows the outline from the tool for that size house.

You are pre-selecting the type of house to place to assist the script. This way it can function for whatever house type and size each player wants to use it to place.

Gaderian
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline Sofia

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • Sofia has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Bad Tile Placer
« Reply #14 on: May 03, 2022, 09:17:46 PM »
+1
Ah I see! Thank you.

Tags: