Newbie Spellweaver
- Joined
- May 24, 2017
- Messages
- 57
- Reaction score
- 1
Hello everyone,
So lately there's been this issue that's been driving me nuts, so basically everytime I gain guild points from any NPC I'll basically only get that x amount and it will not increase until the next server restart.
For example: If I finish a quest and get 2 guild points and then re-do the quest again and gain 2 more guild points, it will just register as 2 guild points in the guild meaning the points won't add up and will just stay as 2.
However if I restart the server and do the quest again it will add up and become 4, and the same goes for another server restart. I hope that made sense. :/
The weird thing is that I've compared every single gaingp method with HeavenMS/MoopleDEV and they are basically the same which is weird...so then I thought it might have to do with wrong op codes but my GUILD_OPERATION send/recv codes are correct (I think?)
These are my opcodes and the gaingp method in MapleGuild.java for reference:
Sendops:
Recvops:
I hope someone can shed some light on this as I am very lost on what is going on here. Thanks.
So lately there's been this issue that's been driving me nuts, so basically everytime I gain guild points from any NPC I'll basically only get that x amount and it will not increase until the next server restart.
For example: If I finish a quest and get 2 guild points and then re-do the quest again and gain 2 more guild points, it will just register as 2 guild points in the guild meaning the points won't add up and will just stay as 2.
However if I restart the server and do the quest again it will add up and become 4, and the same goes for another server restart. I hope that made sense. :/
The weird thing is that I've compared every single gaingp method with HeavenMS/MoopleDEV and they are basically the same which is weird...so then I thought it might have to do with wrong op codes but my GUILD_OPERATION send/recv codes are correct (I think?)
These are my opcodes and the gaingp method in MapleGuild.java for reference:
PHP:
public void gainGP(int amount) {
this.gp += amount;
this.writeToDB(false);
this.guildMessage(MaplePacketCreator.updateGP(this.id, this.gp));
}
Sendops:
Code:
GUILD_OPERATION: 0x41
Recvops:
Code:
GUILD_OPERATION: 0x7E
I hope someone can shed some light on this as I am very lost on what is going on here. Thanks.