mangosR2 / scriptdev2

MangosR2 universal Script Library, compartible with all mangosR2 cores (v2, 3, 4 and possible later).
http://mangosr2.2x2forum.com/
GNU General Public License v2.0
82 stars 47 forks source link

Compile errors #239

Open ike3 opened 9 years ago

ike3 commented 9 years ago
..\scripts\world\npcs_special.cpp(676): error C2511: 'void npc_doctorAI::PatientSaved(Creature *,Player *,Location *)' 
: overloaded member function not found in 'npc_doctorAI'
..\scripts\world\npcs_special.cpp(677): error C2597: illegal reference to non-static member 'npc_doctorAI::m_playerGuid'
..\scripts\world\npcs_special.cpp(681): error C2597: illegal reference to non-static member 'npc_doctorAI::m_uiPatientSavedCount'
..\scripts\world\npcs_special.cpp(694): error C2597: illegal reference to non-static member 'CreatureAI::m_creature'
..\scripts\world\npcs_special.cpp(696): error C2352: 'npc_doctorAI::Reset' : illegal call of non-static member function

src\bindings\scriptdev2\scripts\northrend\ulduar\ulduar\ulduar.h(557): error C3668: 'instance_ulduar::CheckConditionCriteriaMeet' : method with override specifier 'override' did not override any base class methods (..\scripts\northrend\ulduar\ulduar\assembly_of_iron.cpp)

VS2012/2013

sergeev commented 9 years ago

1) Find void npc_doctorAI::PatientSaved in npcs_special.cpp, replace it void npc_doctorAI::PatientSaved(Creature* pSoldier, Player* pPlayer, LOCATION* pPoint)

2) Find bool CheckConditionCriteriaMeet(Player const* pPlayer, uint32 uiInstanceConditionId, WorldObject const* pConditionSource, uint32 conditionSourceType) const override; replace it bool CheckConditionCriteriaMeet(Player const* pPlayer, uint32 uiInstanceConditionId, WorldObject const* pConditionSource, ConditionSource conditionSourceType) const override;

https://github.com/sergeev/scriptdev2/commit/9f998ac106a871df6f012dbfaf8710179f7b19a8