Ghasts sometimes turn into Ulizius npc

Report potential bugs here, and if they seem valid we can create gitlab issues for them.

Moderator: Bug Janitor

Forum rules
- Check if a topic exists before creating a new one.
- Duplicate topics will be immediately deleted.
- Issues lacking detail or sources (where applicable) will be deleted immediately.
- Unimplemented content is not bugged content. Do not report unimplemented content.
- IF YOUR BUG IS EXPLOITABLE DO NOT REPORT IT HERE. DM the report to a Bug Janitor instead.
- Repeated violation of these rules may result in a user being denied access to this section.
Post Reply
User avatar
zyzzima
Noob
Posts: 1
Joined: Sun Feb 19, 2023 7:25 pm

Ghasts sometimes turn into Ulizius npc

Post by zyzzima »

The following template generally helps us get to the source of the problem the quickest, please use it where appropriate.

What did you do?

used a druid pouch with a ghast

What happened?

about 1/5th of the time the ghast turned into the npc Ulizius which then disappeared after a few seconds. You could talk to him.

What did you expect to happen? (Provide a source from runescape wiki/youtube/etc if possible)


Are there any relevant item/npc IDs? (use ::debug command in chat)


Any screenshots/recordings?
yes https://ibb.co/LgByKtg

image


Have you reproduced it on the test server? If so, what are the steps?
User avatar
aweinstock
Developer
Posts: 31
Joined: Thu Aug 11, 2022 1:17 am
Been thanked: 14 times

Re: Ghasts sometimes turn into Ulizius npc

Post by aweinstock »

It looks like `activatePouch` assumes it's being called on an invisible ghast (1052), and tries to turn it into a visible ghast (1053), by incrementing the attacker id. If `activatePouch` is being called on already-visible ghasts, not only does this waste charges, incrementing the id will transform them into Ulizius (1054).

https://gitlab.com/2009scape/2009scape/ ... ils.kt#L68
https://gitlab.com/2009scape/2009scape/ ... L1054-1056
Post Reply