[Release] Fixed gainfame function!

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."));
        }
 
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!
 
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
 
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
 
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.
 
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?
 
Back