percentage act4

06/22/2019 19:48 redbull2905#1
hello, I would like to know if possible how to add and modify the% of the act 4 raids by killing the monsters
06/22/2019 19:50 Prophecy_#2
Weren't you the guy who said "C# is easy language"..

And now you are asking again.
Yes, it's very easy.. The % actually raises by killing a Player/Monster, search where this is stored, and add a multiplier or manually increase the values (which i wouldn't do).

This is your hint, now try to do it yourself
06/22/2019 19:55 Blowa#3
Quote:
Originally Posted by redbull2905 View Post
hello, I would like to know if possible how do we do to add and modify the % of raids act 4 pvp & pve
Looks like you really have a problem with basic maths.
Just look on your source where "Act4PercentBar" (don't know how it looks on the sources you are using) are modified.

Divide -> percentage
If you don't know how to do a percentage on a total, school is a good place where to learn those things you know, you should have gone there.

Edit :
Giving you an answer, seems too difficult for you to use a search engine

Quote:
To determine the percent of a number do the following steps:

Multiply the number by the percent (e.g. 87 * 68 = 5916)
Divide the answer by 100 (Move decimal point two places to the left) (e.g. 5916/100 = 59.16)
Round to the desired precision (e.g. 59.16 rounded to the nearest whole number = 59)
06/22/2019 20:01 redbull2905#4
But I know that I'm talking about adding the same thing but for the pve :facepalm:
06/22/2019 20:02 Blowa#5
Quote:
Originally Posted by redbull2905 View Post
But I know that I'm talking about adding the same thing but for the pve :facepalm:
Then just look when a monster dies to add the percentage you want on the percent bar [Only registered and activated users can see links. Click Here To Register...]
06/22/2019 20:29 Prophecy_#6
Quote:
Originally Posted by redbull2905 View Post
But I know that I'm talking about adding the same thing but for the pve :facepalm:
if monsterdead
{
add percantage..
}

and dont forget to specify that the character is either on act4, or only add it via MapTypes...

Edit: You are maybe not smart enough to add that, otherwise ALL Monsters will increase the %
Edit 2: Please DONT paste my code.. it wont work..
06/22/2019 21:13 redbull2905#7
Code:
if (ServerManager.Instance.ChannelId == 51 && ServerManager.Instance.Act4DemonStat.Mode == 0
                                                                   && ServerManager.Instance.Act4AngelStat.Mode == 0)
                        {
                            if ()
                            {
                                switch (Session.Character.Faction)
                                {
                                    case FactionType.Angel:
                                        ServerManager.Instance.Act4AngelStat.Percentage += 30;
                                        break;

                                    case FactionType.Demon:
                                        ServerManager.Instance.Act4DemonStat.Percentage += 30;
                                        break;
                                }
                            }
                        }
for now I did this but I do not know what exactly to put in the if
06/22/2019 22:51 Saber none#8
Quote:
Originally Posted by redbull2905 View Post
Code:
if (ServerManager.Instance.ChannelId == 51 && ServerManager.Instance.Act4DemonStat.Mode == 0
                                                                   && ServerManager.Instance.Act4AngelStat.Mode == 0)
                        {
                            if ()
                            {
                                switch (Session.Character.Faction)
                                {
                                    case FactionType.Angel:
                                        ServerManager.Instance.Act4AngelStat.Percentage += 30;
                                        break;

                                    case FactionType.Demon:
                                        ServerManager.Instance.Act4DemonStat.Percentage += 30;
                                        break;
                                }
                            }
                        }
for now I did this but I do not know what exactly to put in the if
Isn't there a method GenerateKillBonus? If I'm not wrong there is one, you can put your code into that methode, I'm not sure if that is the smartest way, but it would work.
06/23/2019 15:20 Prophecy_#9
Quote:
Originally Posted by redbull2905 View Post
Code:
if (ServerManager.Instance.ChannelId == 51 && ServerManager.Instance.Act4DemonStat.Mode == 0
                                                                   && ServerManager.Instance.Act4AngelStat.Mode == 0)
                        {
                            if ()
                            {
                                switch (Session.Character.Faction)
                                {
                                    case FactionType.Angel:
                                        ServerManager.Instance.Act4AngelStat.Percentage += 30;
                                        break;

                                    case FactionType.Demon:
                                        ServerManager.Instance.Act4DemonStat.Percentage += 30;
                                        break;
                                }
                            }
                        }
for now I did this but I do not know what exactly to put in the if
I could facepalm myself the whole day...
The Code works like this:
if a Character is FactionType.Angel the % will rise up for 30%, that will brake the game and also only spit out error. That is indeed dumb.

But like Saber said, use GenerateKillBonus, it's easy to do so
06/26/2019 13:23 Cryless~#10
I get paid for a job then I ask on elitepvpers << How can I do it ? >> cit. @[Only registered and activated users can see links. Click Here To Register...]