Author Topic: anyone interested in doing a tile reader tutorial?  (Read 1993 times)

0 Members and 1 Guest are viewing this topic.

Offline _C2_Topic starter

  • 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
anyone interested in doing a tile reader tutorial?
« on: December 16, 2010, 07:53:32 AM »
0
interested in learning in more depth...
 
how to do tile scanning

&

how to check a radius.

been looking at some but the deeper level arrays are messing with me just a hair.  once i understand them i am sure i will get it better.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13305
  • Activity:
    0.8%
  • 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: anyone interested in doing a tile reader tutorial?
« Reply #1 on: December 16, 2010, 07:57:01 AM »
0
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline _C2_Topic starter

  • 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: anyone interested in doing a tile reader tutorial?
« Reply #2 on: December 16, 2010, 07:58:20 AM »
0
Did you pick apart my Locate Tree sub?
http://www.scriptuo.com/index.php?topic=1227.0;highlight=locatetree

already sent u a pm on that with the specific question tripping me up.  it is beautiful and does what i want but i have particular questions about how it works the way it does.

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: anyone interested in doing a tile reader tutorial?
« Reply #3 on: December 22, 2010, 06:00:56 PM »
0
At work right now so I'll try and explain the basic Commands.

Tile Init  ; Initiates tile info (thats all I really know)

Tile Cnt (X) (Y)  ; Returns the number of tiles on that X Y cordinate as #Tilecnt

Tile Get (X) (Y) (Index) ; Index is just the Number for the tile 1 to #Tilecnt

From there you have all your #Tile Variables that you can use to distinguish tiles from one another. When setting Up a radius there are multiple Methods you can use. Below is a simple Sub That I just pulled out my....... That will just locate a tile with a keyword within a radius you specify. Would look great for looking for something Like Dirt for filling plant bowls.

Gosub Locate_Tile 2 Tree
if #result
display YAY You found a TREE!!!!

Sub Locate_Tile
; Sub Locate_Tile (Radius) (Key Word)
set %Lower_X #charposx - %1
set %Upper_X #charposx + %1
set %Lower_Y #charposy - %1
set %Upper_Y #charposy + %1
Tile Init
For %X_Cord %Lower_X %Upper_X
{
For %Y_Cord %Lower_Y %Upper_Y
{
Tile cnt %X_Cord %Y_Cord
for %Index 1 #Tilecnt
{
Tile Get %X_Cord %Y_Cord %Index
if %2 in #tilename
Return #true
}
}
}
Return #false
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"

Tags: