[FIXED] Only last thrown explosion potion explodes

Here we stuff all the bugs we've managed to squash/squish/squelch.
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Only last thrown explosion potion explodes

Post by Xuri »

I stand next to an NPC with two players on two different accounts. Each of my characters has an explosion potion in his backpack.

Player A throws an explosion potion at the NPC, and while that potion is counting down to explode, player B throws an explosion potion at player A. Now only the potion player B threw will explode, the one player A threw will remain at the NPC's feet (or wherever it was thrown), won't explode, and will be impossible to pick up.

Also - not sure how smart it is to allow people to throw multiple potions after eachother rapidly. I think we need some sort of "You must wait to throw another potion" timer :)
Last edited by Xuri on Sun Jan 18, 2009 10:55 pm, edited 1 time in total.
-= Ho Eyo He Hum =-
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

This one looks like it has been fixed, when I throw two potions using two different characters, both potions explode - though no explosion gfx appear on my screen, the potion just vanishes from the screen.

The explosion effect does play on my character if I fail to throw the potion in time, though.

The relevant code-bits:

Code: Select all

	if( nItem->GetCont() != NULL )
	{
		Effects->PlayStaticAnimation( c, 0x36B0, 0x00, 0x09 );
		nItem->SetCont( NULL );
		nItem->SetLocation( c );
		Effects->PlaySound( c, 0x0207 );
	}
	else
	{
		Effects->PlayStaticAnimation( nItem, 0x36B0, 0x00, 0x09, 0x00 );
		Effects->PlaySound( nItem, 0x0207 );
	}
-= Ho Eyo He Hum =-
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Original issue in this thread is fixed, so will create a new thread for any other issues (like the fact that no explosion gfx appear when the potions explode).
-= Ho Eyo He Hum =-
Post Reply