Author Topic: Puzzle Boards  (Read 19236 times)

0 Members and 1 Guest are viewing this topic.

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: Puzzle Boards
« Reply #60 on: October 06, 2009, 08:39:30 AM »
0
after yesterdays maintenance or whatever that caused xfers and housing servers to go down... the boxes were turned back on.  I t was most likely unintentionally but if you are logged in there, you can do them again while waiting for the bigger fix.

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: +123
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #61 on: October 06, 2009, 11:42:28 AM »
0
Yeah, I need to relook over it. I think I goofed when I first wrote it and forgot to use #contposx and #contposy, Meaning that all of the " Pixel Codes " Will be different, but its easy as hell to update.

All you have to do is figure out which puzzle it is, then you just need to know what %Pixel_Code is and what %Cipher is.

%Pixel_Code is the the first Number Of 12 Scanned Pixels on The puzzle Board. Each Code is Unique to that puzzle.

%Cipher is a string that determines how you solve it using Numbers 1-4 For the Row, and U and D for whether its Up or Down. Ending the String with EN Signifies that you are through solving the puzzle.

So
if %Pixel_Code = XXXXXXXXXXXX
set %Cipher 1U2D3U4D1D4UEN


I figure whenever I get to take a look at the other puzzle boards that it will be a similar System just with a different cipher and a different Pixel scanner.
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 UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #62 on: October 06, 2009, 11:46:45 AM »
0
Couple of things...

#1. I found a mistake in your Solve_7 sub You clicked row 2, but then called to click row 3down.

#2. I took the liberty of re-writing your Solve routines using a new "Clicker" sub that takes arguments of (Row, Up/Down). So you can call it like "gosub Clicker %two %down" You'll see in the re-write I attached. Oh, and I fixed #1 ^^^ for you already and checked all the rest against UOGuide.com


Code: [Select]
Here's the code:
;====================================================
; Script Name: Cgeorgemo's Puzzle Board Clicker
; Author: Cgeorgemo
; Version: 1.1
; Client Tested with: not tested yet
; EUO version tested with: 154
; Shard OSI / FS:  OSI
; Revision Date:
; Public Release:
; Purpose: Clicking the Puzzle Boards
;====================================================

;Variable Declaration Section
set %one 90
set %two 123
set %three 156
set %four 189
set %up 22
set %down -20
set %clickdelay 5 ;Make longer if you're laggy!

;Main Section
Finditem C_ , #backpackid
set #lobjectid #findid
event macro 17 0
wait 20
gosub Find_Board
gosub apply
halt

;========Find Which Board=====================
sub Find_Board
  set %x #contposx + xshift ; measure to find
  set %y #contposy + yshift ; measure to find
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx ; find this color value
  {
    gosub Solve_6
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_8
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_11
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_12
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_10
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_7
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_15
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_3
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_5
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_9
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_13
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_14
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_4
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_1
    return
  }
  set %x #contposx + xshift
  set %y #contposy + yshift
  savepix %x %y 1
  If #pixcol xxxxxxxxxxxx
  {
    gosub Solve_2
    return
  }
  gosub Solve_16
  return

;===========Solution Subs=================
sub Solve_1
  gosub Clicker %one %up
  gosub Clicker %four %up
  gosub Clicker %three %up
  gosub Clicker %two %up
  gosub Clicker %one %up
  gosub Clicker %two %down
return

sub Solve_2
  gosub Clicker %one %up
  gosub Clicker %four %up
  gosub Clicker %four %down
  gosub Clicker %three %down
  gosub Clicker %one %up
  gosub Clicker %three %up
return

sub Solve_3
  gosub Clicker %one %down
  gosub Clicker %two %up
  gosub Clicker %one %down
  gosub Clicker %four %up
return

sub Solve_4
  gosub Clicker %three %up
  gosub Clicker %two %up
  gosub Clicker %one %up
  gosub Clicker %two %down
  gosub Clicker %one %down
  gosub Clicker %one %down
  gosub Clicker %four %down
