Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Magic Level trainer!

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0

    Magic Level trainer!

    I need a script for buying manapots, using manapots and casting spells! I think it is an easy one, but i am no pro!

    It's for a Druid Btw.

    Thanks

  2. #2
    Normal User Tomix's Avatar
    Join Date
    Aug 2012
    Posts
    78
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    36
    Rep Power
    5
    Close to npc i think:

    Quote Originally Posted by soder View Post
    I guess something like this will work.
    PHP Code:
    local CONFIG = {
        
    MANA "mana potion",
        
    AMOUNT 100, -- amount of manas to buy
        
        SPELL 
    "utani gran hur",
        
    SPELL_MANA 100,

        
    NPC_NAME "soder", -- NPC you buy manas from
    }

    if (
    mp >= CONFIG.SPELL_MANAthen
        cast
    (CONFIG.SPELL)
    end
    if (tradeopenthen
        
    if (itemcount(283) >= math.random(10,20)) then
            sellitems
    (283,100)
        elseif (
    itemcount(CONFIG.MANA) < 10then
            buyitemsupto
    (CONFIG.MANA,CONFIG.AMOUNT)
        
    end
    else
        if (
    findcreature(NPC_NAME) > -and findcreature(NPC_NAME) <= 3then
            opentrade
    ()
        
    end
    end 

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by Tomix View Post
    Close to npc i think:
    Aff, this tells me nothing

  4. #4
    Normal User Tomix's Avatar
    Join Date
    Aug 2012
    Posts
    78
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    36
    Rep Power
    5
    Quote Originally Posted by Retnuh_Flim View Post
    Aff, this tells me nothing

    I think with this script you must stay close to npc who sells you potions.

  5. #5
    iBot User Mitto's Avatar
    Join Date
    Jan 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    4
    What we need to do to sell 100 potions at time not 1 by 1, 'cos it starts to stack 100gp mounts and backpack could bug. I prefer to sold 100 by time to have 500 gp in platinum coins.
    What we need to change?

  6. #6
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    Quote Originally Posted by Mitto View Post
    What we need to do to sell 100 potions at time not 1 by 1, 'cos it starts to stack 100gp mounts and backpack could bug. I prefer to sold 100 by time to have 500 gp in platinum coins.
    What we need to change?
    Lua Code:
    sellitemsupto("mana potion", 100)

    Eli Scripts Last Releases Vocation
    New Water Elemental ED - MS
    Glooth Bandits x3 ED - MS
    Meriana Gargoyle Cave ED - MS
    Glooth Bandits x2 ED-MS

  7. #7
    iBot User Mitto's Avatar
    Join Date
    Jan 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    4
    Please post all the code and the place to paste the action its inside the null scrip in Action/List/New/Script:null?

  8. #8
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by Canu13 View Post
    Lua Code:
    sellitemsupto("mana potion", 100)
    rofl, is it possible to sell mana potions? im pretty sure u meant the flask id
    click the image below to see my thread.



  9. #9
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Do a stand waypoint in front of npc and activate Cavebot
    PHP Code:
    local spell 'utana vid'
    local mana 'mana potion'
    local mainbp 'backpack'
    local manabuy 300
    while windowcount() < do
    closewindows()
    wait(500)
    openitem(mainbp,'back',true)
    end
    if itemcount(manamainbp) <= and windowcount() >=1 then
    opentrade
    ()
    wait(1000)
    sellflasks()
    wait(1000)
    buyitemsupto(manamanabuy)
    wait(500)
    elseif 
    itemcount(manamainbp) > and cancast(spellthen
    cast
    (spell)
    end 
    PS: remember to make healer for manas
    Last edited by mexicowss; 04-29-2014 at 05:21 AM.
    click the image below to see my thread.



  10. #10
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    Quote Originally Posted by mexicowss View Post
    rofl, is it possible to sell mana potions? im pretty sure u meant the flask id
    Uups, yea just added this to show him how to sell all the items at the same time and added first item it camed to my mind

    Eli Scripts Last Releases Vocation
    New Water Elemental ED - MS
    Glooth Bandits x3 ED - MS
    Meriana Gargoyle Cave ED - MS
    Glooth Bandits x2 ED-MS

Posting Permissions

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