Missed my pic for 37 prayer cause for whatever reason the ghasts dying animation has to interrupt itâŚbut
The fun fact of the day, when you see close interfaces seemingly at random itâs because Jagex has a concept called âprotected access,â it ensures scripts donât run âconcurrently.â
The server is single threaded - which means itâs not really at the same exact time, just that a script/interface may have blocked further access on that player.
Variables and inventories are âprotectedâ by default, unless explicitly unprotected, which means they need protected access to update them. This helps prevent a lot of simple logical gotchas devs could make, but if a dev isnât aware of how it works they can make some small mistakes too.
Interfaces being open or your player being âdelayedâ block protected access. Delays also disallow user input. When youâre alching or using the bullroarer to run around youâre under a brief delay, and an astute mind may notice that means run energy doesnât drain during those ticks either!
What that means for devs, you have to close interfaces if_close then attempt to gain protected access p_finduid, if it succeeds you have free reign over the playerâs state, if it fails you need to gracefully handle it/queue a script to run when available in the future.
Because killing a ghast runs the death script from the NPC itself, and it needs to check and advance your quest state, it requires protected access and therefore closes your interface to attempt to get it. Even if you finished the quest.
On OSRS this is a âstrong queuedâ action which is another can of worms, queues (with one exception) attempt to run every tick once theyâre ready AND they have protected access. To have a better chance at it, strong queues close interfaces automatically, so theyâre only blocked by delays.
Weâre before the addition of strong queues to the engine, but we still have the same protection rules, so we just do that manually in content.
Gz on the progress ![]()
Was always curious why we couldnât have interfaces open when doing things. =P
But for ghasts in particular I figured it was because it was using the bury action w/o actually showing it since you get prayer xp on kill.
There are no questions that canât be answered
If youâre ever curious our source is one search away!
The code that runs here just directly adds prayer XP rather than via general burying:
stat_advance(prayer, 300);
if(%druidspirit = ^druidspirit_added_pouch) {
mes("That's one Ghast, 2 more to kill.");
%druidspirit = ^druidspirit_killed_ghast1;
} else if(%druidspirit = ^druidspirit_killed_ghast1) {
mes("That's two Ghasts, 1 more to kill.");
%druidspirit = ^druidspirit_killed_ghast2;
} else if(%druidspirit = ^druidspirit_killed_ghast2) {
mes("That's all three Ghasts!");
%druidspirit = ^druidspirit_killed_ghast3;
}
stat_advance does not require protected access (XP is divided by 10 when shown btw), updating the quest state does %druidspirit =
p.s. If we had the coveted tape.tar.gz backup my duty would become documenting and teaching the real code!
Our code is a recreation based on measurable behaviors, limited by running in a similar environment. I will caveat that our environment has features that surpass real 2004âs capabilities, but nothing that affects emulation/output. Just dev UX.
Bleh I need to remember to look at stats after I take a breakâŚmissed 900 total but heres 901 =P
Hiscores still had it lol
Been almost 24hrs since the last post. Iâve been working on gathering the herbs needed for 45 Herblore. It is my last skill until I can do Legends Quest. Once I have that I will be running through Family Crest, Shilo Village, Underground Pass, Watchtower and Finally Legends Quest.
I was hoping to have this all done by the end of Thursday, but I donât think I will make that timeline. Taking quite a while to gather just the herbs and still need the secondaries.
This is what I know I have atm and the Secondaries Needed.
Yo, Iâm willing to assist with 340 vials of water. Iâll add you in game
And 9 snape grass ![]()
Added to the special thanks area of the first post =)
The downside to no bots is high priced secondariesâŚwonder how long it will take to collect em all lol

















