[HELP] PvPSystem menu

User Tag List

Results 1 to 12 of 12
  1. #1
    gotiefan's Avatar Sergeant
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] PvPSystem

    Hello,

    I am trying to make this work: Click here

    It is a Pvpsystem but it has to be compiled.
    If I try to compile it, it gives me errors:

    1>------ Build started: Project: PvpSystem, Configuration: Release Win32 ------
    1>Compiling...
    1>PvpSystem.cpp
    1>Setup.cpp
    1>..srcPvpSystemSetup.cpp(1) : error C2065: 'mgr': nichtdeklarierter Bezeichner
    1>..srcPvpSystemSetup.cpp(1) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht untersttzt.
    1>Build log was saved at "file://e:OpenascentCorebranches3_8_stablesrcscriptsprojects2008_int_release_PvpSystemBu ildLog.htm"
    1>PvpSystem - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    The problem is, I don't know how to create a working PROJECT file for this.
    I am using Visual C++ 2008 Express edition

    If anyone could help me with this, I would really appreciate it.


    Greets,
    Mitch Mertz
    Last edited by gotiefan; 06-21-2008 at 03:18 AM.

    [HELP] PvPSystem
  2. #2
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use this..

    PvPToken.cpp
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    void onPvpKill(Player* plr, Player* victim)
    {
        int itemID;
        uint32 tokenItem = Config.MainConfig.GetInt("NEMESIS_PVP", "PvPTokenID", &itemID);
    
        sLog.outColor(TGREEN,"n[NCDB] (%u)%s killed (%u)%s", plr->getLevel(), plr->GetName(), victim->getLevel(), victim->GetName());
        char onkill[1024];
        snprintf((char*)onkill, 1024, "|cffFFFF00[PVP]|r |cff00FF00%s|r |cffFFFF00has killed|r |cff00FF00%s|r", plr->GetName(), victim->GetName());
        sWorld.SendWorldWideScreenText(onkill);
    
        if(plr->getLevel() >= 70 && victim->getLevel() >= 70 && plr->GetTeam() != victim->GetTeam())
        {
            sLog.outColor(TGREEN,"n[NCDB] Adding token to %s", plr->GetName());
            sLog.outColor(TNORMAL,"n");
            ItemPrototype *proto = ItemPrototypeStorage.LookupEntry(itemID);
            if(!proto) return;
            SlotResult slotresult;
            slotresult = plr->GetItemInterface()->FindFreeInventorySlot(proto);
    
            if(!slotresult.Result)
            {
                plr->GetItemInterface()->BuildInventoryChangeError(NULL, NULL, INV_ERR_INVENTORY_FULL);
            }
            else
            {
                Item *itm = objmgr.CreateItem(itemID, plr);
                plr->GetItemInterface()->SafeAddItem(itm,slotresult.ContainerSlot, slotresult.Slot);
                itm->m_isDirty = true;
            }
        }
        else
        {
            sLog.outColor(TRED,"n[NCDB] Not adding token since they both are not level 70");
            sLog.outColor(TNORMAL,"n");
        }
    }
    
    void SetupPvPToken(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, onPvpKill);
    }
    setup
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #include <ScriptSetup.h>
    
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
    	return SCRIPT_TYPE_MISC;
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
    SetupPvPToken(mgr);
    
    }
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    setup.h
    Code:
    #ifndef PVP_TOKEN_SETUP_H
    #define PVP_TOKEN_SETUP_H
    
    void SetupPvPToken(ScriptMgr * mgr);
    
    #endif

    .vcproj

    Code:
    <?xml version="1.0" encoding="Windows-1252"?>
    <VisualStudioProject
    	ProjectType="Visual C++"
    	Version="9.00"
    	Name="PVPToken"
    	ProjectGUID="{2062C149-6029-44A9-94D4-964CF2D914F2}"
    	Keyword="Win32Proj"
    	TargetFrameworkVersion="131072"
    	>
    	<Platforms>
    		<Platform
    			Name="Win32"
    		/>
    	</Platforms>
    	<ToolFiles>
    	</ToolFiles>
    	<Configurations>
    		<Configuration
    			Name="Debug|Win32"
    			OutputDirectory="......bindebugscript_bin"
    			IntermediateDirectory="2003_int_debug_PVPToken"
    			ConfigurationType="2"
    			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaultsUpgradeFromVC71.vsprops"
    			CharacterSet="2"
    			>
    			<Tool
    				Name="VCPreBuildEventTool"
    			/>
    			<Tool
    				Name="VCCustomBuildTool"
    			/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"
    			/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"
    			/>
    			<Tool
    				Name="VCMIDLTool"
    			/>
    			<Tool
    				Name="VCCLCompilerTool"
    				AdditionalOptions="/MP"
    				Optimization="0"
    				AdditionalIncludeDirectories="....ascent-shared;....ascent-world;......depinclude;......depsrc"
    				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SCRIPTLIB"
    				MinimalRebuild="true"
    				BasicRuntimeChecks="3"
    				RuntimeLibrary="1"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				Detect64BitPortabilityProblems="true"
    				DebugInformationFormat="4"
    			/>
    			<Tool
    				Name="VCManagedResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCPreLinkEventTool"
    			/>
    			<Tool
    				Name="VCLinkerTool"
    				AdditionalDependencies="ascent-world.lib"
    				OutputFile="../../../bin/debug/script_bin/PVPToken.dll"
    				LinkIncremental="2"
    				AdditionalLibraryDirectories="......bindebug"
    				GenerateDebugInformation="true"
    				ProgramDatabaseFile="../../../bin/debug/script_bin/PVPToken.pdb"
    				SubSystem="2"
    				RandomizedBaseAddress="1"
    				DataExecutionPrevention="0"
    				ImportLibrary="$(OutDir)/PVPToken.lib"
    				TargetMachine="1"
    			/>
    			<Tool
    				Name="VCALinkTool"
    			/>
    			<Tool
    				Name="VCManifestTool"
    			/>
    			<Tool
    				Name="VCXDCMa****ol"
    			/>
    			<Tool
    				Name="VCBscMa****ol"
    			/>
    			<Tool
    				Name="VCFxCopTool"
    			/>
    			<Tool
    				Name="VCAppVerifierTool"
    			/>
    			<Tool
    				Name="VCPostBuildEventTool"
    			/>
    		</Configuration>
    		<Configuration
    			Name="Release|Win32"
    			OutputDirectory="......binreleasescript_bin"
    			IntermediateDirectory="2003_int_release_PVPToken"
    			ConfigurationType="2"
    			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaultsUpgradeFromVC71.vsprops"
    			CharacterSet="2"
    			>
    			<Tool
    				Name="VCPreBuildEventTool"
    				ExcludedFromBuild="true"
    			/>
    			<Tool
    				Name="VCCustomBuildTool"
    			/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"
    			/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"
    			/>
    			<Tool
    				Name="VCMIDLTool"
    			/>
    			<Tool
    				Name="VCCLCompilerTool"
    				AdditionalIncludeDirectories="....ascent-shared;....ascent-world;......depinclude;......depsrc"
    				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SCRIPTLIB"
    				RuntimeLibrary="0"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				Detect64BitPortabilityProblems="true"
    				DebugInformationFormat="3"
    			/>
    			<Tool
    				Name="VCManagedResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCPreLinkEventTool"
    			/>
    			<Tool
    				Name="VCLinkerTool"
    				AdditionalDependencies="ascent-world.lib"
    				OutputFile="../../../bin/release/script_bin/PVPToken.dll"
    				LinkIncremental="1"
    				AdditionalLibraryDirectories="......binrelease"
    				GenerateDebugInformation="true"
    				ProgramDatabaseFile="../../../bin/release/script_bin/PVPToken.pdb"
    				SubSystem="2"
    				OptimizeReferences="2"
    				EnableCOMDATFolding="2"
    				RandomizedBaseAddress="1"
    				DataExecutionPrevention="0"
    				ImportLibrary="$(OutDir)/PVPToken.lib"
    				TargetMachine="1"
    			/>
    			<Tool
    				Name="VCALinkTool"
    			/>
    			<Tool
    				Name="VCManifestTool"
    			/>
    			<Tool
    				Name="VCXDCMa****ol"
    			/>
    			<Tool
    				Name="VCBscMa****ol"
    			/>
    			<Tool
    				Name="VCFxCopTool"
    			/>
    			<Tool
    				Name="VCAppVerifierTool"
    			/>
    			<Tool
    				Name="VCPostBuildEventTool"
    			/>
    		</Configuration>
    	</Configurations>
    	<References>
    	</References>
    	<Files>
    		<Filter
    			Name="Main Resources"
    			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
    			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
    			>
    			<File
    				RelativePath="..srcPVPTokenSetup.cpp"
    				>
    			</File>
    			<File
    				RelativePath="..srcPVPTokenSetup.h"
    				>
    			</File>
    		</Filter>
    		<Filter
    			Name="Scripts"
    			Filter="h;hpp;hxx;hm;inl;inc;xsd"
    			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
    			>
    			<File
    				RelativePath="..srcPVPTokenPVPToken.cpp"
    				>
    			</File>
    		</Filter>
    	</Files>
    	<Globals>
    	</Globals>
    </VisualStudioProject>
    Last edited by soul02; 06-21-2008 at 03:42 AM.

  3. #3
    gotiefan's Avatar Sergeant
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am getting this error when I open the project file.

    The following error has occurred during XML parsing:

    File: E:OpenAscenttrunksrcscriptsprojectsPvPToken.vcproj
    Line: 25
    Column: 4
    Error Message:
    Property sheet file '$(VCInstallDir)VCProjectDefaultsUpgradeFromVC71.vsprops' was not found or failed to load.
    The file 'E:OpenAscenttrunksrcscriptsprojectsPvPToken.vcproj' has failed to load.

  4. #4
    gotiefan's Avatar Sergeant
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If anyone knows a fix for this, please post it.

  5. #5
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dunno why u get that error
    what rev u using i can compile for u.. hope ur not using an old old rev

  6. #6
    gotiefan's Avatar Sergeant
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using the newest rev.

    So, thats no prob ^^

    revision 446 by Burlex

  7. #7
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ingame type .info and post it here thx

  8. #8
    gotiefan's Avatar Sergeant
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Server Revision: ArcEmu r108/Release-Win32-X86

  9. #9
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok im downloading r108 source now

    *edit

    here man RapidShare: Easy Filehosting

    put this in ascent-world.conf

    <NCDB PvPToken="1" PvPTokenID="UR_PVP_ID_ITEM">
    Last edited by soul02; 06-21-2008 at 07:31 AM.

  10. #10
    gotiefan's Avatar Sergeant
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you VERY much!

    +Rep

  11. #11
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ur welcome

  12. #12
    gotiefan's Avatar Sergeant
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you again that you compiled it for me.

    But, I actually want to compile stuff myself and I was wondering where you located those files.

    I located them here.

    branches3_8_stablesrcscriptsPvPToken.vcproj
    And rest here:

    branches3_8_stablesrcscriptssrcPvPToken

    Is this ok?

Similar Threads

  1. HELP: Gold Scam Exploit
    By GoldDragon in forum World of Warcraft General
    Replies: 11
    Last Post: 01-23-2007, 07:26 PM
  2. Banner Ad Redesign help
    By Matt in forum Community Chat
    Replies: 57
    Last Post: 07-08-2006, 08:40 PM
  3. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 1
    Last Post: 05-07-2006, 08:36 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 02:11 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search