Need Help menu

User Tag List

Thread: Need Help

Results 1 to 8 of 8
  1. #1
    [Shon3m]'s Avatar Banned
    Reputation
    128
    Join Date
    Apr 2007
    Posts
    669
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Help

    Ok Guys I Need Some Help Here

    Im Working On a Repack Right Will....Im Having Some Problams With Ascent I Want Ascent To Have In The Scripts Kill Player Get Gold Die From other Player Lose 2 Gold Right Will.....I Had Alrdy C++ IT But It Wont Complie......

    KillGold.Cpp

    Code:
     
    #include "StdAfx.h"
    #include "Setup.h"
     
    void OnKillPlayer( Player * killer, Player * victim)
    {
     uint32 killamount = 100000;
     uint32 killcurrentgold = killer->GetUInt32Value(PLAYER_FIELD_COINAGE);
     int32 killnewgold = killcurrentgold + killamount;
     killer->SetUInt32Value(PLAYER_FIELD_COINAGE,killnewgold);
     
    uint32 dieamount = 100000;
     uint32 diecurrentgold = victim->GetUInt32Value(PLAYER_FIELD_COINAGE);
     int32 dienewgold = diecurrentgold - dieamount;
     victim->SetUInt32Value(PLAYER_FIELD_COINAGE,dienewgold);
    }
    void SetupGoldKill(ScriptMgr * mgr)
    {
    sScriptMgr.register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, OnKillPlayer);
    }
    Can Anyone Tell Me What Im Doing Wrong

    Also I Have Setup.h

    Code:
     
     
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H
     
    void SetupGoldKill(ScriptMgr * mgr);
    void SetupInnkeepers(ScriptMgr * mgr);
    void SetupGuardGossip(ScriptMgr * mgr);
    void SetupBattlemaster(ScriptMgr * mgr);
     
    #endif
    Done As Well Here's Other One

    Setup.cpp
    Code:
     
     
    #include "StdAfx.h"
    #include "Setup.h"
    extern "C" SCRIPT_DECL uint32 _exp_get_version()
    {
        return MAKE_SCRIPT_VERSION(SCRIPTLIB_VERSION_MAJOR, SCRIPTLIB_VERSION_MINOR);
    }
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
     return SCRIPT_TYPE_MISC;
    }
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
        SetupGoldKill(mgr);
        SetupInnkeepers(mgr);
        SetupBattlemaster(mgr);
        SetupGuardGossip(mgr);
    }
    #ifdef WIN32
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    #endif
    An It Wont Complie.....Here a Error

    Creating library ..\..\..\bin\debug\script_bin/GossipScripts.lib and object ..\..\..\bin\debug\script_bin/GossipScripts.exp
    Setup.obj : error LNK2019: unresolved external symbol "void __cdecl SetupGoldKill(class ScriptMgr *)" (?SetupGoldKill@@YAXPAVScriptMgr@@@Z) referenced in function __exp_script_register
    ../../../bin/release/script_bin/GossipScripts.dll : fatal error LNK1120: 1 unresolved externals


    It's The Only Error Im Getting
    Last edited by [Shon3m]; 03-27-2008 at 11:35 AM.

    Need Help
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try rebuilding

  3. #3
    [Shon3m]'s Avatar Banned
    Reputation
    128
    Join Date
    Apr 2007
    Posts
    669
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've Try Rebuilding It.....

  4. #4
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sScriptMgr.register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, OnKillPlayer);
    VVV
    mgr.register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, OnKillPlayer);

  5. #5
    [Shon3m]'s Avatar Banned
    Reputation
    128
    Join Date
    Apr 2007
    Posts
    669
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still.....

    Creating library ..\..\..\bin\debug\script_bin/GossipScripts.lib and object ..\..\..\bin\debug\script_bin/GossipScripts.exp
    Setup.obj : error LNK2019: unresolved external symbol "void __cdecl SetupGoldKill(class ScriptMgr *)" (?SetupGoldKill@@YAXPAVScriptMgr@@@Z) referenced in function __exp_script_register
    ../../../bin/release/script_bin/GossipScripts.dll : fatal error LNK1120: 1 unresolved externals

    Last edited by [Shon3m]; 03-27-2008 at 02:34 PM.

  6. #6
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mgr.register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, OnKillPlayer);
    VVV
    mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, &OnKillPlayer);

  7. #7
    [Shon3m]'s Avatar Banned
    Reputation
    128
    Join Date
    Apr 2007
    Posts
    669
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    still didn't work.....

  8. #8
    Brutal Pink Panther's Avatar Member
    Reputation
    9
    Join Date
    Mar 2008
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'll get that error on every script i try to compile :S

Similar Threads

  1. need help with shammy talents
    By jason in forum World of Warcraft General
    Replies: 5
    Last Post: 07-19-2006, 02:02 AM
  2. Need Help with WoW Glider
    By paypal in forum World of Warcraft General
    Replies: 2
    Last Post: 07-07-2006, 02:08 AM
  3. I need help
    By ff9pro in forum World of Warcraft General
    Replies: 4
    Last Post: 07-05-2006, 08:43 PM
  4. Need help
    By zamp in forum World of Warcraft General
    Replies: 1
    Last Post: 06-24-2006, 10:54 PM
  5. Need Help
    By Slumlorde in forum World of Warcraft General
    Replies: 4
    Last Post: 06-23-2006, 08:20 AM
All times are GMT -5. The time now is 06:35 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search