Simple script not looping! menu

User Tag List

Results 1 to 1 of 1
  1. #1
    mistertee's Avatar Member
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple script not looping!

    So I am trying to make a script that will basically run through an array and spew out the output to chat. However I want some kind of human integration such as clicking on a button to continue onto the next index of the array.

    so far I have this and its 90% of the way there except the script does not continue in the while loop and instead does one iteration and completes. Not sure if this is a limit of the static popup but I'm at my wits end and need some help. Below is the script.


    Code:
    working =
    {
    	{11,22,33},
    	{12,23,34},
    	{34,45,56}
    }
    
    i = 1;
    
    while i <= 3 do
    	StaticPopup_Show ("CONTINUE");
    	i = i + 1;
    end
    
    
    StaticPopupDialogs["CONTINUE"] = {
      text = "Do you want to continue?",
      button1 = "Yes",
      button2 = "No",
      OnAccept = function()
          moveon(working, i);
      end,
      timeout = 0,
      whileDead = true,
      hideOnEscape = true,
    }
    
    function moveon(working, i)
    	SendChatMessage(string.format("I love numbers %s %s %s %s", working[i][1], working[i][2], working[i][3]), i, "SAY", nil, index);
    end

    Simple script not looping!

Similar Threads

  1. Anti-AFK Using a Simple Script
    By Deamonlord in forum World of Warcraft Bots and Programs
    Replies: 11
    Last Post: 08-11-2008, 10:59 PM
  2. Script not working
    By LJN in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-16-2008, 02:47 PM
  3. [HELP] Lua boss script not working-solutions?
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 03-21-2008, 08:19 AM
  4. [Help] Lua Script Not Working
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 26
    Last Post: 03-16-2008, 02:13 PM
  5. Simple Lua Script , not working need help!
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 12-30-2007, 02:06 PM
All times are GMT -5. The time now is 11:18 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search