return

sub Solve_5
  gosub Clicker %one %up
  gosub Clicker %four %up
  gosub Clicker %three %up
  gosub Clicker %two %up
  gosub Clicker %three %down
  gosub Clicker %one %up
  gosub Clicker %two %up
return

sub Solve_6
  gosub Clicker %one %up
  gosub Clicker %three %up
  gosub Clicker %two %up
  gosub Clicker %two %down
  gosub Clicker %one %down
  gosub Clicker %four %up
  gosub Clicker %three %up
  gosub Clicker %four %up
return

sub Solve_7
  gosub Clicker %two %down
  gosub Clicker %one %down
  gosub Clicker %four %up
  gosub Clicker %one %up
  gosub Clicker %two %up
return

sub Solve_8
  gosub Clicker %four %down
  gosub Clicker %one %down
  gosub Clicker %two %up
  gosub Clicker %two %up
return

sub Solve_9
  gosub Clicker %four %up
  gosub Clicker %three %down
  gosub Clicker %one %down
  gosub Clicker %one %up
  gosub Clicker %four %up
  gosub Clicker %four %down
  gosub Clicker %three %up
return

sub Solve_10
  gosub Clicker %four %up
  gosub Clicker %three %up
  gosub Clicker %four %down
  gosub Clicker %two %up
  gosub Clicker %one %up
  gosub Clicker %three %down
return

sub Solve_11
  gosub Clicker %four %down
  gosub Clicker %three %up
  gosub Clicker %two %up
  gosub Clicker %one %up
  gosub Clicker %four %up
  gosub Clicker %one %down
return

sub Solve_12
  gosub Clicker %four %up
  gosub Clicker %two %up
  gosub Clicker %one %up
  gosub Clicker %one %down
  gosub Clicker %two %down
return

sub Solve_13
  gosub Clicker %two %up
  gosub Clicker %two %down
  gosub Clicker %one %down
  gosub Clicker %two %down
  gosub Clicker %two %up
  gosub Clicker %three %down
return

sub Solve_14
  gosub Clicker %three %down
  gosub Clicker %two %up
  gosub Clicker %one %up
  gosub Clicker %two %up
  gosub Clicker %four %up
  gosub Clicker %three %up
  gosub Clicker %one %down
return

sub Solve_15
  gosub Clicker %three %up
  gosub Clicker %two %up
  gosub Clicker %four %down
  gosub Clicker %three %down
  gosub Clicker %two %down
  gosub Clicker %four %up
return

sub Solve_16
  gosub Clicker %three %up
  gosub Clicker %four %up
  gosub Clicker %three %up
  gosub Clicker %four %down
  gosub Clicker %one %up
  gosub Clicker %two %down

;=====================Row and Direction Subs==========

sub Clicker     ;%1=Row   %2=Up/Down     (Both are offsets (declared above) from base values or cont pos)
;Click on proper row (given by %1)
set %clickx #contpos + 115 ;X is always the same
set %clicky #contpos + %1 ;Y changes based on row called (%one, %two, %three, %four)
click %clickx %clicky
wait %clickdelay
;Click up or down (given by %2)
set %clickx #contpos + 115 + %2 ;Adjust left by 20 or right by 22
set %clicky #contpos + %1 ;Y changes based on row called
click %clickx %clicky
wait %clickdelay
return

;============Apply Sub==============
sub apply
  set %Clickx #contposx + 120
  set %Clicky #contposy + 330
  click %clickx %Clicky
  wait %clickdelay
return

If you can, test it to make sure I didn't have any math errors or mind farts!
« Last Edit: October 06, 2009, 11:48:47 AM by UOMaddog »
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #63 on: October 06, 2009, 03:50:55 PM »
0
Couple of things...

#1. I found a mistake in your Solve_7 sub You clicked row 2, but then called to click row 3down.

