Signup Now
Results 1 to 5 of 5
  1. #1
    Free User negative's Avatar
    Join Date
    Feb 2015
    Posts
    19
    Reputation
    10
    Rep Power
    0

    Help with Woooden Stake

    I don't know why, but at the moment the bot uses the wooden stake, it opens the monster's body, and it repeats for about 6 times, until he uses use the stake. In some cases it uses the stake instantly, without problems...
    Sometimes, it loses the loot of the monster that he was about to stake.

    Code:
    local item2 = itemid('vampire dust')
    
    if $wptsection == "Spawn" then
    
    if maround(7) == 0 and $lootsaround == 0 and itemcount("blessed wooden stake") > 0 then
            local count2 = itemcount(item2)
    		pausewalking(2000)
            stake(6,true,WaitForSkinStake)
            local delta2 = itemcount(item2) - count2
    
            if (delta2 > 0) then
                    increaseamountlooted("vampire dust", delta2)
            end
    		pausewalking(0)
    end
    end
    OR

    Code:
    if not $marketopen and getuseroption('useStake') and itemcount("blessed wooden stake") > 0 and not isignoring() then
    	if $lootsaround == 0 and maround() == 0 then
    		stake(5, true)
    	else
    		stake(1, true)
    	end
    	moveitems("vampire dust", getlootingdestination("stacks"))
    end
    
    auto(1000)
    EDIT: nm, there's some confict with another script, it happends even whenever it tries to use an item at some sqm, like shovel, rope, etc
    Last edited by negative; 01-22-2017 at 04:50 AM.

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    @negative

    Maybe that might help.

    auto(1000)

    local UseSkin = true
    local UseStake = true
    local HuntSections = {'Hunt'} -- {'Hunt'} ... {'Floor 1', 'Floor 2'} etc...
    local MonstersAround = true --check monsters around character
    local Downtime = 60 --seconds
    local Range = 7 --min 1, max 10
    local MoveBP = 'brocade backpack' --stake, skn for bp

    if $connected then
    if table.find(HuntSections, $wptsection) then
    if MonstersAround and maround(7) == 0 then
    return
    elseif not MonstersAround then
    if UseSkin or UseStake then
    if $standtime <= (Downtime*1000) then
    if UseSkin and skinspots(Range) > 0 then
    pausewalking(30000)
    skin(Range, MoveBP, false)
    wait(500)
    pausewalking(0)
    elseif UseStake and stakespots(Range) > 0 then
    pausewalking(30000)
    stake(Range, MoveBP, false)
    wait(500)
    pausewalking(0)
    end
    end
    end
    end
    end
    end

  3. #3
    Free User negative's Avatar
    Join Date
    Feb 2015
    Posts
    19
    Reputation
    10
    Rep Power
    0
    This isn't staking
    Last edited by negative; 01-23-2017 at 09:58 PM.

  4. #4
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    @negative, as far as I'm concerned stake/skin functions are still kind of bugged.
    When strange things happen again go to help->debug console and mark options like on this image:

    After doing all these steps, copy text from the window and paste it here, maybe we'll figure out what's the issue.

    Edit:
    Gif would be really helpful too, to make one you can install this free software: https://getsharex.com/

  5. #5
    Free User negative's Avatar
    Join Date
    Feb 2015
    Posts
    19
    Reputation
    10
    Rep Power
    0
    @mistgun
    Code:
    20:41:32.462 Event 4567 issued. Type: Use Item On, ItemId: 5942, UsedOnId: 4137
    20:41:32.463 Event 4567 started.
    20:41:32.463 Pressed 160 1 1
    20:41:32.627 Pressed 114 1 1
    20:41:32.658 Event 4568 issued. Type: Close Windows, Type: equip
    20:41:32.666 Released 160 1 1
    20:41:32.732 Released 114 1 1
    20:41:32.840 Event 4567 finished successfully.
    20:41:32.978 Event 4568 started.
    20:41:32.982 Event 4568 finished successfully.
    20:41:33.936 Event 4569 issued. Type: Use Item On, ItemId: 5942, UsedOnId: 4137
    20:41:33.936 Event 4569 started.
    20:41:33.936 Pressed 160 1 1
    20:41:34.060 Event 4570 issued. Type: Close Windows, Type: equip
    20:41:34.099 Pressed 114 1 1
    20:41:34.153 Released 160 1 1
    20:41:34.203 Released 114 1 1
    20:41:34.313 Event 4569 finished successfully.
    20:41:34.472 Event 4570 started.
    20:41:34.472 Event 4570 finished successfully.
    20:41:35.539 Event 4571 issued. Type: Close Windows, Type: equip
    20:41:35.539 Event 4571 started.
    20:41:35.539 Event 4571 finished successfully.
    20:41:35.579 Event 4572 issued. Type: Use Item On, ItemId: 5942, UsedOnId: 4137
    20:41:35.579 Event 4572 started.
    20:41:35.579 Pressed 160 1 1
    20:41:35.744 Pressed 114 1 1
    20:41:35.785 Released 160 1 1
    20:41:35.845 Released 114 1 1
    20:41:35.968 Event 4572 finished successfully.
    20:41:36.594 Event 4573 issued. Type: Close Windows, Type: equip
    20:41:36.594 Event 4573 started.
    20:41:36.594 Event 4573 finished successfully.
    20:41:37.099 Event 4574 issued. Type: Move Items Script, ItemId: 5905, Source: , To: golden backpack
    20:41:37.099 Event 4574 started.
    20:41:37.108 Pressed 294 1 1
    20:41:37.309 Released 294 1 0
    20:41:37.350 Pressed 294 1 0
    20:41:37.394 Event 4575 issued. Type: Say Text, Channel: Local Chat, Text: utani gran hur
    Also, a friend of mine its using the same script, and its not having this issue...
    Edit: i think it's the actions to minimize scripts, i'll test and feedback here.
    Edit2: Problems solved. Was the action to minimize eq, lel. Thx gentlemen
    Last edited by negative; 01-25-2017 at 07:10 PM.

 

 

Posting Permissions

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