[Request][Question] Exploration macro menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1090
    Join Date
    Aug 2007
    Posts
    1,650
    Thanks G/R
    367/314
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    [Request][Question] Exploration macro

    Hi, i would like this in macro code :


    Code:
     
    int step = 100;
    int min = 0;
    int max = 15000;
    int ymin = 0;
    int ymax = 15000;
    int z = 10 
    int mapid = 1;
     
    for (x=min,x<max,x= x + step) do
    for (y=min,y<max,y= y + step) do
    Printscreen;
    wait(5); 
    .worldport mapid x y z 
    wait(10) 
    endfor
    end for
    Basically, i want to take automatic screenshots of a map with a configurable step.
    Is it possible? If so, i really suck at creating macros, can someone do the translation in macro code for me?

    Thanks !


    Edit :
    better view here http://pastebin.org/247698
    Last edited by Nyarly; 05-18-2010 at 09:24 AM.

    [Request][Question] Exploration macro
  2. #2
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1090
    Join Date
    Aug 2007
    Posts
    1,650
    Thanks G/R
    367/314
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    After some researches i found that you can't use a wait in a macro so i tryed this :
    http://pastebin.com/VPNseBm7

    But it's not working, so i have questions :
    - local : can i use this like a variable?
    - in (found here : http://www.wowwiki.com/UI_FAQ/Macros_and_scripts) : can i use it the way i do?
    - / and . : we tryed a lot of things and i can't understand how it work. See :
    Code:
     
    /script in 1 console .server info;
    Message: [string "in 1 console .server info;"]:1: unexpected symbol near 'in'
    Code:
     
    /script console .server info;
    Message: [string "console .server info;"]:1: '=' expected near 'info'
     
    /script console server info;
    Message: [string "console server info;"]:1: '=' expected near 'server'
     
    /script server info;
    Message: [string "server info;"]:1: '=' expected near 'info'
    Code:
    Message: [string "for i=0,10 do /say salut; end;"]:1: unexpected symbol near '/'
    Message: [string "for i=0,10 do .server info; end;"]:1: unexpected symbol near '.'
    I can't run wow atm so a friend of mine tested theses with server info because he's a simple user and can't worldport.

    But this work :
    Code:
     
    /script for i=0,2 do SendChatMessage(".server info") ;end;
    However you can't put variables in a string, or do you?
    Code:
     
    local x = 2
    SendChatMessage("my int &i",x);
    Is there anything like this so i could use SendChatMessage(".worldport %i %i %i %i",mapid,x,y,z); ?



    Worst case : would it be easier to create an addon?

    Thanks
    Last edited by Nyarly; 05-19-2010 at 02:38 AM.

  3. #3
    nightcracker's Avatar Contributor
    Reputation
    102
    Join Date
    Jan 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I'm a Lua expert, and I don't really know what you want to accomplish. But I'll try my best!

    Code:
    /run CreateFrame"Frame":SetScript("OnUpdate",function(f,e)f.e=(f.e or 0)+e if f.e<1 then return end f.e=0 Screenshot()end)
    This takes a screenshot every second. Now if we want to add worldport we could do something like this:

    Code:
    /run local x,y,z,i,s=0,0,10,1,100 CreateFrame"Frame":SetScript("OnUpdate",function(f,e)f.e=(f.e or 0)+e if f.e<1 then return end f.e=0 SendChatMessage(format(".worldport %s %s %s %s",i,x,y,z))x,y=x+s,y+s Screenshot()end)
    x = x location
    y = y location
    z = z location
    i = map id
    s = step

    I used the values of your example.

  4. #4
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1090
    Join Date
    Aug 2007
    Posts
    1,650
    Thanks G/R
    367/314
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That's exactly what i want. +cookies for you ;D

    But i plan to use it to take screenshots of an entire map so there will be lot and lot of screenshots taken. I'm afraid that 1sc isn't enought to take/save screenshot and worldport.

    Like what happens if my screenshot takes 2sc to be saved ?
    will i lose one screenshot or take two screenshot at the same location or will it be handled ?
    It's the OnUpdate that do the timer or f.e<1 (btw what's f.e ?) ? Is there anyway to increase the time between iterations?

    Sorry, that's a lot of questions ^^ I should test it but i can't until next week


    (and there's nothing to get the minimum z to land on the ground have x and y coords? :/)
    Last edited by Nyarly; 05-19-2010 at 05:41 AM.

  5. #5
    nightcracker's Avatar Contributor
    Reputation
    102
    Join Date
    Jan 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    /run local x,y,z,i,s=0,0,10,1,100 CreateFrame"Frame":SetScript("OnUpdate",function(f,e)f.e=(f.e or 0)+e if f.e<1 then return end f.e=0 SendChatMessage(format(".worldport %s %s %s %s",i,x,y,z))x,y=x+s,y+s Screenshot()end)
    The number 1 is the number of wait time in seconds. So you could make it f.e<2 for 2 seconds or f.e<8.6 for 8.6 seconds. f.e stands for the frame object which I'm using for the OnUpdate handler, the e is the table index of f which contains the complete time elapsed. Fully written out it would be like this:

    Code:
    local frame = CreateFrame("Frame")
    local elapsed = 0
    frame:SetScript("OnUpdate", function(frame, timesincelastupdate)
        elapsed = elapsed + timesincelastupdate
        if elapsed < 1 then return end -- if less then 1 second passed then we exit the function here
        elapsed = 0 -- reset the timer
    
        -- do shit here(take screenshot, worldport and increase values by step
    
    end) -- and end the function

  6. #6
    Nyarly's Avatar ★ Elder ★ Lorekeeper of Exploration
    Reputation
    1090
    Join Date
    Aug 2007
    Posts
    1,650
    Thanks G/R
    367/314
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That's perfect ;D

    Thank you so much !

Similar Threads

  1. [Request (& Question)] Assorted armor --> Tier 6
    By nomall in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-28-2007, 04:41 PM
  2. [REQUEST/QUESTION] Tiger Construct Mount
    By Sahdrani in forum World of Warcraft Emulator Servers
    Replies: 27
    Last Post: 09-30-2007, 05:20 PM
  3. [Request/Question] Pally t4 and t5 to Judgement gear
    By ri0thex in forum WoW ME Questions and Requests
    Replies: 9
    Last Post: 09-27-2007, 05:08 AM
  4. [Request/Question]: Allwaterhack
    By daGasm in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 09-19-2007, 01:58 PM
  5. *REQUEST* Question ?
    By wickermanz in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 04-25-2007, 06:11 AM
All times are GMT -5. The time now is 02:41 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search