[Client] Add temporary warnings when creating custom spells and items

0.6.1
David Cernat 8 years ago
parent cd8d064761
commit 84662ed3fe

@ -81,6 +81,17 @@ namespace MWGui
case MWMechanics::Alchemy::Result_Success:
winMgr->messageBox("#{sPotionSuccess}");
winMgr->playSound("potion success");
/*
Start of tes3mp addition
Include a messagebox notifying players that player-made potions are not synced yet
*/
MWBase::Environment::get().getWindowManager()->messageBox("Player-made potions are not synchronized in multiplayer yet and they will not show up for other players.");
/*
End of tes3mp addition
*/
break;
case MWMechanics::Alchemy::Result_NoEffects:
case MWMechanics::Alchemy::Result_RandomFailure:

@ -375,6 +375,16 @@ namespace MWGui
{
MWBase::Environment::get().getWindowManager()->playSound("enchant success");
MWBase::Environment::get().getWindowManager()->messageBox ("#{sEnchantmentMenu12}");
/*
Start of tes3mp addition
Include a messagebox notifying players that player-made enchantments are not synced yet
*/
MWBase::Environment::get().getWindowManager()->messageBox("Player-made enchantments are not synchronized in multiplayer yet and they will not show up for other players.");
/*
End of tes3mp addition
*/
}
else
{

@ -428,7 +428,10 @@ namespace MWGui
Send an ID_PLAYER_SPELLBOOK packet every time a player buys a custom spell from
the Spellmaking screen
Include a messagebox notifying players that custom spells are not synced yet
*/
MWBase::Environment::get().getWindowManager()->messageBox("Custom spells are not synchronized in multiplayer yet and their effects cannot be seen by other players in most cases.");
mwmp::Main::get().getLocalPlayer()->sendSpellAddition(*spell);
/*
End of tes3mp addition

@ -238,6 +238,17 @@ namespace MWMechanics
if (caster == getPlayer())
MWBase::Environment::get().getWindowManager()->messageBox("#{sSoultrapSuccess}");
/*
Start of tes3mp addition
Include a messagebox notifying players that soul gems filled by players are not synced yet
*/
if (caster == getPlayer())
MWBase::Environment::get().getWindowManager()->messageBox("Soul gems filled by players are not synchronized in multiplayer yet and they will not show up for other players.");
/*
End of tes3mp addition
*/
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
.search("VFX_Soul_Trap");
if (fx)

Loading…
Cancel
Save