Stellow
C++/C#/PHP/LUA
I have this code on server's implementation files, how do I use it ingame? Does it need to be implemented somehow on functions.lua?
I have the talkaction code to enable or disable it, but the I cant use the function setSharedExperience on my scripts.
Also, how would you do to allow players rune without putting runes on hand?
Sincerely,
Bruno.
bool Party::setSharedExperience(Player* player, bool _sharedExpActive)
{
if(!player || getLeader() != player){
return false;
}
if(sharedExpActive == _sharedExpActive){
return true;
}
sharedExpActive = _sharedExpActive;
if(sharedExpActive){
sharedExpEnabled = canEnableSharedExperience();
if(sharedExpEnabled){
getLeader()->sendTextMessage(MSG_INFO_DESCR, "Shared Experience is now active.");
}
else{
getLeader()->sendTextMessage(MSG_INFO_DESCR, "Shared Experience has been activated," \
" but some members of your party are inactive.");
}
}
else{
getLeader()->sendTextMessage(MSG_INFO_DESCR, "Shared Experience has been deactivated.");
}
updateAllPartyIcons();
return true;
}
I have the talkaction code to enable or disable it, but the I cant use the function setSharedExperience on my scripts.
Also, how would you do to allow players rune without putting runes on hand?
Sincerely,
Bruno.