• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Is possible check sharing exp

newby

Active Member
Joined
Jun 11, 2016
Messages
183
Reaction score
43
Is possible check if players in party have share exp?

I want add bonus exp 12.5% per vocation
Exemple:
If have:
Code:
knight+paladin 25% bonus exp
knight+paladin+paladin 25% bonus exp
knight+paladin+sorcerer 37.5% bonus exp
knight+paladin+sorcerer+druid 50.0% bonus exp

I'm using 0.4 sources (3777)
 
Last edited:
I have no idea what is causing this but you can replace those 2 lines:
Code:
for(int8_t i = 2; i <= 14; i++)
    talkState[i] = false;

With:

Code:
memset(talkState + 2, 0, 13);

The error is in your player.h: "bool talkState[13];"
You would only be able to index to talkState[12] and the code is trying to index until [14]

Change it to "bool talkState[15];"

Ty for all...
 
Back
Top