Jump to content
  • 0

Editing Interface FlyDamage


barao45

Question

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 .

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...