Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 19:32

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

Advertisement



Réputation OpenNos

Discussion on Réputation OpenNos within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2014
Posts: 17
Received Thanks: 1
Réputation OpenNos

Good evening, could someone give me the line of code so that players can farm reputation by killing monsters please?
belmin68 is offline  
Old 12/08/2016, 12:08   #2

 
Blowa's Avatar
 
elite*gold: 48
Join Date: Jan 2010
Posts: 654
Received Thanks: 1,765
Just get monster level or something to set a value and do Reput += (yourValue); on a monster kill


For example.
Aswell, don't forget to regenerate reputation with GenerateFd() and broadcast it to the map (otherwise, your players will have to change map to see if someone upped his reputation)
Blowa is offline  
Old 12/08/2016, 12:32   #3
 
elite*gold: 0
Join Date: Jul 2016
Posts: 66
Received Thanks: 9
Put it:
Quote:
Session.Character.Reput += (monsterToAttack.Monster.Level + 10) - monsterToAttack.Monster.Level + X;
X= Number of reputation which adds to yourself after killing
HarD_GZ is offline  
Old 12/08/2016, 16:33   #4
 
elite*gold: 0
Join Date: Mar 2014
Posts: 17
Received Thanks: 1
Thank you for your help but I managed to run my old code of reputation because before when I met the combat xp was not working and then I put it back in another line and it works.

