Jump to content

Bnywarrior

Lifetime Sponsor
  • Posts

    8
  • Joined

  • Last visited

  • Feedback

    0%

About Bnywarrior

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Bnywarrior's Achievements

Newbie

Newbie (1/10)

1

Reputation

  1. Wasn't satisfied with the available fly fish + cook scripts in the script network. Here's a simple snippet for you all: Simply have feathers and fly fishing rod in your inventory. Make sure inventory slot 2 is empty as the script will always cook the raw fish in this slot first, then will cook the opposite (salmon or trout) after. FYI: Since cooking on a fire causes the player to go out of animation after every cooking action, using My Player Is Not Animating is not good enough. If your player is cooking and your script enters the IF statement where you select the fish, by the time the script has selected that fish, your player will have cooked that fish. Your script will then attempt to use the selected cooked fish on the fire. Therefore, you must guarantee that once your player has started cooking fish, your script will not enter the initial IF statement of selecting the fish. To do this, use Zackaery's threaded animation sleep method. The idea is to use an timer to keep track of your player animation. Suppose that the cooking animation lasts 1000 ms and the player exits animation for 500 ms before cooking the next fish, set an animation timer that runs for greater than 1500ms so that your script will recognize your player is animating for >=1500ms instead of 1000ms. In this way, you chain animations together. In practice, you shouldn't need to know the ms duration of an animation. I use 2 seconds for this timer and it works quite well. <Boolean>CookTrout:false <Boolean>CookSalmon:false <Timer>Animating:2000,false,0,false [0, MyPlayer, isAnimating, {true}] [0, Timers, reset, 1:[Animating]] [1, Inventory, isFull, {false}] [1, MyPlayer, isAnimating, {false}] [1, Timers, isRunning, {false}, 1:Animating] [1, Camera, toEntity, 2:1526, 1:NPC] [1, NPC, interactWith, 2:1526, 1:Lure, 3:true, 3:false, 3:true, 3:false, 3:false] [1, Sleeping, sleepMoving] [1, Mouse, moveOutsideScreen] [2, Inventory, slotContains, {true}, 1:Raw trout, 2:2] [2, Inventory, isFull, {true}] [2, Variables, editBoolean, 1:CookTrout, 3:true] [3, Inventory, slotContains, {true}, 1:Raw Salmon, 2:2] [3, Inventory, isFull, {true}] [3, Variables, editBoolean, 1:CookSalmon, 3:true] [4, Variables, getBoolean, 1:CookSalmon, 3:true] [4, Inventory, inventoryContainsPartialName, {false}, 1:Raw Salmon, 3:false, 3:true] [4, Inventory, inventoryContainsPartialName, {true}, 1:Raw trout, 3:false, 3:true] [4, Variables, getBoolean, 1:CookTrout, 3:false] [4, Variables, editBoolean, 1:CookSalmon, 3:false] [4, Variables, editBoolean, 1:CookTrout, 3:true] [5, Variables, getBoolean, 1:CookSalmon, 3:false] [5, Variables, getBoolean, 1:CookTrout, 3:true] [5, Inventory, inventoryContainsPartialName, {true}, 1:Raw salmon, 3:false, 3:true] [5, Inventory, inventoryContainsPartialName, {false}, 1:Raw trout, 3:false, 3:true] [5, Variables, editBoolean, 1:CookSalmon, 3:true] [5, Variables, editBoolean, 1:CookTrout, 3:false] [6, Variables, getBoolean, 1:CookSalmon, 3:true] [6, Timers, isRunning, {false}, 1:Animating] [6, Inventory, interactWith, 1:Raw Salmon, 1:Use] [7, Variables, getBoolean, 1:CookTrout, 3:true] [7, Timers, isRunning, {false}, 1:Animating] [7, Inventory, interactWith, 1:Raw trout, 1:Use] [8, Inventory, contains, {false}, 1:Raw Salmon, 1:Raw trout] [8, Timers, isRunning, {false}, 1:Animating] [8, Inventory, isFull, {true}] [8, Inventory, dropAllExcept, 1:Feather, 1:Fly fishing rod] [8, Variables, editBoolean, 1:CookSalmon, 3:false] [8, Variables, editBoolean, 1:CookTrout, 3:false] [10, Inventory, isItemSelected, {true}] [10, Camera, toEntity, 1:Fire, 1:RS2Object] [10, RS2Object, interactWith, 1:Fire, 1:Use, 3:true, 3:false, 3:true, 3:false, 3:false] [10, Sleeping, sleepMoving] [11, RS2Widget, isVisibleContainingText, {true}, 1:[How many]] [11, Keyboard, pressSpace] [11, Mouse, moveOutsideScreen] [11, Sleeping, sleepRandom, 2:800, 2:1000] [11, Variables, goTo, 2:[0]] *I'd like to spoiler this above code, please let me know how. Also if I should just go ahead and upload this to the script network, let me know. IMO this is a fully functional script but feels too small.
  2. Wasn't happy with any of the iron ore power miners on the script network, so here's a simple one for you all: This one is for the 3 iron ores in Verdant Valley, Fossil Island. Change the rock positions and the rock ids and this'll work for any sets of rocks. <Integer>RockCounter:1 <Boolean>IsAnimating:false <Position>RockThree:3767,3756,0 <Position>RockTwo:3768,3757,0 <Position>RockOne:3767,3758,0 [1, RS2Object, getPosition, 2:11364, 1:RockOne, 1:==] [1, Variables, getInteger, 1:RockCounter, 1:==, 2:1] [1, MyPlayer, isAnimating, {false}] [1, Inventory, isFull, {false}] [1, RS2Object, interactWithAtPosition, 2:11364, 1:Mine, 1:RockOne, 3:true] [1, Variables, operationInteger, 1:RockCounter, 1:Set as, 2:2] [1, Mouse, hoverPosition, 1:RockTwo] [2, RS2Object, getPosition, 2:11364, 1:RockTwo, 1:==] [2, Inventory, isFull, {false}] [2, MyPlayer, isAnimating, {false}] [2, Variables, getInteger, 1:RockCounter, 1:==, 2:2] [2, RS2Object, interactWithAtPosition, 2:11364, 1:Mine, 1:RockTwo, 3:true] [2, Variables, operationInteger, 1:RockCounter, 1:Set as, 2:3] [2, Mouse, hoverPosition, 1:RockThree] [3, RS2Object, getPosition, 2:11364, 1:RockThree, 1:==] [3, Inventory, isFull, {false}] [3, MyPlayer, isAnimating, {false}] [3, Variables, getInteger, 1:RockCounter, 1:==, 2:3] [3, RS2Object, interactWithAtPosition, 2:11364, 1:Mine, 1:RockThree, 3:true] [3, Variables, operationInteger, 1:RockCounter, 1:Set as, 2:1] [3, Mouse, hoverPosition, 1:RockOne] [4, Inventory, isFull, {true}] [4, Inventory, dropAll]
  3. Bug on restocking. 1: Mirror Mode 2: logs: https://pastebin.com/h8Wm1ckB 3: Description: Attempts to restock: Uses teleport to home (lumbridge), goes to al kharid and takes glider to gnome stronghold. Once there, attempts to use home teleport again which fails due to cool down.
  4. Rooftop Agility trial please
  5. can't find this in the sdn, this is no longer supported?
  6. Do you reckon you can extend this bot to respond to any1 taking to you? ie; it sends you discord msg and you can reply. For example: bot: “name”:”wc lvl?” you: !reply “60, wbu?” Actually, using a discord bot to configure script behavior would be pretty neat, !stop !break 20 minutes !status This is some cool stuff, Medusa
×
×
  • Create New...