Results 1 to 2 of 2

Thread: Clean map remove dice

  1. #1
    Normal User
    Join Date
    Feb 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Clean map remove dice

    I want a script when came the message "Game map cleaning within 30 seconds, please pick up your items!" will move the dice local a = {5792, 5793, 5794, 5795, 5796, 5797} to the mainBp, and when says "Game map cleaned, next clean in 2 hours." will put the dice again on north of the char..

    I tryed it:

    Code:
    local msgs = getnewmessages("Server Log") 
    local qtd = msgs.count-1 
    local a = {5792, 5793, 5794, 5795, 5796, 5797} 
    
    for i=0,qtd do 
        if msgs[qtd].text:find("Game map cleaning within 30 seconds, please pick up your items!") then 
            moveitems("a", MainBp, 1)
            wait(50000,55000) 
        end 
    end
    
    for i=0,qtd do 
        if msgs[qtd].text:find("Game map cleaned, next clean in 2 hours.") then 
            moveitems("a", MainBp, 1)
            wait(50000,55000) 
            end
    end
    but didn't work.. Can someone help me with that?

    Thanks.

  2. #2
    Normal User
    Join Date
    Feb 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    up!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •