[C++] Zone Dueling Script Errors menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] Zone Dueling Script Errors

    Referer to this post if you are confused:
    [C++][Zone] Dueling Area ; Healers and spectators for your dueling zone

    Originally Posted by namelessgnome
    1. Save the program to your gossip scripts folder (or any other folder containing c++ scripts)
    2. You will now have to edit the settings to set the Npc Ids
    3. add void SetupDuelZone(ScriptMgr * mgr); to Setup.h
    4. add SetupDuelZone(mgr); to your main function in Setup.cpp
    5. Open the scripts project in visual studio and click add existing file
    6. Select the DuelingZone Script
    7. Recompile your scripts


    I get 11 errors =/
    (And yes I did use Magers epic program to convert it from AspToArc). Can someone help me please?

    Code:
    1>Compiling...
    1>ZONE_Duel.cpp
    1>..\src\GossipScripts\ZONE_Duel.cpp(81) : error C2065: 'MapMgrPointer' : undeclared identifier
    1>..\src\GossipScripts\ZONE_Duel.cpp(81) : error C2146: syntax error : missing ';' before identifier 'mapMgr'
    1>..\src\GossipScripts\ZONE_Duel.cpp(81) : error C2065: 'mapMgr' : undeclared identifier
    1>..\src\GossipScripts\ZONE_Duel.cpp(82) : error C2065: 'mapMgr' : undeclared identifier
    1>..\src\GossipScripts\ZONE_Duel.cpp(82) : error C2227: left of '->GetPlayerCount' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>..\src\GossipScripts\ZONE_Duel.cpp(91) : error C2065: 'mapMgr' : undeclared identifier
    1>..\src\GossipScripts\ZONE_Duel.cpp(91) : error C2227: left of '->GetPosX' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>..\src\GossipScripts\ZONE_Duel.cpp(92) : error C2065: 'mapMgr' : undeclared identifier
    1>..\src\GossipScripts\ZONE_Duel.cpp(92) : error C2227: left of '->GetPosY' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>..\src\GossipScripts\ZONE_Duel.cpp(106) : error C2065: 'mapMgr' : undeclared identifier
    1>..\src\GossipScripts\ZONE_Duel.cpp(106) : error C2227: left of '->GetCell' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>ArcScriptGossipScripts - 11 error(s), 0 warning(s)
    Basically I did as you said.
    I put the two lines into both setup.h and setup.cpp, of the ArcScriptEventScripts project file. Then I located the ZONE_Duel.cpp file into the Scripts folders of the project aswell.

    First I got 1 error saying that "Setup.h" didn't excist.
    Then I recompiled and I got those 11 errors up there.
    Help pretty please? xD

    ArcEmu: Revision 2951
    Last edited by AngelSandy; 10-08-2009 at 07:28 AM.

    [C++] Zone Dueling Script Errors
  2. #2
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change MapMgrPointer to MapMgr *

    I live in a shoe

  3. #3
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is that all there is to it? o_o

  4. #4
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, unless you get more errors afterwords.

    I live in a shoe

  5. #5
    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)
    Considering the script was designed for aspire branch servers, you will need to convert all the shared pointers.

    (CreaturePointer to Creature *, etc)

  6. #6
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was that single line x_x
    Meeeeeh <_<

Similar Threads

  1. LUA Script Error, Help would be appreciated!
    By pachuco55 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-20-2008, 06:03 PM
  2. Force start a duel script
    By soholy in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-09-2008, 06:10 AM
  3. Script Error
    By delldude1989 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 04-06-2008, 03:41 PM
  4. [Help me] Lua script error? please help.
    By Szharz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-22-2008, 12:20 PM
  5. Scripting Error (link fatal)
    By djkajabaxd in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-23-2008, 10:46 AM
All times are GMT -5. The time now is 06:02 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