latest github + bot fix
This commit is contained in:
@@ -1,19 +1,7 @@
|
||||
[worldserver]
|
||||
#####################################################################################################
|
||||
# #
|
||||
# MxWoW - Boss Kill (Enable / Disable) #
|
||||
# Description: Enables or disable the script for mxwow_bosskill #
|
||||
# Default: 1 (Enable) #
|
||||
# 0 (Disable) #
|
||||
# #
|
||||
## MxWoW - Bounty (Enable / Disable)
|
||||
MxWoW_Bounty.Enabled = 1
|
||||
#####################################################################################################
|
||||
#####################################################################################################
|
||||
# #
|
||||
# MxWoW - Boss Kill (Enable / Disable) #
|
||||
# Description: Enables or disable the script for mxwow_bosskill #
|
||||
# Default: 1 (Enable) #
|
||||
# 0 (Disable) #
|
||||
# #
|
||||
MxWoW_Bounty.Base.Copper = 100
|
||||
#####################################################################################################
|
||||
## Value in copper for bounty reward.
|
||||
MxWoW_Bounty.Base.Copper = 1250
|
||||
## Hour for daily bounty reset (0,23 / 6 = 6am / 20 = 8pm)
|
||||
MxWoW_Bounty.Daily.ResetHour = 6
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "Player.h"
|
||||
#include "Chat.h"
|
||||
#include <WorldSessionMgr.h>
|
||||
#include <ZoneManager.h>
|
||||
#include <EventManager.h>
|
||||
|
||||
class mxwow_bounty : public PlayerScript
|
||||
{
|
||||
@@ -18,7 +20,18 @@ mxwow_bounty() : PlayerScript("mxwow_bounty") { }
|
||||
|
||||
void OnPlayerLogin(Player* player) override
|
||||
{
|
||||
|
||||
std::ostringstream ss;
|
||||
uint32 randZone = rand() % 9;
|
||||
ss << "Random Zone: " << ZoneManager::RandomZoneId(randZone) << " / " << ZoneManager::RandomZoneNameLocale_frFR(randZone);
|
||||
ChatHandler(player->GetSession()).PSendSysMessage(ss.str().c_str());
|
||||
//EventManager::CreateNewEvent(player);
|
||||
}
|
||||
|
||||
void OnPlayerSave(Player* player) {
|
||||
/*if (EventManager::CheckBountyReset()) {
|
||||
EventManager::CleanLastEvent();
|
||||
EventManager::CreateNewEvent(player);
|
||||
}*/
|
||||
}
|
||||
|
||||
void OnPlayerCreatureKill(Player* player, Creature* creature) {
|
||||
|
||||
Reference in New Issue
Block a user