GNightmare
GNightmare kills the multi-phase shielded boss The Nightmare in a group. This is not the solo instanced Phosani's encounter, see GPhosani for that. The script handles the full fight, curse-swapped prayer switching, claws, surges, spores, the flower safe zone, husks, parasites, sleepwalkers and totems, while dynamically swapping between Melee, Mage and Ranged (chins) gear depending on what it's attacking.
Important: GNightmare requires a group. On startup, if no Clan Chat Leader is set (and you're not using Mass Worlds mode), the script will kill itself with the message "To run The Nightmare you must create a group." This is the number one setup gotcha, see Group Settings below.
For suggestions of what gear to bring, we recommend checking the OSRS Wiki Page Nightmare Strategies. Currently, dynamic gearing is not fully setup for this script. We highly recommend defining gear for every field!
Requirements
- Enough gold to buy supplies, unless you have reverse muling setup.
- The Nightmare unlocked. If you haven't unlocked it, the script talks to Shura to flag the fight as available.
- A group, either a Clan Chat Leader to follow, or Mass Worlds mode enabled.
- Separate Melee and Mage gear (see Equipment).
- A ranged weapon for sleepwalkers (defaults to Chinchompa).
Unlocks (automated)
The script will handle these for you on the first run if they aren't done yet:
- Andras boat: permanently unlocks the boat by paying Andras 1,000,000 coins (it'll bank/withdraw/GE-buy the 1.1m coins to cover it). This is a forced one-time purchase.
- Slepe teleport: if you've completed A Taste of Hope and haven't unlocked the Slepe teleport, it uses a Slepey tablet on the Ver Sinhaza teleport item to unlock it.
- Nightmare unlock: talks to Shura to flag the fight if you haven't unlocked it.
Group Settings
GNightmare coordinates with other bots running the script. There are two ways to get into the arena: Group mode (the default, follows a CC leader) or Mass Worlds mode (hops mass worlds looking for a full arena).
In Group mode, the leader counts nearby clan members near the boss and Disturbs it once enough players are present. Non-leaders join the leader's clan chat, hop to the leader's world, and enter once the boss shows started-by-leader. In Mass Worlds mode there's no leader, the script hops between mass worlds inspecting the boss's "adventurers" count, and enters once enough players are present.
| Setting | Tooltip |
|---|---|
| Clan Chat Leader | The CC leader's name. The script joins this clan chat and hops to that player's world. Anyone inside the CC is treated as an ally and ignored as a crasher. Required for Group mode, if it's empty and Mass Worlds is off, the script kills itself after about 10 checks. |
| Count to start | In Group mode, the leader waits until this many clan members are near the boss before Disturbing it to start the fight. |
| Count to abandon | If the player count in the arena drops to or below this value, the script bails the current kill and escapes. |
| Hop if non-clan inside | In Group mode, if a non-CC player is in the arena, the script hops worlds rather than fighting alongside a crasher. |
| Use Mass Worlds | Switches to Mass Worlds mode, hopping mass worlds to find a full arena instead of following a CC leader. |
| Mass World Hop Interval | How often the script hops worlds while searching in Mass Worlds mode. |
| Mass World Players to Enter | The minimum player count the script needs to see on a mass world before it enters that arena. |
| Hops without world before stopping | In Mass Worlds mode, the script stops after this many hops without finding a viable world. |
| Exit before fight at player count | In Mass Worlds mode, if the player count is below this value and you're not yet fighting, the script leaves the arena via the Energy Barrier rather than committing to an under-manned kill. |
Trip / Supply Settings
These cover what the script brings per trip and the on-hand minimums it needs to start a kill. Many counts are dynamic, the chins-to-bring count scales with your group size, and effective prayer / restock targets adjust for menu manipulation and one-tick flicking. Note: a value of 0 disables withdrawing that item; -1 is dynamic where noted.
| Setting | Tooltip |
|---|---|
| Min Parasite Cures | The lowest number of parasite cures (Relicym's Balm / Sanfew serum) you must have on hand for the script to start a kill. |
| Min Combat Doses | The lowest number of combat potion doses the script will start a kill with. |
| Chins to bring | How many chinchompas to pack for sleepwalkers. -1 is dynamic and scales with your group's player count. |
| Min Chins For Kill | Won't start a kill below this many chins. -1 lets the script work out a sensible count. |
| Balm Count | Number of Relicym's Balm doses to withdraw for curing parasites. |
| Sanfew Count | Number of Sanfew serums to withdraw (these double as parasite cures). |
| Teleport | Travel teleport to the boss: Slepe (Drakan's medallion), Ver Sinhaza (Drakan's medallion), Fenkenstrain, Ectophial, or dynamic. |
| Bank Teleport | The teleport the script brings to get back to the bank between trips. |
The script also auto-decants potions inside the arena, refreshes Stamina at the bank, handles the Drakan's medallion for teleports, and GE-buys any missing supplies on restock.
Fight Settings
Your Fight Settings will vary depending on your setup. GNightmare handles the whole fight automatically, the mechanics below are managed for you, but these thresholds let you tune eating, prayer and totem behaviour.
| Setting | Tooltip |
|---|---|
| Spec Threshold | Special-attack energy the script waits for before throwing the spec weapon. |
| Force Eat Threshold | The script will force eat even if it's wasteful when HP is at or below this value. Set to -1 to disable. |
| Don't Eat Threshold | The script won't eat until HP falls below this value. Set to -1 to disable. |
| Totem Eat Threshold | Separate HP threshold the script eats up to while dealing with the totem phase. |
| Min HP For Kill | Minimum on-hand HP (including food) the script needs before it'll start another kill. |
| Effective Prayer On Kill | Minimum effective prayer (including on-hand restores) required to start a kill. |
| One Tick Flick | ONLY USE THIS SETTING IF YOU HAVE A GOOD INTERNET CONNECTION. If Menu Manipulation is active and this is true, the script will one tick flick all prayers. |
Fight mechanics handled automatically
You don't configure these, the script reads the boss's animations, projectiles and chat to handle the full rotation:
| Mechanic | Behaviour |
|---|---|
| Prayer switching | Automatically switches Protect from Melee/Missiles/Magic to match the boss's attacks, with one-tick-flick support. Handles the Nightmare's curse that swaps which overhead maps to which attack, inverting all three prayers while cursed. |
| Grasping claws | Steps off the dangerous claw tiles to dodge them. |
| Surge attack | Detects the boss's teleport (surge) and dodges out of the danger area. |
| Spores / mushrooms | Avoids the shroom tiles and handles spore infection (waits it out / charges to clear it). |
| Flower safe zone | Detects the good flowers (Nightmare Blossom) vs the bad ones (Nightmare Berries) and stands in the safe quadrant. |
| Husks | Prays the right overhead for the husk type, targets the husk attacking you, and specs / death-charges them. |
| Parasites | Detects impregnation, prioritises killing the parasite (with an optional dedicated Parasite Weapon or a spec), and cures with Relicym's Balm / Sanfew serum. |
| Sleepwalkers | Switches to ranged / chinchompa gear and spreads sleepwalker targeting across the group so bots don't all shoot the same one. |
| Totems | Switches to Mage gear/staff during the charge phase, casts at the charged totems, spreads totem targeting across players, and uses the Totem Eat Threshold for eating. |
The script also summons Thralls, uses Death Charge and Preserve, smart-drinks Saradomin brews, tops up with Menaphite Remedy / Super restore / Moonlight moth mix, and only uses an Imbued / Saturated heart at the totems. It bails a kill and re-banks if it runs out of food (with brews), has no prayer, or the player count drops to or below Count to abandon.
Equipment
GNightmare maintains separate Melee and Mage gear sets and swaps between Melee, Mage and Ranged (chins) dynamically depending on the current target (boss = melee, totems = mage, sleepwalkers = chins). Each dropdown has a sensible default, only touch them to force something specific.
Melee Weapon
Dynamic melee picks from: Inquisitor's mace, Abyssal bludgeon, Zombie axe, Sarachnis cudgel, Dragon mace, Granite hammer. You can override this manually.
Mage Weapon
The Magic Equipment tab has its own staff dropdown, dynamic picks from: Tumeken's shadow, Sanguinesti staff, Trident of the swamp / seas, Mystic smoke staff / Smoke battlestaff, Staff of fire. You can override manually.
| Setting | Tooltip | Options |
|---|---|---|
| Spell | Spell used for casting on totems. Dynamic picks the best fire spell for your level, or pick one manually. Autocast vs cast-on is handled for totems. | Dynamic, or manual spell selection. |
| Sleepers Weapon | The ranged weapon used on sleepwalkers. The script auto-adds ammo if the chosen weapon needs it. | Defaults to Chinchompa. |
| Parasite Weapon | Optional dedicated weapon to one-shot the parasite. Leave it off and the script specs the parasite instead. | Optional. |
| Spec Weapon | The special-attack weapon the script switches to at the Spec Threshold. It specs at sensible moments through the fight and accounts for the Lightbearer's faster spec regen. | DWH, SGS, BGS, Voidwaker, Dragon claws, Abyssal bludgeon, Granite maul (ornate), Dragon mace, Burning claws |
Muling
All G Scripts have a dedicated Muling tab, where you can customise and set default options. Below is a table of all the settings and descriptions, and below it, an example of my Muling tab from GDelve.
| Setting | Description |
|---|---|
| Error URL | A discord webhook URL for error information. |
| Mule At Amount | When you have more than this amount + the amount of gold to keep (setting below this) the script will mule down to the amount of gold you want to keep. Eample: You set this amount to 10m, and you set gold to keep to 5m, you will mule when you reach 15m. |
| Gold To Keep | Amount of gold to keep after muling. More information is above. |
| Ask Mule For Gold At | If your account has less gold than the input value, it will try to receive gold from the mule. Example: If you set this to 10m, and you have less than 10m GP, the account will request gold from the mule. This amount of gold that's requested can be configured below. Set to -1 to disable. |
| Ask Mule For Amount | If you are receiving gold, your account will try to receive this much gold from the mule. |
| Minimum Membership | If a value above 0 is provided, the script will not mule unless you have more days of membership left. Example: If this is set to 2, and you have 2 days of membership left, the script will not mule. |
| Reverse Bond if F2P | If your account is not members, it will try to receive a bond from the mule. |
| Mule Group ID | Group ID's allow refined control between what mule(s) a given account will connect to. This setting is used to restrict what accounts can connect to certain mules. If you configure a group ID in here, the account will only connect to a mule that has the same group ID. This is superior than configuring a port, as that forces you to have many profiles to have refined control over which mules the account(s) can connect to. The same as dynamic muling; if multiple mules have the same group ID, then the account will connect to its 'favourite' mule among the mules with the same group id. However, if no mules exist with the same group id, then it will not mule at all. This setting exists to give you refined control over what mules your accounts will connect to. Most people shouldn't use this setting, as dynamic muling should already be sufficient. For more information, here is some examples of how it works: if you have 10 rev accounts, and 2 mules. You want exactly 5 accounts to use 1 mule, and exactly 5 accounts to use another mule. You only need 2 profiles to make this happen, one profile can be running on group ID "a" and one profile on group id "b". Any accounts running on group id "a" will only mule with the mule that also has a group id of "a". As this uses dynamic muling, if you want to run 5 more accounts, you don't need to make a new profile; you can simply run another mule with the group id of "a" or "b", and more accounts on the respective group id. For example, you can run 10 accounts on grooup "a" and 5 accounts on group "b". If 2 mules are running on group "a", then each of the 10 accounts on group "a" will select their favourite mule among both mules running on group "a". In the event of a mule being banned, if another mule exists with the same group id, then the account will simply swap over to use another mule in the group. This setting makes it easy to launch replacement mules, while restricting which accounts can interact with a specific mule. |
Example
This example is from my GDelve. In this example, you see I've set up a Discord Webhook if the account trying to trade the mule cannot for any reason. The mules name is included that it'll trade gold to, or request it from. It's setup to mule once it gets to 35m GP, as it needs to give 30m and keep 5m. Or to request 5m from the mule, if it gets below 2m GP from buying supplies. Reverse Bond if F2P is enabled in case the Auto Bond setting in Misc tab is set to 0.
Discord Webhook Setup
- 1. Create Discord server or use an existing server you have created.
- 2. Create a Muling channel or use an existing channel you have created.
- 3. Edit the channel, enter the Integrations tab and select the New Webhook button.
- 4. Click onto the new Webhook, and select Copy Webhook URL.
- 5. Paste into Error URL and Webhook URL field.
Misc
All G Scripts have a dedicated Misc tab, where you can customise and set default options. These are broken down across two tabs.
Misc Settings
This first tab is any setting that doesn't belong in its own tab or sub tab in the script. Below is an example of my GYama Misc Tab > Misc Settings.
| Setting | Description |
|---|---|
| Auto Bond Days | If your membership is less than or equal to the provided value, it will use a bond if you have one, or buy one and use it if you can afford one. |
| Custom Mouse Speed | If your value is -1 it will not be changed. High-level PVM should be using a mouse speed of at least 130. Changing this allows your mouse speed to go beyond the limits of DreamBot's max speed (99). Anything beyond 750 will be similar to mouse hopping. If you set this to 100, the mouse will just hop. |
| Use Script Events | Will fire off script events within the client, generally speeding up actions. |
| World Region | The region of the wolrd the script will play on. I.E selecting Australia the script will play on Australian worlds only, unless an actively requires a certain world i.e example being Pest Control W344. |
| Blacklisted World Region | The script will NEVER hop to or login to this world region. |
| World Blacklist | Any worlds put in here will not be hopped to. Split them with a comma. For example: 301,302,303 |
| World Whitelist | Any worlds put in here, only these worlds will be hopped to. Split them with a comma. For example: 301,302,303 |
| Buy Rune Pouch | If enabled the script will buy a rune pouch if it can afford 2x and you don't own one. |
| Allow Deadman Worlds | If enabled, the script will function on deadman mode. Note: Unless explicitly stated on the script, the scripts are NOT intended for deadman mode. They will operate the same as a regular world, simply without hopping out of deadman worlds. |
| Allow League Worlds | If enabled, the script will function on leagues mode. Note: Unless explicitly stated on the script, the scripts are NOT intended for leagues mode. They will operate the same as a regular world, simply without hopping out of leagues worlds. |
| Focus On Exit | If enabled, the client will be focused when the script is killed either from an error or task stop. |
| Global Disable Drip | If enabled, all random drip will be disabled. |
| Ignore Ping on Hop | If enabled, will ignore world ping settings and just choose a random one instead of a good ping world. |
| Default Debug Paint On | If enabled, the debug paint will be enabled at the start of the script. |
| Disable Custom Mouse Algo | If enabled, the script will not allow GMouseAlgo to be used, and will instead use DreamBot's. |
The old GUI (reachable via the Swap to Old GUI button) also carries a few legacy Misc toggles that aren't in the new GUI: Use Menu Entry Swapper, Use Human Interactions and Use Bank Tags.
Example
This example is from my GYama. In this example (click image to see full size), the Auto Bond setting in is set to 2, so once membership gets down to 2 days, the bot will buy a bond to extend it. If Muling is setup, it'll ask the mule for money to buy a bond if it's too poor. Custom Mouse Speed and Script Events are the default settings, and world region is set to Australia since my bots server is in Australia. I've blacklisted world 424 and 425 as I've noticed it's unstable and causes bad tick ratio, and whitelist is empty so it'll use any other Australia world. The rest of the settings I've left as the default.
Webhook Settings
This second is for Discord Webhooks, so your script can send messages to your Discord Server/Channel with updates from your Script.
| Setting | Description |
|---|---|
| General Information URL | A notification with general information about the bot. |
| General Information Minutes | If the value is 1 or higher, a webhook will be sent every X minutes. |
| Rare Drop URL | A notification will be sent upon receiving a rare drop. |
| Rare Drop Screenshot URL | A screenshot will be sent upon receiving a rare drop. |
| Rare Drop Value | The minimum price for an item to be considered a rare drop. If any received is above this value, the webhook will fire. |
| Pet Drop URL | A notification will be sent upon receiving a pet. |
| Banned URL | A notification when script stops from a banned login page. |
| Kill Count URL | A notification with the amount of kills the script has. |
| Kill Count Frequency | Every X kills, the notification will be sent. |
| Script Stop URL | A notification for when the script stops. |
| Proggy URL | A screenshot of a picture of the proggy when the script stops. |
Example
This example is from my GYama. In this example, there are five webhooks populated:
Rare Drop URL, Rare Drop Screenshot URL and Pet Drop URL all have the same webhook generated from one Discord channel called drops. The Banned URL and the Script Stop URL both have another webhook that is generated from a channel called information.
This allows me to be notified when I get rare drops, pets, the account is banned or the script is stopped to either of these Discord Channels.
Discord Webhook Setup
- 1. Create Discord server or use an existing server you have created.
- 2. Create a Muling channel or use an existing channel you have created.
- 3. Edit the channel, enter the Integrations tab and select the New Webhook button.
- 4. Click onto the new Webhook, and select Copy Webhook URL.
- 5. Paste into Error URL and Webhook URL field.
Anti-ban
All G Scripts have a dedicated Anti-Ban tab, where you can customise & fine-tune actions. These are broken down across three tabs:
Misc
| Setting | Description |
|---|---|
| Default Randomisation | If this is set to 10, all the anti-ban settings below will roll between 1 and 10% if they are set to 0. |
| Camera Move Chance | The % chance per tick the camera will randomly move while not in combat. |
| Examine Chance | The % chance per tick the script will randomly examine while not in combat. |
| Tab Swap Chance | The % chance per tick the script will randomly swap tabs while not in combat. |
| Interaction Fail Chance | The % chance the interaction will fail. |
| Micro Sleep Chance | The % chance per tick the script will briefly stop execution |
| Micro Sleep Min Length | The minimum amount of time in milliseconds that the script will sleep for. |
| Micro Sleep Max Length | The maximum amount of time in milliseconds that the script will sleep for. |
| Check Skill Exp Chance | The % chance per tick the camera will randomly check a skill's exp while not in combat. |
| Kill To Hop | After this many kills, the script will hop at the next bank. |
| Minute To Hop | After this many minutes, the script will hop at the next bank. |
| Simulate Ironman | If True, the script will act as if it's an ironman. |
| Slower Gear Equips | If True, the script will slow down your gear equips while the bank is closed. |
| Slower Bulk Dropping | Slows down bulk dropping (roughly 3-6 items or more) |
| Fake NCW Movement | Adds occasional fake mouse movement while No Click Walking, so the mouse isn't sat dead still between tiles. |
| Fake Manip Movement | Adds occasional fake mouse movement while using Menu Manipulation, so the cursor isn't perfectly still between manipulated clicks. |
| Use AI Mouse | Uses the AI mouse algorithm for more human-like cursor paths. |
| Use New Walking | Switches to the newer walking system. |
Bank
| Setting | Description |
|---|---|
| Over Withdraw Chance | The % chance per item withdrawn from the bank for the script to over withdraw by a random amount. |
| Under Withdraw Chance | The % chance per item withdrawn from the bank for the script to under withdraw by a random amount. |
| Sleep Per Withdraw Chance | The % chance per item withdrawn from the bank for the script to execute a micro sleep. |
| Search Banking | If True, the script will search your bank for items, instead of scrolling to them. |
| Sort Bank | If True, the script will sort your bank based off your recently used items. |
| Slower Gear Equips | If True, this will slow down your gear equips while the bank is open. |
| Slower Withdrawls | Slows down withdrawls overall independent of sleep per withdraw chance. |
Breaks
Micro
| Setting | Description |
|---|---|
| Enable | If this is not enabled, then breaks of this category are disabled. |
| Min Wait Time | Minimum time that can pass before a break is triggered in ticks (0.6 seconds) |
| Max Wait Time | Maximum time that can pass before a break is triggered in ticks (0.6 seconds) |
| Min Length | Minimum time that the break can run for in ticks (0.6 seconds) |
| Max Length | Maximum time that the break can run for in ticks (0.6 seconds) |
| Enable Mouse Movement | If This is enabled, and the chances configured pass, the mouse will move. This could be moving outside of the screen, or elsewhere on the screen, immediately before the break is started. |
| Mouse Move Min Chance | This is the minimum % chance of the Mouse Movement option. |
| Mouse Move Max Chance | This is the maximum % chance of the Mouse Movement option. |
Normal
| Setting | Description |
|---|---|
| Enable | If this is not enabled, then breaks of this category are disabled. |
| Min Wait Time | Minimum time that can pass before a break is triggered in minutes. |
| Max Wait Time | Maximum time that can pass before a break is triggered in minutes. |
| Min Length | Minimum time that the break can run for in minutes. |
| Max Length | Maximum time that the break can run for in minutes. |
| Enable AFK Log | If enabled, and the roll is successful, the account will afk logout instead of manually logging out. |
| AFK Log Min Chance | This is the minimum % chance of the script to AFK Logout. |
| AFK Log Max Chance | This is the maximum % chance of the script to AFK Logout. |
Bedtime
| Setting | Description |
|---|---|
| Enable | If this is not enabled, then breaks of this category are disabled. |
| Min Length | Minimum time that the break can run for in hours. |
| Max Length | Maximum time that the break can run for in hours. |
| Min Hour | This is the minimum hour of the day. This is based on a 24 Hour Clock! Minimum value can be 21, or max value can be 2. |
Bank
| Setting | Description |
|---|---|
| Enable | If this is not enabled, then breaks of this category are disabled. Bank breaks have a chance to occur every single time when banking. This is to simulate actions a human might take throughout their day. The chacnes roll every single time the bank is opened. |
| Min Chance | Minimum time that the script will preform a bank break. |
| Max Chance | Maximum time that the script will preform a bank break. |
| Min Length | Minimum time that the break can run for in seconds. |
| Max Length | Maximum time that the break can run for in seconds. |
| Enable Mouse Movement | If This is enabled, and the chances configured pass, the mouse will move. This could be moving outside of the screen, or elsewhere on the screen, immediately before the break is started. |
| Mouse Move Min Chance | This is the minimum % chance of the Mouse Movement option. |
| Mouse Move Max Chance | This is the maximum % chance of the Mouse Movement option. |
Add-On Settings
Most GScripts (excluding GAIO/GMuling etc) have a dedicated Add-on Settings tab, where you can set up compatible Add-on Scripts to run before the script you selected to start in DreamBot. Note: You must own any of the Add-on Scripts to intend to run.
For example, from the DreamBot start menu, you can start GSpindel. Then in the Add-on Settings tab for the script, set the GBirdhouses & GFarming scripts to run first, by defining a Target Level for both scripts that is higher than your account's current level. This will cause GBirdhouses and GFarming to run, and after completing their runs, GSpindel will begin.
For other scripts like GCooking, the script will continue until it reaches its Target Level. Unlike GBirdhoues and GFarming that will stop once the run has been completed. This means you don't want to set the Target Level too high for a script like that, otherwise it'll spend the whole time just GCooking.
The following scripts are able to be run as add-ons: