• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Dire Maul Arena Event/Challenge

rre_za

Respected Member
this is the Dire Maul Challenge which was released by Tommy on another forum

iv just updated the code and SQL files to compile/work on latest trinitycode ( tested on the rev 0b1aba64c46c+ 2013-07-28 )



.: Details :.
Tommy said:
Dire Maul Arena Challenge is to bring life in this deserted arena. As you proceed, the challenges (waves) will get harder. Wave Bosses/Elites will get more challenging and begin to kick your ass.

You start off by spawning the Arena Commander at:
-3815.866699f, 1102.770874f, 132.355194f, 6.182988f
Once you spawn the Commander, talk to her and click 'I would like to fight!' : Once clicked, you will be teleported and must wait 10 seconds for the wave to start. Once it starts, your fight opponent will be the Red Blood Guard. Once defeating the Red Blood Guard, you will receive 500 honor and Tokens, which you can change later on(I'll show you).

(Sounds and visuals have been added)

You will also receive a healing item at the end of each wave, if you don't already have one.

Your next wave will be the Spawn Event. This will last 5 minutes. After that, you will receive even more honor and tokens.

Next wave will be Hank the Tank and his Field Medic, tough fight, but fun.

Next wave, Rogue Initiates. These little gnomes will show you some light in your alley.

After defeating the Rogue Initiates, you will come across The Unholys and their pet in the next wave. This has a small cinematic before fighting.

Continuing on will be The Riders of the Ice. Healer, Brute and Brute.

After finally defeating The Riders of the Ice, you will begin to fight the final boss in the final wave. The Arena Dragon is very, very tough and will hurt.


Winning everything will reward you 10,000 Honor and 50 Tokens. Everything will reset and game on again!


.: How-To-Functions :.
Tommy said:
Using the functions aren't really hard. Very easy to figure out. You really don't use 'MessageOnWave' any time you wanted to, all of that has been set and done.


'AddEndRewards', this has 4 arguments, which can be edited in the .cpp part of the file(The ones being used)

Line: 178 : Red Blood Guard's Reward:
AddEndRewards(player, 500, PVP_END_TOKEN, 1);


Line: 188 : Spawn Event Reward:
AddEndRewards(player, 1000, PVP_END_TOKEN, 2);


Line: 196 : Hank the Tank/Field Medic:
AddEndRewards(player, 2000, PVP_END_TOKEN, 5);


Line: 206 : Rogue Initiates:
AddEndRewards(player, 3000, PVP_END_TOKEN, 10);


Line: 217 : The Unholys/Pet:
AddEndRewards(player, 4000, PVP_END_TOKEN, 20);


Line: 227 : Riders of the Ice:
AddEndRewards(player, 5000, PVP_END_TOKEN, 30);


Line: 237 : Arena Dragon:
AddEndRewards(player, 10000, PVP_END_TOKEN, 50);

player ~ Must be a player class
honoramount ~ The amount of honor you want to give
tokenId ~ The Token'sId
tokenAmount ~ The amount of tokens you want to give


.: Links:.
SQL File

npc_dm_battle.cpp

npc_dm_battle.h









Credits:

*****************************************
* NPC Arena Battle(Dire Maul) *
* *
* Idea by: QQrofl *
* Sub-Ideas by: Foereaper *
* Scripted by: QQrofl *
* Fondled by: Faded *
* Mental Support by: Foereaper *
* *
* (C)Nomsoftware 'Nomsoft' 2012 *
*##################################*/
 
Last edited:

Tommy

Founder
Thanks for updating this! I haven't forgotten this project, but I haven't really had motivation to update it. :D
 

Estorn

Respected Member
Have error please update it

reza dadash update kon ino

Code:
6>c:\users\developer\desktop\smart-wow source\src\server\scripts\custom\npcs_dm_battle.h(350): error C2440: '<function-style-cast>' : cannot convert from 'Player *' to 'ChatHandler'
6>          No constructor could take the source type, or constructor overload resolution was ambiguous
6>c:\users\developer\desktop\smart-wow source\src\server\scripts\custom\npcs_dm_battle.h(350): error C2228: left of '.PSendSysMessage' must have class/struct/union
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(94): warning C4373: 'npc_dire_arena_commander::npc_dire_arena_commanderAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(34): error C2039: 'isInCombat' : is not a member of 'Player'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Player\Player.h(1081) : see declaration of 'Player'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(433): warning C4373: 'npc_dire_maul_rb_guard::npc_dire_maul_rb_guardAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(429): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(430): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(450): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(458): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(459): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(526): warning C4373: 'npc_dm_wave_trigger::npc_dm_wave_triggerAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(738): warning C4373: 'npc_dm_wave_spawns::npc_dm_wave_spawnsAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(768): warning C4373: 'npc_dm_wave_portals::npc_dm_wave_portalsAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(848): warning C4373: 'npc_dm_hank_the_tank::npc_dm_hank_the_tankAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(870): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(878): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(878): error C2227: left of '->GetHealthPct' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(879): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(895): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(903): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(956): warning C4373: 'npc_dm_field_medic::npc_dm_field_medicAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(970): error C2039: 'isInCombat' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1118): warning C4373: 'npc_dm_main_rogue::npc_dm_main_rogueAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
10>  my_quick.c
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1132): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1140): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1152): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1163): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1182): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1192): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1254): warning C4373: 'npc_dm_rogue_initiate::npc_dm_rogue_initiateAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1261): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1269): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1281): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1292): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1301): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1321): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1392): warning C4373: 'npc_dm_main_unholy::npc_dm_main_unholyAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1461): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1461): error C2227: left of '->GetPositionX' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1461): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1461): error C2227: left of '->GetPositionY' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1461): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1461): error C2227: left of '->GetPositionZ' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1469): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1477): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1485): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
7>  ScriptedEscortAI.cpp
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1563): warning C4373: 'npc_dm_unholy_twin::npc_dm_unholy_twinAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1607): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1607): error C2227: left of '->GetPositionX' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1607): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1607): error C2227: left of '->GetPositionY' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1607): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1607): error C2227: left of '->GetPositionZ' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1615): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1623): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1631): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1688): warning C4373: 'npc_dm_unholy_pet::npc_dm_unholy_petAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(1848): warning C4373: 'npc_dm_rider_guardian::npc_dm_rider_guardianAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2032): warning C4373: 'npc_dm_rider_brute::npc_dm_rider_bruteAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2046): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2055): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2064): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2074): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2188): warning C4373: 'npc_dm_dragon_final::npc_dm_dragon_finalAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/AI/ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2212): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2221): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2266): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2266): error C2227: left of '->GetPositionX' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2266): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2266): error C2227: left of '->GetPositionY' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2266): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2266): error C2227: left of '->GetPositionZ' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2284): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2284): error C2227: left of '->GetPositionX' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2284): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2284): error C2227: left of '->GetPositionY' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2284): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2284): error C2227: left of '->GetPositionZ' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2302): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2302): error C2227: left of '->GetPositionX' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2302): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2302): error C2227: left of '->GetPositionY' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2302): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2302): error C2227: left of '->GetPositionZ' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2320): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2320): error C2227: left of '->GetPositionX' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2320): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2320): error C2227: left of '->GetPositionY' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2320): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
7>  ScriptedFollowerAI.cpp
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2320): error C2227: left of '->GetPositionZ' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2338): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2338): error C2227: left of '->GetPositionX' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2338): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2338): error C2227: left of '->GetPositionY' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2338): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2338): error C2227: left of '->GetPositionZ' must point to class/struct/union/generic type
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2377): error C2039: 'getVictim' : is not a member of 'Creature'
6>          C:/Users/Developer/Desktop/SmarT-WoW Source/src/server/game/Entities/Creature\Creature.h(447) : see declaration of 'Creature'
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2423): error C2440: '<function-style-cast>' : cannot convert from 'Player *' to 'ChatHandler'
6>          No constructor could take the source type, or constructor overload resolution was ambiguous
6>..\..\..\..\SmarT-WoW Source\src\server\scripts\Custom\npcs_dm_battle.cpp(2423): error C2228: left of '.SendSysMessage' must have class/struct/union
 

