Results 1 to 4 of 4

Thread: 100 Mana Pot Left Alert

  1. #1
    Normal User
    Join Date
    May 2012
    Location
    Venezuela
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    11
    Rep Power
    5

    100 Mana Pot Left Alert

    Hi , Need a script for when my character:
    • When i have 100 or less mana potion "ALARM" to wake me up
    • And a script for at 500 capacity stop looting gold


    ! Thanks !

  2. #2
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    mana
    PHP Code:
    local nameofmana 'mana potion' --put the name of the pot you're using
    if (itemcount(nameofmana) < 100)
    then playsound('
    alert.wav')
    end 
    cap
    PHP Code:
    local captostop 50 --cap to stop looting gold
    if (cap captostop)
    then
    XXXXXXXXXXXXXXXX 
    on setsettings u must make the setsettings('Settings\\Looting\\Gold Coin...)
    I don't know the entire code :P

  3. #3
    Normal User
    Join Date
    May 2012
    Location
    Venezuela
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    11
    Rep Power
    5
    Question is that capstop will stop looting Items? or only gold or both?

  4. #4
    Normal User Tibianator's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    19
    Rep Power
    5
    it will try to move your gold coins to destination 99(example), so it wont loot at all. else it will set destination to 00(in example).
    the entire code should looks like:

    PHP Code:
    local captostop 50 --cap to stop looting gold
    if cap captostop then
    setsettings
    ("Settings\\Looting\\List\\ITEM_NAME\\Destination""99")
    else
    setsettings("Settings\\Looting\\List\\ITEM_NAME\\Destination""00")
    end 
    ITEM_NAME - name of item from looting


    if u want globally stop looting then just use this one:

    PHP Code:
    local captostop 50 --cap to stop looting gold
    if cap captostop then
    setlooting
    ("off")
    else
    setlooting("on")
    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
  •