Skip to content

Editing Interface FlyDamage

Featured Replies

Hi!. Im trying to show if critical or overhit messages when code of SystemMessage is given but, if i add two of them it's work. Like This.

 

						switch (SystemMsgIndex)
							{
							case 2261:
							if(isCrit){
								colorString[messagePosition] = 1;
								damageString[messagePosition] = "Critical!";
								isCrit = false;
								Me.SetTimer(START_1_TEXT_TIMERID + messagePosition, 100);
							}
							if(isOver){
								colorString[messagePosition] = 1;
								damageString[messagePosition] = "Over-Hit!";
								isOver = false;
								Me.SetTimer(START_1_TEXT_TIMERID + messagePosition, 100);
							}
							else{
								colorString[messagePosition] = 0;
								damageString[messagePosition] = string(playerDamage);
								Me.SetTimer(START_1_TEXT_TIMERID + messagePosition, 100);	
							}
							break;
                            
                            
                            
                            Befor that switch i add this switch to get crit or overhit
                              
                              	switch (SystemMsgIndex)
	{

		///////////////////////// overhit message
		case 361:
		if (targetCount < 5)
			{
				isOver = true;
			}
			break;

		///////////////////////// crit message
		case 1280:
		case 2266:
		if (targetCount < 5)
			{
				isCrit = true;
			}
			break;

	}
                            
                            
                            
                            
                           
                            
                            

What im doing wrong?. it is posible to use .

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.