Merge git://github.com/EQEmu/Server into Development

This commit is contained in:
KayenEQ 2014-10-31 21:47:20 -04:00
commit 441ddf233a
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +0,0 @@
ALTER TABLE `merc_stats` MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL AFTER `attack_speed`;
ALTER TABLE `npc_types` MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL AFTER `npcspecialattks`;

View File

@ -0,0 +1,4 @@
ALTER TABLE `merc_stats` MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL;
ALTER TABLE `npc_types` MODIFY COLUMN `special_abilities` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL;

View File

@ -1292,7 +1292,7 @@ void QuestManager::setglobal(const char *varname, const char *newvalue, int opti
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
int qgZoneid = zone->GetZoneID(); int qgZoneid = zone->GetZoneID();
int qgCharid = 0; int qgCharid = 0;
int qgNpcid = owner->GetNPCTypeID(); int qgNpcid = owner ? owner->GetNPCTypeID() : 0; // encounter scripts don't have an owner
/* options value determines the availability of global variables to NPCs when a quest begins /* options value determines the availability of global variables to NPCs when a quest begins
------------------------------------------------------------------ ------------------------------------------------------------------
@ -1412,7 +1412,7 @@ void QuestManager::delglobal(const char *varname) {
QuestManagerCurrentQuestVars(); QuestManagerCurrentQuestVars();
int qgZoneid = zone->GetZoneID(); int qgZoneid = zone->GetZoneID();
int qgCharid = 0; int qgCharid = 0;
int qgNpcid=owner->GetNPCTypeID(); int qgNpcid = owner ? owner->GetNPCTypeID() : 0; // encounter scripts don't have an owner
if (initiator && initiator->IsClient()) // some events like waypoint and spawn don't have a player involved if (initiator && initiator->IsClient()) // some events like waypoint and spawn don't have a player involved
qgCharid=initiator->CharacterID(); qgCharid=initiator->CharacterID();