Jump to content
  • 0

Issue with Compiling the Custom script


legends

Question

Hello im compiling my custom script but unfortunetly i faced this Error...:

1>Killstreak.obj : error LNK2019: unresolved external symbol "public: __thiscall World::World(void)" ([email protected]@[email protected]) referenced in function "public: static class World * __cdecl MaNGOS::OperatorNew<class World>::Create(void)" ([email protected][email protected]@@@[email protected]@[email protected]@XZ)
1>Killstreak.obj : error LNK2019: unresolved external symbol "public: __thiscall World::World(void)" ([email protected]@[email protected]) referenced in function "public: static class World * __cdecl MaNGOS::OperatorNew<class World>::Create(void)" ([email protected][email protected]@@@[email protected]@[email protected]@XZ)
1>Killstreak.obj : error LNK2019: unresolved external symbol "public: __thiscall World::~World(void)" ([email protected]@[email protected]) referenced in function "public: void * __thiscall World::`scalar deleting destructor'(unsigned int)" ([email protected]@[email protected])
1>Killstreak.obj : error LNK2019: unresolved external symbol "public: void __thiscall World::SendServerMessage(enum ServerMessageType,char const *,class Player *)" ([email protected]@@[email protected]@[email protected]@@Z) referenced in function "void __cdecl alertServer(class Player *,class Player *,int,int)" ([email protected]@[email protected]@[email protected])
1>Killstreak.obj : error LNK2019: unresolved external symbol "public: void __thiscall World::SendServerMessage(enum ServerMessageType,char const *,class Player *)" ([email protected]@@[email protected]@[email protected]@@Z) referenced in function "void __cdecl alertServer(class Player *,class Player *,int,int)" ([email protected]@[email protected]@[email protected])
1>Killstreak.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Player::InArena(void)const " ([email protected]@@QBE_NXZ) referenced in function "public: void __thiscall Killstreak::OnPVPKill(class Player *,class Player *)" ([email protected]@@[email protected]@[email protected])
n

- I have asked some c++ developers they told me that they dont know the mangos syntax....

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

And Here is the ScriptLoader.CPP

/* Copyright (C) 2006 - 2013 ScriptDev2 <[url]http://www.scriptdev2.com/>[/url]
* This program is free software licensed under GPL version 2
* Please see the included DOCS/LICENSE.TXT for more information */

#include "precompiled.h"

// battlegrounds
extern void AddSC_battleground();

// custom
extern void AddSC_Killstreak();

// examples
extern void AddSC_example_creature();
extern void AddSC_example_escort();
extern void AddSC_example_gossip_codebox();
extern void AddSC_example_misc();

// world
extern void AddSC_areatrigger_scripts();
extern void AddSC_bosses_emerald_dragons();
extern void AddSC_generic_creature();
extern void AddSC_go_scripts();
extern void AddSC_guards();
extern void AddSC_item_scripts();
extern void AddSC_npc_professions();
extern void AddSC_npcs_special();
extern void AddSC_spell_scripts();
extern void AddSC_world_map_scripts();

