Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 08:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



percentage act4

Discussion on percentage act4 within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2017
Posts: 380
Received Thanks: 60
percentage act4

hello, I would like to know if possible how to add and modify the% of the act 4 raids by killing the monsters
redbull2905 is offline  
Old 06/22/2019, 19:50   #2
 
elite*gold: 0
Join Date: Jun 2019
Posts: 20
Received Thanks: 6
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
Prophecy_ is offline  
Old 06/22/2019, 19:55   #3

 
Blowa's Avatar
 
elite*gold: 98
Join Date: Jan 2010
Posts: 631
Received Thanks: 1,726
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)
Blowa is offline  
Thanks
1 User
Old 06/22/2019, 20:01   #4
 
elite*gold: 0
Join Date: Jul 2017
Posts: 380
Received Thanks: 60
But I know that I'm talking about adding the same thing but for the pve
redbull2905 is offline  
Old 06/22/2019, 20:02   #5

 
Blowa's Avatar
 
elite*gold: 98
Join Date: Jan 2010
Posts: 631
Received Thanks: 1,726
Quote:
Originally Posted by redbull2905 View Post
But I know that I'm talking about adding the same thing but for the pve
Then just look when a monster dies to add the percentage you want on the percent bar
Blowa is offline  
Old 06/22/2019, 20:29   #6
 
elite*gold: 0
Join Date: Jun 2019
Posts: 20
Received Thanks: 6
Quote:
Originally Posted by redbull2905 View Post
But I know that I'm talking about adding the same thing but for the pve
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..
Prophecy_ is offline  
Old 06/22/2019, 21:13   #7
 
elite*gold: 0
Join Date: Jul 2017
Posts: 380
Received Thanks: 60
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
redbull2905 is offline  
Old 06/22/2019, 22:51   #8
 
Saber none's Avatar
 
elite*gold: 30
Join Date: Sep 2014
Posts: 587
Received Thanks: 315
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.
Saber none is offline  
Old 06/23/2019, 15:20   #9
 
elite*gold: 0
Join Date: Jun 2019
Posts: 20
Received Thanks: 6
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
Prophecy_ is offline  
Old 06/26/2019, 13:23   #10
 
Cryless~'s Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 480
Received Thanks: 529
I get paid for a job then I ask on elitepvpers << How can I do it ? >> cit. @
Cryless~ is offline  
Reply


Similar Threads Similar Threads
Boat act4 bug
12/06/2017 - Nostale - 7 Replies
Hello, I have a little problem that is quite embarrassing ... As soon as I connect to my server, there is the small scene with the baterau of the act 4 which is always generated and I find myself in action4 while I was in Nosville. Is it meant to be normal? Or what code do I have to delete to fix this problem? I know where to look but I do not really know what to change :confused: private static void TeleportPlayers(IEnumerable<ClientSession> sessions) { foreach...
[GodMode] Act4
09/11/2012 - Nostale Hacks, Bots, Cheats & Exploits - 16 Replies
Text tut: Kill you with one of the other faction When you are seal send 'revival 9' You relive being seal Kill your another time Your relive be inmortal! (Sorry for bad english...)
Engel/Teufel Act4 Herrausfinden
09/27/2010 - Nostale - 5 Replies
Man kann in act4 die namen der spieler herrausfinden. Dazu müsst ihr den Engel/Teufel anklicken und die Blicklist Tabelle öffnen. Ihr drückt in der Blacklist auf Zufügen und der name des Engels/Teufels Steht dann da :) hf



All times are GMT +2. The time now is 08:26.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.