Signup Now
Results 1 to 3 of 3
  1. #1
    Free User Kostek's Avatar
    Join Date
    Dec 2013
    Posts
    706
    Reputation
    77
    Rep Power
    22

    Force Refill when player on screen

    Hi, basically I'm using 2 separate persistent hotkeys - one for an alert if a certain player in on screen and one for force refill, I need to combine them together so that force refill also considers this player and when he is on screen, it will run to dp - he has revenge on me and I often bot afk.

    Alert I'm using:
    init start 
    Players = {"xxx"}
    init end

    auto(1000, 1500)
    foreach creature p "ps" do
    if table.find(Players, p.name) then
    playsound("playeronscreen.wav")
    flashclient()
    end
    end



    and the force refiller:

    auto(1000)
    local ManaNameIs = getuseroption("ManaName")
    local AmmoNameIs = "sudden death rune"

    local MinAmmoIs = tonumber(getuseroption("MinAmmo"))
    local MinManaIs = tonumber(getuseroption("MinMana"))

    local MinCapIs = tonumber(getuseroption("MinCap"))


    if ($wptsection == "Hunt" or $wptsection == "SpawnToSpawn" or $wptsection == "AntiLure") then
    if itemcount(AmmoNameIs) <= (MinAmmoIs) or itemcount(ManaNameIs) <= (MinManaIs) or $cap <= (MinCapIs) or ($stamina <= 60 * 15 and getuseroption("OfflineTrain")) then
    if $posz == 11 then
    stopattack()
    setlooting("no")
    settargeting("no")
    gotolabel(0, "Leave")
    wait(10000)
    elseif $posz == 12 and $posy > 32632 then
    stopattack()
    setlooting("no")
    settargeting("no")
    gotolabel("FromWestToEast", "SpawnToSpawn")
    wait(10000)
    elseif $posz == 12 and $posy <= 32632 then
    stopattack()
    setlooting("no")
    settargeting("no")
    gotolabel("FromEastToWest", "SpawnToSpawn")
    wait(15000)
    end
    end
    end



    I would really appreciate your help. Thanks
    Last edited by Kostek; 05-31-2015 at 12:35 PM.

    Trade History
    Sold 323 ED to @Joel
    Sold 166 MS to @tibiastore
    Bought 187 RP on Morta from @Dworak
    Bought 233 MS on Morta from @biffwille
    Sold 250 ED to @CipusMikus
    Sold 263 MS on Morta to @Pukez
    Sold 198 EK on Morta to @NadiR
    Bought 193 ED on Morta from @Zlotowka
    Sold 210 EK on Xylana to @Dragoon




  2. #2
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    add players table to force refiller and at the line where you did check supplies add another condition to check like
    or paround(7, unpack(Players)) > 0
    so it will consider any of the players listed inside table.

  3. #3
    Free User Kostek's Avatar
    Join Date
    Dec 2013
    Posts
    706
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by mistgun View Post
    add players table to force refiller and at the line where you did check supplies add another condition to check like
    or paround(7, unpack(Players)) > 0
    so it will consider any of the players listed inside table.

    it works thanks

    You must spread some Reputation around before giving it to mistgun again.

    Trade History
    Sold 323 ED to @Joel
    Sold 166 MS to @tibiastore
    Bought 187 RP on Morta from @Dworak
    Bought 233 MS on Morta from @biffwille
    Sold 250 ED to @CipusMikus
    Sold 263 MS on Morta to @Pukez
    Sold 198 EK on Morta to @NadiR
    Bought 193 ED on Morta from @Zlotowka
    Sold 210 EK on Xylana to @Dragoon




 

 

Posting Permissions

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