Results 1 to 3 of 3

Thread: Otserv Action Gold Use

  1. #1
    Premium User
    Join Date
    Jul 2012
    Posts
    22
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5

    Otserv Action Gold Use

    I don't know if this is the right thread to post this but i figured i would help everyone out i seen request and i searched and searched and couldnt find what i wanted so i worked on this for a good while... its use Gold coin when 100 so you turn to plat then crystal so please don't flame me as i said i don't know if this is the right thread.

    to make it work copy and paste it in a new action there are 2, just make sure you update the action with your correct Setup name of bp functions. EX. GoldBp or goldBp or GoldBp cash the drift? it works though as long as you set it up right it works flawless on ot servers.

    i labeled this UseGold : Code:

    if itemcount(3031, GoldBP) == 100 then
    useitem(3031, GoldBP)
    elseif itemcount(3031, LootBP) > 100 and maround(7) == 0 and lootbodies == false then
    pausewalking(10000)
    moveitems(3031, LootBP, GoldBP, 100)
    useitem(3031, LootBP)
    elseif itemcount(3031, LootBP) == 100 then
    useitem(3031, LootBP)
    elseif itemcount(3035, MainBP) == 100 then
    useitem(3035, MainBP)
    end


    i labeled this MoveGold : Code:

    if itemcount(3031, GoldBP) > 100 and maround(7) == 0 and lootbodies == false then
    pausewalking(10000)
    moveitems(3031, GoldBP, LootBP, 100)
    useitem(3031, GoldBP)
    elseif itemcount(3035, MainBP) > 100 and maround(7) == 0 and lootbodies == false then
    pausewalking(10000)
    moveitems(3035, MainBP, LootBP, 100)
    useitem(3035, MainBP)
    elseif itemcount(3035, LootBP) > 99 and maround(7) == 0 and lootbodies == false then
    pausewalking(10000)
    moveitems(3035, LootBP, MainBP, 100)
    end

    thought id help everyone this is working with a 9.71 Otserver, Enjoy. Rep it you will if you test, i want rep for my scripts for donations thanks. i work hard for what i want!!




    ONE MORE EXAMPLE:::


    if itemcount(3031, goldBp) == 100 then
    useitem(3031, goldBp)
    elseif itemcount(3031, lootBp) > 100 and maround(7) == 0 and lootbodies == false then
    pausewalking(10000)
    moveitems(3031, lootBp, goldBp, 100)
    useitem(3031, LootBp)
    elseif itemcount(3031, LootBp) == 100 then
    useitem(3031, LootBP)
    elseif itemcount(3035, mainBp) == 100 then
    useitem(3035, mainBp)
    end
    Last edited by ruffs; 12-11-2012 at 05:23 AM.

  2. #2
    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:
    if (itemcount("gold coin") >= 100then
        usehotkey
    ("SHIFT+F10") -- gold coin hotkey
    elseif (itemcount("platinum coin") >= 100then
        usehotkey
    ("SHIFT+F11") -- platinum hotkey
    end 
    This should work, using hotkey works on the most OT's.

  3. #3
    Premium User
    Join Date
    Jul 2012
    Posts
    22
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    the ot i am on the bot tries to use the first gold coin aka could be below 100 my script moves the first stack to another bp then uses the next in line, and pushes the gp back from the moved to bp and uses the next if 100
    mine works well with this i use it on a 9.71 server

Posting Permissions

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