// eastern kingdoms
extern void AddSC_blackrock_depths();            // blackrock_depths
extern void AddSC_boss_ambassador_flamelash();
extern void AddSC_boss_draganthaurissan();
extern void AddSC_boss_general_angerforge();
extern void AddSC_boss_high_interrogator_gerstahn();
extern void AddSC_instance_blackrock_depths();
extern void AddSC_boss_overlordwyrmthalak();        // blackrock_spire
extern void AddSC_boss_pyroguard_emberseer();
extern void AddSC_boss_gyth();
extern void AddSC_instance_blackrock_spire();
extern void AddSC_boss_razorgore();             // blackwing_lair
extern void AddSC_boss_vaelastrasz();
extern void AddSC_boss_broodlord();
extern void AddSC_boss_firemaw();
extern void AddSC_boss_ebonroc();
extern void AddSC_boss_flamegor();
extern void AddSC_boss_chromaggus();
extern void AddSC_boss_nefarian();
extern void AddSC_boss_victor_nefarius();
extern void AddSC_instance_blackwing_lair();
extern void AddSC_boss_mr_smite();             // deadmines
extern void AddSC_deadmines();
extern void AddSC_instance_deadmines();
extern void AddSC_gnomeregan();               // gnomeregan
extern void AddSC_boss_thermaplugg();
extern void AddSC_instance_gnomeregan();
extern void AddSC_boss_lucifron();             // molten_core
extern void AddSC_boss_magmadar();
extern void AddSC_boss_gehennas();
extern void AddSC_boss_garr();
extern void AddSC_boss_baron_geddon();
extern void AddSC_boss_shazzrah();
extern void AddSC_boss_golemagg();
extern void AddSC_boss_sulfuron();
extern void AddSC_boss_majordomo();
extern void AddSC_boss_ragnaros();
extern void AddSC_instance_molten_core();
extern void AddSC_molten_core();
extern void AddSC_boss_anubrekhan();            // naxxramas
extern void AddSC_boss_four_horsemen();
extern void AddSC_boss_faerlina();
extern void AddSC_boss_gluth();
extern void AddSC_boss_gothik();
extern void AddSC_boss_grobbulus();
extern void AddSC_boss_kelthuzad();
extern void AddSC_boss_loatheb();
extern void AddSC_boss_maexxna();
extern void AddSC_boss_noth();
extern void AddSC_boss_heigan();
extern void AddSC_boss_patchwerk();
extern void AddSC_boss_razuvious();
extern void AddSC_boss_sapphiron();
extern void AddSC_boss_thaddius();
extern void AddSC_instance_naxxramas();
extern void AddSC_boss_arcanist_doan();           // scarlet_monastery
extern void AddSC_boss_herod();
extern void AddSC_boss_mograine_and_whitemane();
extern void AddSC_instance_scarlet_monastery();
extern void AddSC_boss_darkmaster_gandling();        // scholomance
extern void AddSC_boss_jandicebarov();
extern void AddSC_instance_scholomance();
extern void AddSC_shadowfang_keep();            // shadowfang_keep
extern void AddSC_instance_shadowfang_keep();
extern void AddSC_boss_maleki_the_pallid();         // stratholme
extern void AddSC_boss_cannon_master_willey();
extern void AddSC_boss_baroness_anastari();
extern void AddSC_boss_dathrohan_balnazzar();
extern void AddSC_instance_stratholme();
extern void AddSC_stratholme();
extern void AddSC_instance_sunken_temple();         // sunken_temple
extern void AddSC_sunken_temple();
extern void AddSC_boss_archaedas();             // uldaman
extern void AddSC_instance_uldaman();
extern void AddSC_uldaman();
extern void AddSC_boss_arlokk();              // zulgurub
extern void AddSC_boss_hakkar();
extern void AddSC_boss_hazzarah();
extern void AddSC_boss_jeklik();
extern void AddSC_boss_jindo();
extern void AddSC_boss_mandokir();
extern void AddSC_boss_marli();
extern void AddSC_boss_ouro();
extern void AddSC_boss_renataki();
extern void AddSC_boss_thekal();
extern void AddSC_boss_venoxis();
extern void AddSC_instance_zulgurub();

extern void AddSC_alterac_mountains();
extern void AddSC_arathi_highlands();
extern void AddSC_blasted_lands();
extern void AddSC_boss_kazzakAI();
extern void AddSC_burning_steppes();
extern void AddSC_dun_morogh();
extern void AddSC_eastern_plaguelands();
extern void AddSC_elwynn_forest();
extern void AddSC_hinterlands();
extern void AddSC_ironforge();
extern void AddSC_loch_modan();
extern void AddSC_redridge_mountains();
extern void AddSC_searing_gorge();
extern void AddSC_silverpine_forest();
extern void AddSC_stormwind_city();
extern void AddSC_stranglethorn_vale();
extern void AddSC_swamp_of_sorrows();
extern void AddSC_tirisfal_glades();
extern void AddSC_undercity();
extern void AddSC_western_plaguelands();
extern void AddSC_westfall();
extern void AddSC_wetlands();

// kalimdor
extern void AddSC_instance_blackfathom_deeps();       // blackfathom_deeps
extern void AddSC_dire_maul();               // dire_maul
extern void AddSC_instance_dire_maul();
extern void AddSC_boss_noxxion();              // maraudon
extern void AddSC_boss_onyxia();              // onyxias_lair
extern void AddSC_instance_onyxias_lair();
extern void AddSC_razorfen_downs();             // razorfen_downs
extern void AddSC_instance_razorfen_kraul();        // razorfen_kraul
extern void AddSC_razorfen_kraul();
extern void AddSC_boss_ayamiss();              // ruins_of_ahnqiraj
extern void AddSC_boss_buru();
extern void AddSC_boss_kurinnaxx();
extern void AddSC_boss_ossirian();
extern void AddSC_boss_moam();
extern void AddSC_boss_rajaxx();
extern void AddSC_ruins_of_ahnqiraj();
extern void AddSC_instance_ruins_of_ahnqiraj();
extern void AddSC_boss_cthun();               // temple_of_ahnqiraj
extern void AddSC_boss_fankriss();
extern void AddSC_boss_huhuran();
extern void AddSC_bug_trio();
extern void AddSC_boss_sartura();
extern void AddSC_boss_skeram();
extern void AddSC_boss_twinemperors();
extern void AddSC_boss_viscidus();
extern void AddSC_mob_anubisath_sentinel();
extern void AddSC_instance_temple_of_ahnqiraj();
extern void AddSC_instance_wailing_caverns();        // wailing_caverns
extern void AddSC_wailing_caverns();
extern void AddSC_boss_zumrah();              // zulfarrak
extern void AddSC_instance_zulfarrak();
extern void AddSC_zulfarrak();