rre_za

Respected Member
sorry iv accidentally uploaded the old codes instead of the changed codes...

now iv updated my first post , get the new codes and u should be good
 

faiver

Esteemed Member
TrinityCore\src\server\scripts\Custom
- Custom/npcs_dm_battle.cpp
- Custom/npcs_dm_battle.h


CMakeLists

set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
Custom/npcs_dm_battle.cpp
Custom/npcs_dm_battle.h

)

right?
 

faiver

Esteemed Member
'npcs_dm_battle.h': No such file or directory

14>C:\Users\fear\Downloads\TrinityCore\src\server\scripts\Custom\npcs_dm_battle.cpp(25): fatal error C1083: No se puede abrir el archivo incluir: 'npcs_dm_battle.h': No such file or directory
 

rre_za

Respected Member
yes that would be correct , if u had problem with loading npcs_dm_battle.h as an include post here and i say what to do

===================

u can remove npcs_dm_battle.h from cmake file

and do this :

go to src\server\game\CMakeLists.txt

open it

find
include_directories(


add this line to it
${CMAKE_SOURCE_DIR}/src/server/scripts/Custom
 
Last edited:

faiver

Esteemed Member
src\server\game\CMakeLists.txt
include_directories(
${CMAKE_SOURCE_DIR}/src/server/shared/Utilities
${CMAKE_SOURCE_DIR}/src/server/scripts/Custom
I did that but does not work
:(
14>C:\Users\fear\Downloads\TrinityCore\src\server\scripts\Custom\npcs_dm_battle.cpp(25): fatal error C1083: No se puede abrir el archivo incluir: 'npcs_dm_battle.h': No such file or directory
 

Hamar

BETA Tester
src\server\game\CMakeLists.txt
include_directories(
${CMAKE_SOURCE_DIR}/src/server/shared/Utilities
${CMAKE_SOURCE_DIR}/src/server/scripts/Custom
I did that but does not work
:(
14>C:\Users\fear\Downloads\TrinityCore\src\server\scripts\Custom\npcs_dm_battle.cpp(25): fatal error C1083: No se puede abrir el archivo incluir: 'npcs_dm_battle.h': No such file or directory

Have you done the same in scripts folders cmakelist.txt?
 

rre_za

Respected Member
did u re-cmake after that or tried to compile right away?

re-create cmake files and then clean solution and build again
 

faiver

Esteemed Member
there is a bug in the forum posting automatically goes double post. and stays charged when you edit and save.
 
Last edited:

faiver

Esteemed Member
cmake error

SCRIPT PREPARATION COMPLETE

Configuring done
CMake Error at src/server/scripts/CMakeLists.txt:146 (add_library):
Cannot find source file:

Custom/npcs_dm_battle.h

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
 

rre_za

Respected Member
u have mentioned u have added npcs_dm_battle.h in the cmake folder of scripts/custom,

remove npcs_dm_battle.h from cmake file in scripts/custom folder then re-create cmake files.

btw i cant watch ur video ;)
 
Last edited:
Top