Results 1 to 2 of 2

Thread: Problema com IF itemcount

  1. #1
    Normal User
    Join Date
    Jun 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    4

    Problema com IF itemcount

    Nao entendo pq nao entrar no if... (setup -- Assassin = "assassin star")

    Code:
    if weaponamount+(itemcount(Assassin)) <= 50 then
        for i = 1 , 3 do
        moveitems(Assassin, "red backpack", "demon backpack", 100)
        wait(1500)
        say("1")
        end
    end
    if weaponamount+(itemcount(Assassin)) < 150 and weaponamount+(itemcount(Assassin)) > 50 then
        for j = 1 , 2 do
        moveitems(Assassin, "red backpack", "demon backpack", 100)
        wait(1500)
        say("2")
        end
    end
    if weaponamount+(itemcount(Assassin)) < 230 and weaponamount+(itemcount(Assassin)) >= 150 then
        moveitems(Assassin, "red backpack", "demon backpack", 50)
        wait(1500)
        say("3")
    end

  2. #2
    Banned
    Join Date
    Jun 2012
    Location
    Ceará
    Posts
    2,114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    81
    Rep Power
    0
    Tenta assim:
    Code:
    for i = 1 , 3 do
    
    if (weaponamount+itemcount(Assassin)) <= 50 then
    	moveitems(Assassin, "red backpack", "demon backpack", 100)
    	wait(1500)
    	say("1")
    end
    
    end
    
    
    for j = 1 , 2 do
    
    if (weaponamount+itemcount(Assassin)) < 150 and (weaponamount+itemcount(Assassin)) > 50 then
    	moveitems(Assassin, "red backpack", "demon backpack", 100)
    	wait(1500)
    	say("2")
    end
    
    end
    
    
    if (weaponamount+itemcount(Assassin)) < 230 and (weaponamount+itemcount(Assassin)) >= 150 then
    	moveitems(Assassin, "red backpack", "demon backpack", 50)
    	wait(1500)
    	say("3")
    end

Posting Permissions

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