Hold for people who want the code : if (Session.Character.Reput <= 10000001 && MapId != 150 && MapId != 206 && MapId != 207 && MapId != 208 && MapId != 209 && MapId != 210)
{
Session.Character.Reput += (monsterinfo.Level * 1);
Session.SendPacket(Session.Character.GenerateFd()) ;
}
else if (MapId == 150 || MapId == 206 || MapId == 207 || MapId == 208 || MapId == 209 || MapId == 210)
{
Session.Character.Reput += (monsterinfo.Level * 1);
Session.SendPacket(Session.Character.GenerateFd()) ;
belmin68 is offline  
Old 12/08/2016, 18:12   #5
 
elite*gold: 0
Join Date: Nov 2016
Posts: 11
Received Thanks: 0
In which table?
Giannirizzo is offline  
Old 12/08/2016, 19:03   #6
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,018
Quote:
Originally Posted by HarD_GZ View Post
Put it:

X= Number of reputation which adds to yourself after killing
wtf what is the reason to use something like that...
Session.Character.Reput += (monsterToAttack.Monster.Level + 10) - monsterToAttack.Monster.Level + X;

it's exactly the same as Session.Character.Reput += 10 + X; but you can do this too
Session.Character.Reput += 5 + 5 - 5 - 5 + 8x8/8-8 + 10+X
i seriously don't understand why you use Level if you substract it just after
0Lucifer0 is offline  
Old 12/17/2016, 15:04   #7
 
elite*gold: 0
Join Date: Aug 2011
Posts: 98
Received Thanks: 4
Folder ? search réputation kill monster please Lucifer *-*
skr4w is offline  
Old 01/07/2017, 21:41   #8
 
elite*gold: 0
Join Date: Aug 2011
Posts: 98
Received Thanks: 4
help please for system réputation
skr4w is offline  
Old 01/07/2017, 23:25   #9

 
Blowa's Avatar
 
elite*gold: 48
Join Date: Jan 2010
Posts: 654
Received Thanks: 1,765
Quote:
Originally Posted by skr4w View Post
help please for system réputation
Aren't you supposed to be an "International Developer that develops on VS only" ? (quoting your says)
Cmon you'r not even able to do a simple variable attribution.
Blowa is offline  
Old 01/08/2017, 15:28   #10
 
elite*gold: 110
Join Date: Jun 2016
Posts: 579
Received Thanks: 197
Hello, when you place your:
If (Session.Character.Reput <= 10000001 && MapId! = 150 && MapId! = 206 && MapId! = 207 && MapId! = 208 && MapId! = 209 && MapId! = 210)
{
Session.Character.Reput + = (monsterinfo.Level * 1);
Session.SendPacket (Session.Character.GenerateFd ());
}
Else if (MapId == 150 || MapId == 206 || MapId == 207 || MapId == 208 || MapId == 209 || MapId == 210)
{
Session.Character.Reput + = (monsterinfo.Level * 1);
Session.SendPacket (Session.Character.GenerateFd ());
We get this error message: long does not contain a definition for Level and no extension method 'Leveled accepting a first argument of type' long 'was found (a direrective using a an assemby reference is it Missing?
Fizo55 is offline  
Old 01/11/2017, 18:59   #11
 
elite*gold: 110
Join Date: Jun 2016
Posts: 579
Received Thanks: 197
Hello

The code is not its plutot? Public void GenerateReput (MapMonster monsterToAttack, NpcMonster monsterinfo)
{
If (Session.Character.Reput <= 10000001 && MapId! = 150 && MapId! = 206 && MapId! = 207 && MapId! = 208 && MapId! = 209 && MapId! = 210)
{
Session.Character.Reput + = (monsterinfo.Level * 1);
Session.SendPacket (Session.Character.GenerateFd ());
}
Else if (MapId == 150 || MapId == 206 || MapId == 207 || MapId == 208 || MapId == 209 || MapId == 210)
{
Session.Character.Reput + = (monsterinfo.Level * 1);
Session.SendPacket (Session.Character.GenerateFd ());
}
}
Fizo55 is offline  
Old 01/12/2017, 18:37   #12

 
FI0w's Avatar
 
elite*gold: 50
Join Date: Jul 2014
Posts: 1,700
Received Thanks: 1,165
Tell me where you define "MapId"
FI0w is offline  
Old 01/13/2017, 02:24   #13

 
Blowa's Avatar
 
elite*gold: 48
Join Date: Jan 2010
Posts: 654
Received Thanks: 1,765
Quote:
Originally Posted by xSensitivex View Post
Tell me where you define "MapId"
Character class ? (obvious btw)
Blowa is offline  
Old 01/13/2017, 18:36   #14
 
elite*gold: 110
Join Date: Jun 2016
Posts: 579
Received Thanks: 197
Ah yes of course ! I had forgotten the MapId thank you! :
public void GenerateReput(MapMonster monsterToAttack, NpcMonster monsterinfo, MapMonster MapId)
{
if(Session.Character.Reput <= 10000001 && MapId! = 1 && MapId! = 206 && MapId! = 207 && MapId! = 208 && MapId! = 209 && MapId! = 210)
{
Session.Character.Reput += (monsterinfo.Level * 1);
Session.SendPacket(Session.Character.GenerateFd()) ;
}
else if (MapId == 1 || MapId == 206 || MapId == 207 || MapId == 208 || MapId == 209 || MapId == 210)
{
Session.Character.Reput += (monsterinfo.Level * 1);
Session.SendPacket(Session.Character.GenerateFd()) ;
}
}

I get this message: Can not apply operand && to operands of type 'int' and 'MapMonster' what do I do?
Fizo55 is offline  
Old 01/22/2017, 21:32   #15
 
elite*gold: 0
Join Date: Nov 2016
Posts: 19
Received Thanks: 0
Kann mir das mal einer in Deutsch erklären? Wo soll ich das im Projekt den hinschreiben ?
Finde nix mit Charakter im projekt
human1723 is offline  
Reply


Similar Threads Similar Threads
[opennos]The project 'OpenNos.Login' failed to build.
08/03/2017 - Nostale - 9 Replies
Hello I have a problem with the package manager console to run the update- database command to opennos soon as I executes the command, he said: The project ' opennos.login ' failed to build What to do? I made the updates to Microsoft Visual Studio thank you ..
OpenNos help plz
07/04/2016 - Nostale - 15 Replies
I want to change when im loggin to the server i see opennos by opennos team how i can change that in the game? delete or change
help openNos Please
06/14/2016 - Nostale - 0 Replies
# delete .
opennos help
05/09/2016 - Nostale - 1 Replies
I need help to put opennos , it does not work , does not work me with tutorials , please help Tell me your skype and help me ... Sorry for my english



All times are GMT +1. The time now is 19:33.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.