Results 1 to 4 of 4

Thread: Remove fire field from corpse

  1. #1
    Banned
    Join Date
    Apr 2012
    Location
    Poland, Zambrˇw
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0

    Remove fire field from corpse

    Can you check this ? What is there wrong ?

    I must inside here correct Id of firefield and corpse of monster.


    PHP Code:
    for = -2,do
    for 
    = -2,do

    local x posx i
    local y 
    posy j
    local z 
    posz
    local CorpseID 
    1111
    local FireID 
    = {2222,3333,4444}
    local CorpseID = {5555,6666,7777}

    if (
    maround(8) == 0) and (isitemontile(4062xyz) == CorpseID[i]) and (topitem(xyz).id == FireID[i]) and (itemcount(3148) > 0) and (lootbodiescount >= 0then
    setlooting
    ('off')
    pausewalking(5000)
    useitemon(31482118ground(xyz))
    wait(1000)
    setlooting('on')
    end
    end
    end 
    Last edited by laskos6989; 12-20-2012 at 09:35 AM.

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Who wrote this action?

    pointless brackets around everything... is stupid.

    you dont need z = posz, its enver going to be different

    you have 2 varables for CorpseID

    Regarding useitemon(3148, 2118, ground(x, y, posz))

    the function is just useitemon(string item, int x, int y, int z)

    so it should be useitemon(ITEMID, x, y, posz)

    I dont know that 3148 or 2118 is, but assume one of them is a destroy field.

    Nor do i know what 4062 is

    I've ammended it to this, but it still wont work because Corpse ID is an array, it needs more work, i just dont have time coz im at work procrastinating.

    PHP Code:
    local FireID = {2222,3333,4444}
    local CorpseID = {5555,6666,7777}

    for 
    posx-2,posx+do
        for 
    posy-2,posy+do
            if 
    maround(8) == and isitemontile(CorpseID[i], xyposz) and topitem(xyposz).id == FireID[i] and itemcount(3148) > and lootbodiescount >= 0 then
                setlooting
    ("off")
                
    pausewalking(5000)
                
    useitemon("destory field rune"ijposz)
                
    wait(1000)
                
    setlooting("on")
            
    end
        end
    end 
    Last edited by pink_panther; 12-20-2012 at 08:34 PM.

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local FireID = {2222,3333,4444}
    local CorpseID = {5555,6666,7777}

    for 
    = -2,+do
        for 
    = -2,+do
            for 
    1#CorpseID do
                
    if maround(8) == and isitemontile(CorpseID[k], posx+i,posy+j,posz) and table.find(FireID,toptileitem(posx+i,posy+j,posz)) and itemcount(3148) > and lootbodiescount >= 0 then
                    setlooting
    ("off")
                    
    pausewalking(5000)
                    
    useitemon("destory field rune"posx+i,posy+j,posz)
                    
    wait(1000)
                    
    setlooting("on")
                
    end
            end
        end
    end 
    Last edited by soder; 12-20-2012 at 10:45 PM.

  4. #4
    Banned
    Join Date
    Apr 2012
    Location
    Poland, Zambrˇw
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    thank you man )

Posting Permissions

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