Author Topic: Landscape  (Read 2938 times)

0 Members and 1 Guest are viewing this topic.

Offline KhameleonTopic starter

  • 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
Landscape
« on: September 08, 2010, 01:23:08 AM »
0
here's a little project I'm trying to get off the ground I need a lot of help with my Logic and pretty much lost myself in my idea.

pretty much the idea is create an 8x8 grid of the land tiles around your character, so far I've only been able to create the first set of tiles.

I kinda hacked up TM's LocateTree sub a little bit to get this to sorta of work for me.

Code: [Select]
GoSub ShowEUOMenu1
Start:
Set %CharposX #CharposX
Set %CharposY #CharposY

Repeat
  GoSub TM_LocateTile - 4 - 4
halt


  Goto Start



sub TM_LocateTile
  namespace push
  namespace local LT
  if !init = N/A
  {
    tile init
    set !init #TRUE
  }
  Set !x #CharPosX %1 %2
  Set !y #CharPosY %3 %4
  For %temp 1 8
  {
  tile cnt !x !y #CURSKIND
      if #TILECNT > 0
      {
        for !i 1 #TILECNT
        {
          tile get !x !y !i #CURSKIND
          if tree in #TILENAME
          {
            menu font bgcolor Green
            menu Button EUOButton . %Temp %ButtonX %ButtonY 25 25
          }
        if Jungle in #TileName || Grass in #TileName
        {
        GoSub ButtonLocation
        Menu Font BGColor Green
        Menu Button EUOButton . %Temp %Buttonx %Buttony 25 25
        Set !x !x - 1
        if %Temp > 4
         {
         Set %1 +
         Set !x #CharPosX %1 %2
         Set !y #CharPosY %3 %4
         }
        }
       }
      }
    }
  namespace pop
return #FALSE

Sub ButtonLocation
if %Temp = 1 2
set %Buttonx 8
set %Buttony 4
if %Temp = 2 2
set %Buttonx 36
set %Buttony 4
if %Temp = 3 2
set %Buttonx 64
set %Buttony 4
if %Temp = 4 2
set %Buttonx 92
set %Buttony 4
if %Temp = 5 2
set %Buttonx 120
set %Buttony 4
if %Temp = 6 2
set %Buttonx 148
set %Buttony 4
if %Temp = 7 2
set %Buttonx 176
set %Buttony 4
if %Temp = 8 2
set %Buttonx 204
set %Buttony 4
Return

;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title LandScape
menu Window Color BtnFace
menu Window Size 235 228
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style
menu Font Color WindowText
menu Button EUOButton1 8 4 25 25
menu Button EUOButton2 36 4 25 25
menu Button EUOButton3 64 4 25 25
menu Button EUOButton4 92 4 25 25

menu Button EUOButton5 120 4 25 25
menu Button EUOButton6 148 4 25 25
menu Button EUOButton7 176 4 25 25
menu Button EUOButton8 204 4 25 25

menu Button EUOButton9 8 32 25 25
menu Button EUOButton10 36 32 25 25
menu Button EUOButton11 64 32 25 25
menu Button EUOButton12 92 32 25 25

menu Button EUOButton13 120 32 25 25
menu Button EUOButton14 148 32 25 25
menu Button EUOButton15 176 32 25 25
menu Button EUOButton16 204 32 25 25

menu Button EUOButton17 8 60 25 25
menu Button EUOButton18 36 60 25 25
menu Button EUOButton19 64 60 25 25
menu Button EUOButton20 92 60 25 25

  menu Button EUOButton21 120 60 25 25
menu Button EUOButton22 148 60 25 25
menu Button EUOButton23 176 60 25 25
menu Button EUOButton24 204 60 25 25

  menu Button EUOButton25 8 88 25 25
menu Button EUOButton26 36 88 25 25
menu Button EUOButton27 64 88 25 25
menu Button EUOButton28 92 88 25 25

  menu Button EUOButton29 120 88 25 25
