Signup Now
Page 37 of 65 FirstFirst ... 27353637383947 ... LastLast
Results 361 to 370 of 647
  1. #361
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by The big bad Wolf View Post
    Hi, i need a action to:
    If u have less than x mana potions and u are under player attack and trapped, simply xlog
    Writing from mobile, so sorry for typos! :-)
    This should do it:
    init start
    -- local SCRIPT_VERSION = '1.0.0'

    local potName = 'mana potion'
    local minCount = 100

    -- DO NOT EDIT BELOW THIS LINE --

    -- NOTE: Because $trapped requires targeting to be enabled, this script also
    -- does.
    init end

    auto(100)
    if itemcount(potName) < minCount and $trapped and $pattacker.id ~= 0 then
    xlog()
    end

    Gist

  2. #362
    Free User Justx's Avatar
    Join Date
    Jun 2014
    Posts
    192
    Reputation
    19
    Rep Power
    23
    hello raphael i want to modify this code:
    Code:
    auto(800, 1000)
    if getuseroption('haste') and not $hasted and not $pzone then
        cast("Utani Hur")
    end
    I want it to only cast hast when not targeting a monster
    thx
    @Raphael

  3. #363
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by Justx View Post
    hello raphael i want to modify this code:
    Code:
    auto(800, 1000)
    if getuseroption('haste') and not $hasted and not $pzone then
        cast("Utani Hur")
    end
    I want it to only cast hast when not targeting a monster
    thx
    @Raphael
    auto(800, 1000)
    if getuseroption('haste') and not $hasted and not $pzone and $attacked.id == 0 then
    cast("Utani Hur")
    end

  4. #364
    Free User Justx's Avatar
    Join Date
    Jun 2014
    Posts
    192
    Reputation
    19
    Rep Power
    23
    thanks man!!

  5. #365
    Free User
    Join Date
    May 2014
    Posts
    8
    Reputation
    10
    Rep Power
    0
    Hi brow, i need a persistant that pick up supplies from under yourself to my backpack when it has less then X potion in my backpack! it is possible?
    Last edited by mpiccinin; 07-02-2014 at 12:51 AM.

  6. #366
    Free User
    Join Date
    Dec 2013
    Posts
    260
    Reputation
    26
    Rep Power
    24
    alert if certain player/players are on screen hotkey please. tag me so ill see it later thanks.

  7. #367
    Free User
    Join Date
    May 2014
    Location
    Chile
    Posts
    4
    Reputation
    10
    Rep Power
    0
    how i can add to resupply action like this:
    local cap = tonumber(getuseroption('cap'))
    if needresupply(cap, 'a') then
    gotolabel(0, "Depositer")
    end

    one option to leave when i have 1 honeycomb?

  8. #368
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by mpiccinin View Post
    Hi brow, i need a persistant that pick up supplies from under yourself to my backpack when it has less then X potion in my backpack! it is possible?
    init start
    local itemName = 'mana potion' -- Item name
    local itemMin = 50 -- Minimum to start moving
    local itemMax = 200 -- Maximum to stop moving
    local locTo = 'brown backpack' -- Where to move
    local locFrom = ground($posx, $posy, $posz) -- Where to move from

    -- DO NOT EDIT ANYTHING BELOW THIS LINE --
    init end

    auto(100)
    while itemcount(itemName, locTo) < itemMin do
    moveitems(itemName, itemMax - itemMin, locTo, locFrom)
    waitping()
    end
    Last edited by Raphael; 07-02-2014 at 09:54 PM.

  9. #369
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by curry View Post
    alert if certain player/players are on screen hotkey please. tag me so ill see it later thanks.
    init start
    local playerNames = {'Raphael', 'Lucas Terra', 'Leonardo'} -- Player names

    -- DO NOT EDIT ANYTHING BELOW THIS LINE --

    table.lower(playerNames)
    init end

    auto(100)
    foreach creature m 'pfsx' do
    if table.find(playerNames, m.name:lower()) then
    beep()
    break
    end
    end

  10. #370
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by Harleckim View Post
    how i can add to resupply action like this:
    local cap = tonumber(getuseroption('cap'))
    if needresupply(cap, 'a') then
    gotolabel(0, "Depositer")
    end

    one option to leave when i have 1 honeycomb?
    local cap = tonumber(getuseroption('cap'))

    if needresupply(cap, 'a') or itemcount('honeycomb') > 0 then
    gotolabel(0, "Depositer")
    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
  •