extern void AddSC_ashenvale();
extern void AddSC_azshara();
extern void AddSC_boss_azuregos();
extern void AddSC_darkshore();
extern void AddSC_desolace();
extern void AddSC_durotar();
extern void AddSC_dustwallow_marsh();
extern void AddSC_felwood();
extern void AddSC_feralas();
extern void AddSC_moonglade();
extern void AddSC_mulgore();
extern void AddSC_orgrimmar();
extern void AddSC_silithus();
extern void AddSC_stonetalon_mountains();
extern void AddSC_tanaris();
extern void AddSC_teldrassil();
extern void AddSC_the_barrens();
extern void AddSC_thousand_needles();
extern void AddSC_thunder_bluff();
extern void AddSC_ungoro_crater();
extern void AddSC_winterspring();

// northrend
// removed

// outland
// removed

void AddScripts()
{
 // battlegrounds
 AddSC_battleground();

 // custom
 AddSC_Killstreak();
 // examples
 AddSC_example_creature();
 AddSC_example_escort();
 AddSC_example_gossip_codebox();
 AddSC_example_misc();

 // world
 AddSC_areatrigger_scripts();
 AddSC_bosses_emerald_dragons();
 AddSC_generic_creature();
 AddSC_go_scripts();
 AddSC_guards();
 AddSC_item_scripts();
 AddSC_npc_professions();
 AddSC_npcs_special();
 AddSC_spell_scripts();
 AddSC_world_map_scripts();

 // eastern kingdoms
 AddSC_blackrock_depths();                // blackrock_depths
 AddSC_boss_ambassador_flamelash();
 AddSC_boss_draganthaurissan();
 AddSC_boss_general_angerforge();
 AddSC_boss_high_interrogator_gerstahn();
 AddSC_instance_blackrock_depths();
 AddSC_boss_overlordwyrmthalak();            // blackrock_spire
 AddSC_boss_pyroguard_emberseer();
 AddSC_boss_gyth();
 AddSC_instance_blackrock_spire();
 AddSC_boss_razorgore();                 // blackwing_lair
 AddSC_boss_vaelastrasz();
 AddSC_boss_broodlord();
 AddSC_boss_firemaw();
 AddSC_boss_ebonroc();
 AddSC_boss_flamegor();
 AddSC_boss_chromaggus();
 AddSC_boss_nefarian();
 AddSC_boss_victor_nefarius();
 AddSC_instance_blackwing_lair();
 AddSC_deadmines();                   // deadmines
 AddSC_boss_mr_smite();
 AddSC_instance_deadmines();
 AddSC_gnomeregan();                   // gnomeregan
 AddSC_boss_thermaplugg();
 AddSC_instance_gnomeregan();
 AddSC_boss_lucifron();                 // molten_core
 AddSC_boss_magmadar();
 AddSC_boss_gehennas();
 AddSC_boss_garr();
 AddSC_boss_baron_geddon();
 AddSC_boss_shazzrah();
 AddSC_boss_golemagg();
 AddSC_boss_sulfuron();
 AddSC_boss_majordomo();
 AddSC_boss_ragnaros();
 AddSC_instance_molten_core();
 AddSC_molten_core();
 AddSC_boss_anubrekhan();                // naxxramas
 AddSC_boss_four_horsemen();
 AddSC_boss_faerlina();
 AddSC_boss_gluth();
 AddSC_boss_gothik();
 AddSC_boss_grobbulus();
 AddSC_boss_kelthuzad();
 AddSC_boss_loatheb();
 AddSC_boss_maexxna();
 AddSC_boss_noth();
 AddSC_boss_heigan();
 AddSC_boss_patchwerk();
 AddSC_boss_razuvious();
 AddSC_boss_sapphiron();
 AddSC_boss_thaddius();
 AddSC_instance_naxxramas();
 AddSC_boss_arcanist_doan();               // scarlet_monastery
 AddSC_boss_herod();
 AddSC_boss_mograine_and_whitemane();
 AddSC_instance_scarlet_monastery();
 AddSC_boss_darkmaster_gandling();            // scholomance
 AddSC_boss_jandicebarov();
 AddSC_instance_scholomance();
 AddSC_shadowfang_keep();                // shadowfang_keep
 AddSC_instance_shadowfang_keep();
 AddSC_boss_maleki_the_pallid();             // stratholme
 AddSC_boss_cannon_master_willey();
 AddSC_boss_baroness_anastari();
 AddSC_boss_dathrohan_balnazzar();
 AddSC_instance_stratholme();
 AddSC_stratholme();
 AddSC_instance_sunken_temple();             // sunken_temple
 AddSC_sunken_temple();
 AddSC_boss_archaedas();                 // uldaman
 AddSC_instance_uldaman();
 AddSC_uldaman();
 AddSC_boss_arlokk();                  // zulgurub
 AddSC_boss_hakkar();
 AddSC_boss_hazzarah();
 AddSC_boss_jeklik();
 AddSC_boss_jindo();
 AddSC_boss_mandokir();
 AddSC_boss_marli();
 AddSC_boss_ouro();
 AddSC_boss_renataki();
 AddSC_boss_thekal();
 AddSC_boss_venoxis();
 AddSC_instance_zulgurub();

 AddSC_alterac_mountains();
 AddSC_arathi_highlands();
 AddSC_blasted_lands();
 AddSC_boss_kazzakAI();
 AddSC_burning_steppes();
 AddSC_dun_morogh();
 AddSC_eastern_plaguelands();
 AddSC_elwynn_forest();
 AddSC_hinterlands();
 AddSC_ironforge();
 AddSC_loch_modan();
 AddSC_redridge_mountains();
 AddSC_searing_gorge();
 AddSC_silverpine_forest();
 AddSC_stormwind_city();
 AddSC_stranglethorn_vale();
 AddSC_swamp_of_sorrows();
 AddSC_tirisfal_glades();
 AddSC_undercity();
 AddSC_western_plaguelands();
 AddSC_westfall();
 AddSC_wetlands();

 // kalimdor
 AddSC_instance_blackfathom_deeps();           // blackfathom deeps
 AddSC_dire_maul();                   // dire_maul
 AddSC_instance_dire_maul();
 AddSC_boss_noxxion();                  // maraudon
 AddSC_boss_onyxia();                  // onyxias_lair
 AddSC_instance_onyxias_lair();
 AddSC_razorfen_downs();                 // razorfen_downs
 AddSC_instance_razorfen_kraul();            // razorfen_kraul
 AddSC_razorfen_kraul();
 AddSC_boss_ayamiss();                  // ruins_of_ahnqiraj
 AddSC_boss_buru();
 AddSC_boss_kurinnaxx();
 AddSC_boss_ossirian();
 AddSC_boss_moam();
 AddSC_boss_rajaxx();
 AddSC_ruins_of_ahnqiraj();
 AddSC_instance_ruins_of_ahnqiraj();
 AddSC_boss_cthun();                   // temple_of_ahnqiraj
 AddSC_boss_fankriss();
 AddSC_boss_huhuran();
 AddSC_bug_trio();
 AddSC_boss_sartura();
 AddSC_boss_skeram();
 AddSC_boss_twinemperors();
 AddSC_boss_viscidus();
 AddSC_mob_anubisath_sentinel();
 AddSC_instance_temple_of_ahnqiraj();
 AddSC_instance_wailing_caverns();            // wailing_caverns
 AddSC_wailing_caverns();
 AddSC_boss_zumrah();                  // zulfarrak
 AddSC_zulfarrak();
 AddSC_instance_zulfarrak();

 AddSC_ashenvale();
 AddSC_azshara();
 AddSC_boss_azuregos();
 AddSC_darkshore();
 AddSC_desolace();
 AddSC_durotar();
 AddSC_dustwallow_marsh();
 AddSC_felwood();
 AddSC_feralas();
 AddSC_moonglade();
 AddSC_mulgore();
 AddSC_orgrimmar();
 AddSC_silithus();
 AddSC_stonetalon_mountains();
 AddSC_tanaris();
 AddSC_teldrassil();
 AddSC_the_barrens();
 AddSC_thousand_needles();
 AddSC_thunder_bluff();
 AddSC_ungoro_crater();
 AddSC_winterspring();

 // northrend
 // removed

 // outland
 // removed
}

Link to comment
Share on other sites

I was unsure of what you meant by custom script at first, which is why I asked you to post the code.

MaNGOS do not support custom scripts, sorry. That's the policy we have.

You won't get any support here, but hopefully you can manage to fix it yourself.

Link to comment
Share on other sites

What syntax exactly do you mean legends? There's a few examples in the scriptdev2 directory (one for game objects, one for a npc iirc) if you want to know the basics of scripting and how it's done for MaNGOS, also, if those aren't enough there's plenty of other scripts in scriptdev which you can look at to get inspiration. I hope this helps!

Link to comment
Share on other sites

What syntax exactly do you mean legends? There's a few examples in the scriptdev2 directory (one for game objects, one for a npc iirc) if you want to know the basics of scripting and how it's done for MaNGOS, also, if those aren't enough there's plenty of other scripts in scriptdev which you can look at to get inspiration. I hope this helps!

http://community.getmangos.eu/index.php?topic=20042.0

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use