Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Fixed gainfame function!

Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Credits to my awesome developer/code fixer, Traitor. :)
The difference between this one and the other is this one updates and you don't have to cc or re-log and it tells you how much fame you gained.

Go in NpcConversationManager.java

Replace your old public void gainfame with
Code:
public void gainFame(int fame) {
	getPlayer().gainFame(fame);
	getPlayer().updateSingleStat(MapleStat.FAME, Integer.valueOf(getPlayer().getFame()));
	getPlayer().getClient().getSession().write(MaplePacketCreator.serverNotice(6, "You have gained (+" + fame +") fame."));
        }
 
Junior Spellweaver
Joined
Jul 5, 2008
Messages
131
Reaction score
0
Feedback: I never noticed since fame is not used alot in pservers

Mod: Works, 0 Errors

Difficulty: WTF NOOB easy

Summary:
Didn't do much, just a common message but since I never noticed... GJ ROFL!
 
Joined
Apr 22, 2004
Messages
50
Reaction score
0
files have been uploaded to with instructions and everything :eek6:

website also includes all patches(updated daily) & top animes for anime fans

to view add hamachi network(same user & pass): 10gigforrent1
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Search in NpcConversationManager
Code:
public void gainfame
Replace everything in the brackets { }
Should be REALLY simple...
 
Master Summoner
Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Code:
        public void gainFame(int fame) {
		if (fame > 0) {
			getPlayer().getClient().getSession().write(MaplePacketCreator.serverNotice(6, "You have gained fame. (" + fame + ")"));
		} else if (fame < 0) {
			getPlayer().getClient().getSession().write(MaplePacketCreator.serverNotice(6, "You have lost fame. (" + fame + ")"));
		}
                getPlayer().gainFame(fame);
		getPlayer().updateSingleStat(MapleStat.FAME, Integer.valueOf(getPlayer().getFame()));
        }

Probably better o.o
 
Junior Spellweaver
Joined
Jul 5, 2008
Messages
131
Reaction score
0
lol I said before, and I say it again I didn't notice...
Be honest fame is not too useful in private servers....
But GJ megoesrawr & RMzero213.
 
Skilled Illusionist
Joined
Jul 17, 2008
Messages
315
Reaction score
3
Omg added it and give error with compile:
Code:
init:
deps-jar:
Compiling 1 source file to C:\Users\Wietse\Desktop\maple4u\compile\build\classes
C:\Users\Wietse\Desktop\maple4u\src\net\sf\odinms\scripting\npc\NPCConversationManager.java:273: cannot find symbol
symbol  : method gainFame(int)
location: class net.sf.odinms.client.MapleCharacter
                getPlayer().gainFame(fame);
1 error
BUILD FAILED (total time: 1 second)

How to fix that?
 
Junior Spellweaver
Joined
Oct 29, 2008
Messages
107
Reaction score
0
You don't have gainFame in MapleCharacter o-o.
 
Initiate Mage
Joined
Apr 24, 2008
Messages
89
Reaction score
0
Why the hell did you bump this mega old poop.
You're missing gainFame(int) from your MapleCharacter.
 
Back
Top