hello, I would like to know if possible how to add and modify the% of the act 4 raids by killing the monsters
Looks like you really have a problem with basic maths.Quote:
hello, I would like to know if possible how do we do to add and modify the % of raids act 4 pvp & pve
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)
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...]Quote:
But I know that I'm talking about adding the same thing but for the pve :facepalm:
if monsterdeadQuote:
But I know that I'm talking about adding the same thing but for the pve :facepalm:
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;
}
}
}
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.Quote:
for now I did this but I do not know what exactly to put in the ifCode: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; } } }
I could facepalm myself the whole day...Quote:
for now I did this but I do not know what exactly to put in the ifCode: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; } } }