[GH-ISSUE #352] No Whip Animation #877

Closed
opened 2026-05-20 10:15:11 +00:00 by Dark98 · 3 comments
Owner

Originally created by @Sch4ff3r on GitHub (Jan 7, 2020).
Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/352

Whip Animation on monsters doesn't show up.

Originally created by @Sch4ff3r on GitHub (Jan 7, 2020). Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/352 Whip Animation on monsters doesn't show up.
Author
Owner

@Jmx77-RS commented on GitHub (Jan 7, 2020):

Which monsters in particular?

<!-- gh-comment-id:571371476 --> @Jmx77-RS commented on GitHub (Jan 7, 2020): Which monsters in particular?
Author
Owner

@Gptaqbc commented on GitHub (Jan 7, 2020):

In specials.java line 108 method activateSpecial doesnt support NPC because in a fight with a NPC the o var is null so it never happens(line 222):

				if (o != null)     
				{
					o.gfx0(SA.getGfx1());
				}
<!-- gh-comment-id:571377945 --> @Gptaqbc commented on GitHub (Jan 7, 2020): In specials.java line 108 method activateSpecial doesnt support NPC because in a fight with a NPC the o var is null so it never happens(line 222): if (o != null) { o.gfx0(SA.getGfx1()); }
Author
Owner

@Gptaqbc commented on GitHub (Jan 27, 2020):

Oh I got it! Add this before the line 108:

		if(Server.npcHandler.npcs[i] != null) {
			Server.npcHandler.npcs[i].gfx0(SA.getGfx1());
		}

(Server.npcHandler isn't what we use but it shouldn't be hard to find what to use)

If NPC var isn't null it'll apply the GFX to it.

EZPZ

<!-- gh-comment-id:578813239 --> @Gptaqbc commented on GitHub (Jan 27, 2020): Oh I got it! Add this before the line 108: if(Server.npcHandler.npcs[i] != null) { Server.npcHandler.npcs[i].gfx0(SA.getGfx1()); } (Server.npcHandler isn't what we use but it shouldn't be hard to find what to use) > If NPC var isn't null it'll apply the GFX to it. EZPZ
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#877