C++ Script Won't Work, Please Help! menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm still getting this:

    1>..srcMiscScriptsOoTstart.cpp(42) : error C2660: 'Player::EventTeleport' : function does not take 5 arguments
    Why is C++ wtf pajwnzoring me?

    EDIT: Got it!!! Just had to edit out that 0 as the second number.

    RE-EDIT: It compiled as
    #include "StdAfx.h"
    #include "Setup.h"

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

    void OnActivate(Player * Plr)
    {
    if(Plr->getRace() == RACE_HUMAN)
    Plr->EventTeleport(0, -8949.95, -132.493, 83.5312);

    else if(Plr->getRace() == RACE_ORC)
    Plr->EventTeleport(1, -618.518, -4251.67, 38.71;

    else if(Plr->getRace() == RACE_DWARF)
    Plr->EventTeleport(0, -6240.32, 331.033, 382.75;

    else if(Plr->getRace() == RACE_NIGHTELF)
    Plr->EventTeleport(1, 10311.3, 832.463, 1326.41);

    else if(Plr->getRace() == RACE_UNDEAD)
    Plr->EventTeleport(0, 1676.35, 1677.45, 121.67);

    else if(Plr->getRace() == RACE_TAUREN)
    Plr->EventTeleport(10, -2917.58, -257.98, 52.996;

    else if(Plr->getRace() == RACE_GNOME)
    Plr->EventTeleport(0, -6240.32, 331.033, 382.75;

    else if(Plr->getRace() == RACE_TROLL)
    Plr->EventTeleport(1, -618.518, -4251.67, 38.71;

    else if(Plr->getRace() == RACE_BLOODELF)
    Plr->EventTeleport(530, 10349.6, -6357.29, 33.4026);

    else if(Plr->getRace() == RACE_DRAENEI)
    Plr->EventTeleport(530, -3961.64, -13931.2, 100.615);

    else
    Plr->BroadcastMessage("Error! You are an incorrect race!");

    }
    };

    void SetupOrb_of_Translocation(ScriptMgr * mgr)
    {
    mgr->register_gameobject_script(910000, &Orb_of_Translocation::Create);
    }
    yet it doesn't work when I use it ingame. I just click and nothing happens, no error message either.
    Last edited by guitargod218; 06-02-2008 at 09:14 PM.

    C++ Script Won't Work, Please Help!
  2. #17
    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)
    Setup.cpp/h

  3. #18
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I compiled it in my MiscScripts folder of my MoonScripts directory, and those files were there, unless you mean they need to be dependencies.

  4. #19
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You didn't add the Setup into the miscscripts Setup.cpp and Setup.h
    Life Puzzler WoW - Website | Forums

  5. #20
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright, I see what's needed:

    void SetupOrb_of_Translocation(ScriptMgr * mgr);
    in Setup.h and
    SetupOrb_of_Translocation(mgr);
    in Setup.cpp

    EDIT: When I add these things in, I get errors saying

    1>OoTstart.obj : error LNK2005: __exp_get_version already defined in Setup.obj
    1>OoTstart.obj : error LNK2005: __exp_get_script_type already defined in Setup.obj
    1>OoTstart.obj : error LNK2005: __exp_script_register already defined in Setup.obj
    1>OoTstart.obj : error LNK2005: _DllMain@12 already defined in Setup.obj
    1> Creating library ......binreleasescript_bin/MoonMiscScripts.lib and object ......binreleasescript_bin/MoonMiscScripts.exp
    1>../../../bin/release/script_bin/MoonMiscScripts.dll : fatal error LNK1169: one or more multiply defined symbols found
    1>Build log was saved at "file://h:OpenAscenttrunksrcMoonScriptsprojects2003_int_release_moonmiscscriptsBuildLog. htm"
    1>MoonMiscScripts - 5 error(s), 30 warning(s)
    If it wasn't obvious, you guys are dealing with a C++ newb right now, so please don't get too frustrated with me, I'm trying to learn as I go.

    EDIT: This post = bump before bed, so hopefully someone who knows this stuff can help while I get some z's before my final "final exam" (damned history).

    One last bump for the day; God, why won't this thing work for me?
    Last edited by 2dgreengiant; 06-04-2008 at 01:21 PM. Reason: tripple posting, merged

  6. #21
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol hmm linker error i think, why are you trying to add it to moonscripts anyways? why not just make your own project?


  7. #22
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know how to make my own project, I don't know what files I need, and I don't know how to configure the files I need in there so it would work. If you'd help me out, I'd greatly appreciate it. I've got AIM and MSN, and I'll be home 30 minutes or so.

  8. #23
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cursed has a good thread about how to make the project file.

    http://www.mmowned.com/forums/emulat...r-own-dll.html
    And then go to the buttom of the first post in there. It's a file called

    PvPToken.vcproj

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Lua Script] Lua scripts won't work!
    By Leksikon in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 05-17-2011, 05:08 PM
  2. Character to Creature edits not working. Please help.
    By Aradroth in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 06-28-2008, 04:00 PM
  3. Ranged Weapons Not Working - Please help
    By r3anims in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-15-2008, 12:42 PM
  4. Need help MODEL EDITS WONT WORK Please help
    By thaukas in forum WoW ME Questions and Requests
    Replies: 9
    Last Post: 04-14-2008, 12:19 PM
  5. My Photoshop won't behave - please help
    By Survar in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-02-2007, 12:21 PM
All times are GMT -5. The time now is 05:45 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