Referer to this post if you are confused:
[C++][Zone] Dueling Area ; Healers and spectators for your dueling zone
Originally Posted by namelessgnome
- Save the program to your gossip scripts folder (or any other folder containing c++ scripts)
- You will now have to edit the settings to set the Npc Ids
- add void SetupDuelZone(ScriptMgr * mgr); to Setup.h
- add SetupDuelZone(mgr); to your main function in Setup.cpp
- Open the scripts project in visual studio and click add existing file
- Select the DuelingZone Script
- 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