menu Button EUOButton30 148 88 25 25
menu Button EUOButton31 176 88 25 25
menu Button EUOButton32 204 88 25 25

  menu Button EUOButton33 8 116 25 25
menu Button EUOButton34 36 116 25 25
menu Button EUOButton35 64 116 25 25
menu Button EUOButton36 92 116 25 25

  menu Button EUOButton37 120 116 25 25
menu Button EUOButton38 148 116 25 25
menu Button EUOButton39 176 116 25 25
menu Button EUOButton40 204 116 25 25

  menu Button EUOButton41 8 144 25 25
menu Button EUOButton42 36 144 25 25
menu Button EUOButton43 64 144 25 25
menu Button EUOButton44 92 144 25 25

  menu Button EUOButton45 120 144 25 25
menu Button EUOButton46 148 144 25 25
menu Button EUOButton47 176 144 25 25
menu Button EUOButton48 204 144 25 25

  menu Button EUOButton49 8 172 25 25
menu Button EUOButton50 36 172 25 25
menu Button EUOButton51 64 172 25 25
menu Button EUOButton52 92 172 25 25

  menu Button EUOButton53 120 172 25 25
menu Button EUOButton54 148 172 25 25
menu Button EUOButton55 176 172 25 25
menu Button EUOButton56 204 172 25 25

  menu Button EUOButton57 8 200 25 25
menu Button EUOButton58 36 200 25 25
menu Button EUOButton59 64 200 25 25
menu Button EUOButton60 92 200 25 25

  menu Button EUOButton61 120 200 25 25
menu Button EUOButton62 148 200 25 25
menu Button EUOButton63 176 200 25 25
menu Button EUOButton64 204 200 25 25
 menu Show
return
;--------- EasyUO Menu Designer Code End ---------


Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Landscape
« Reply #1 on: September 08, 2010, 02:29:44 AM »
0
Dude, check out my mining script. I scan just like that through all of the layers of each spot in a grid around the toon looking for minable/sandable (and soon lumberjackable) tiles (thanks to OMG for the original versions of those subs). That's why it's always worked in Ter Mur, it doesn't look a specific tile information, it checks them ALL and tracks the ones that give up resources.

I'll be upping my tmapper helper version 1 today too, I used a modified version of the same subs to scan for the treasure map dig location around the toon.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline KhameleonTopic starter

  • 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: Landscape
« Reply #2 on: September 08, 2010, 03:10:36 AM »
0
Well damn i use your miner i didnt know it works in termur. Id live to see what you have came up with for a tresure locator. I get all lost when searching for my map I end up search in areas i was just at i figured a mapping program would help me remember were i have already dug.

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: Landscape
« Reply #3 on: September 08, 2010, 04:16:19 AM »
0
its a good idea.. have you checked out cyberpopes mining radar over on EUO .. at the very least it will give you the info you need to identify different terrian.
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 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Landscape
« Reply #4 on: September 08, 2010, 08:36:17 AM »
0
Well damn i use your miner i didnt know it works in termur. Id live to see what you have came up with for a tresure locator. I get all lost when searching for my map I end up search in areas i was just at i figured a mapping program would help me remember were i have already dug.
I'm going to post up what I have so far in my Beta section right now while I eat lunch. It isn't exactly an Epic Feature Film type of script, just a few "scriptlets" with a simple menu interface. Not all features are working and I'm looking for input on more features (see the thread in my script library).

I'm not tracking yet though but I'm putting a lot of thought into how I want to do that. The idea of a graphical interface is AWESOME so I'm thinking through that a little. Just got sidetracked on "XIIxOveR's SuperStuff" which I will release later this week (another shameless teaser promotion) and both of these were sidetracks from my "ReCraftmatic" script which was already a sidetrack from my Miner updates... yikes, sidetracked from my sidetrack to my sidetrack of my sidetrack to my miner script? WTF?

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Tags: