Réputation OpenNos

12/07/2016 18:19 belmin68#1
Good evening, could someone give me the line of code so that players can farm reputation by killing monsters please?
12/08/2016 12:08 Blowa#2
Just get monster level or something to set a value and do Reput += (yourValue); on a monster kill

[Only registered and activated users can see links. Click Here To Register...]
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)
12/08/2016 12:32 HarD_GZ#3
Put it:
Quote:
Session.Character.Reput += (monsterToAttack.Monster.Level + 10) - monsterToAttack.Monster.Level + X;
X= Number of reputation which adds to yourself after killing
12/08/2016 16:33 belmin68#4
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()) ;
12/08/2016 18:12 Giannirizzo#5
In which table?
12/08/2016 19:03 0Lucifer0#6
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
12/17/2016 15:04 skr4w#7
Folder ? search réputation kill monster please Lucifer *-*
01/07/2017 21:41 skr4w#8
help please for system réputation
01/07/2017 23:25 Blowa#9
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.
01/08/2017 15:28 Fizo55#10
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?
01/11/2017 18:59 Fizo55#11
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 ());
}
}
01/12/2017 18:37 FI0w#12
Tell me where you define "MapId"
01/13/2017 02:24 Blowa#13
Quote:
Originally Posted by xSensitivex View Post
Tell me where you define "MapId"
Character class ? (obvious btw)
01/13/2017 18:36 Fizo55#14
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?
01/22/2017 21:32 human1723#15
Kann mir das mal einer in Deutsch erklären? Wo soll ich das im Projekt den hinschreiben ?
Finde nix mit Charakter im projekt