C++ help menu

User Tag List

Thread: C++ help

Results 1 to 5 of 5
  1. #1
    claudenegm12's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    C++ help

    i got this code it seems to be good but cant compile it: sry im a noob, so pls anybody could explain to me how to do it?
    the code is:
    #include "StdAfx.h"
    #include "Setup.h"

    class GONAME : public GameObjectAIScript
    {
    public:
    GONAME(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
    static GameObjectAIScript *Create(GameObject * GO) { return new GONAME(GO); }

    void OnActivate(Player * pPlayer)
    {
    if(pPlayer->GetItemInterface()->GetItemCount(KEYENTRY,false))
    this->_gameobject->Activate(pPlayer->GetMapMgr());
    else
    pPlayer->GetSession()->SendNotification("You need a key to open this.");
    }
    };

    void SetupGONAME(ScriptMgr * mgr)
    {
    mgr->register_gameobject_script(ENTRY, &GONAME::Create);
    }
    oh ya i know that i need to replace entry with the gameobject entry and the keyentry with the item entry.
    Credits for the code: TheSpidey
    please reply i really need help

    C++ help
  2. #2
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *i cant compile it*

    what error are you getting? if your putting it into the core did you edit the setup.h and setup.cpp?

  3. #3
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suggest you either post the errors or find a guide on how to compile custom scripts.


  4. #4
    claudenegm12's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    errors i get

    i cannot even compile it, i dont know the steps, im good in c# but dont have any notion in c++ please anybody help

  5. #5
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.mmowned.com/forums/emulat...mpile-dll.html

    Off you go! Search button is so awesome =]

Similar Threads

  1. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 2
    Last Post: 12-10-2024, 05:46 PM
  2. HELP: Gold Scam Exploit
    By GoldDragon in forum World of Warcraft General
    Replies: 11
    Last Post: 01-23-2007, 07:26 PM
  3. Banner Ad Redesign help
    By Matt in forum Community Chat
    Replies: 57
    Last Post: 07-08-2006, 08:40 PM
  4. Hit points and talent points? Please help
    By hankusdankus in forum World of Warcraft General
    Replies: 6
    Last Post: 05-04-2006, 02:00 PM
  5. bot help
    By xwhitedeathx in forum World of Warcraft General
    Replies: 3
    Last Post: 05-01-2006, 03:50 AM
All times are GMT -5. The time now is 06:32 PM. 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