#2. I took the liberty of re-writing your Solve routines using a new "Clicker" sub that takes arguments of (Row, Up/Down). So you can call it like "gosub Clicker %two %down" You'll see in the re-write I attached. Oh, and I fixed #1 ^^^ for you already and checked all the rest against UOGuide.com

If you can, test it to make sure I didn't have any math errors or mind farts!

The only mind fart I see right off the bat is leaving the AHQ off the Finditem statement. And that's my mind fart not yours.
I'd been working on something like what you did but was running in circles it seems.
« Last Edit: October 06, 2009, 03:56:49 PM by cgeorgemo »
Sarcasm is your body's natural defense against stupidity.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #64 on: October 06, 2009, 06:18:29 PM »
0
It's always refreshing to see 1 sub used 8 ways!
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #65 on: October 08, 2009, 03:04:41 PM »
0
Do we need a return at the end of Solve_16?
Sarcasm is your body's natural defense against stupidity.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #66 on: October 08, 2009, 06:30:17 PM »
0
yuppers! I accidentally chopped it out when I was clearing out blank lines! My Bad!
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #67 on: October 08, 2009, 07:16:10 PM »
0
The two variables at the end of the gosub lines
Code: [Select]
gosub clicker %one %up
That passes those two values to the clicker to be used in the sub?
Sarcasm is your body's natural defense against stupidity.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #68 on: October 11, 2009, 07:38:55 PM »
0
Yup! If you look at the top of the script in the variable declaration area, you'll see I added %one, %two, etc and %up, %down. Each of these is the value that you were "offsetting from before...
Here's the before and after: (I'm using 4 - UP as my example)

Before:
Part for Row:
Code: [Select]
sub Row_4
set %clickx #contposx + 115
set %clicky #contposy + [color=yellow]189[/color]
click %clickx %clicky
wait 5
return
Part for Up/Down:
Code: [Select]
sub Row_4u
set %clickx #contposx + 95
set %clicky #contposy + [color=yellow]189[/color]
click %clickx %clicky
wait 5
return


After:
To Call It:
Code: [Select]
;This was at the top...
set [color=yellow]%four 189[/color]
set %up 22

;This is the actual call...
gosub Clicker %four %up

Actual Sub:
Code: [Select]
sub Clicker
set %clickx #contpos + 115
set %clicky #contpos + [color=yellow]%1[/color]
click %clickx %clicky
wait %clickdelay

set %clickx #contpos + 115 + %2
set %clicky #contpos + [color=yellow]%1[/color]
click %clickx %clicky
wait %clickdelay
return

Ok, now if you look at the example side by side...Anywhere that I highlighted in yellow is the same thing (189) for row 4. If it was row 3 you wanted, you would just change it to %three, which is 156.

Now the up/down was a little more complicated. You'll notice that I made it always #contpos + 115 + %2...this is because 115 is the center button (where you would click for the row), but up and down are on either side of it! So...%2 is the offset from 115. For up, you move to the right 22 (115 + 22), for down you move to the left 20 (or in this case: 115  +  -20).


Hopefully that clears i up a little...I know it's confusing...feel free to keep posting questions or PM or even ICQ me!
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #69 on: October 12, 2009, 09:36:13 PM »
0
Ok update.
I don't want you to think I stopped working on this.
I've got 3 puzzles left to map because I can't seem to get those puzzles to drop for me and I need to scan in the solution which you aren't able to manipulate.
Once I get those 3 to drop I'll post up the final version and let everybody give it a run.
Sarcasm is your body's natural defense against stupidity.

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: +123
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #70 on: October 12, 2009, 10:16:17 PM »
0
Is it back up and Running?
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 cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #71 on: October 13, 2009, 04:41:37 AM »
0
Is it back up and Running?
The Puzzles are available if that's what you're asking.
Sarcasm is your body's natural defense against stupidity.

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: Puzzle Boards
« Reply #72 on: October 13, 2009, 06:35:37 PM »
0
they fixed it now Freezing is randomizing.. Caught me off guard I was like where do I go for Blue?

Tags: