This makes you have all 61 talent points when you create a new char. This C++ is for servers that edited there core so you are level 70 at creation.
Also this was not created by me.
It was by double_hex
Also Im having some problems compling this with ascent r4552 if you could complie it for me that would be awesome.
You will also get rep.
OneCreate.cpp
setup.cppCode:#include "StdAfx.h" #include "Setup.h" #ifdef WIN32 #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float' #endif void oncreate(Player *Plr) { Plr->_UpdateMaxSkillCounts(); Plr->SetUInt32Value(PLAYER_CHARACTER_POINTS1,61); Plr->_AdvanceAllSkills(375); } void Setuponcreate(ScriptMgr * mgr) { mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, oncreate); }
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) { Setuponcreate(mgr); } #ifdef WIN32 BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } #endif
setup.h
oncreate.vcprojCode:#ifndef INSTANCE_SCRIPTS_SETUP_H #define INSTANCE_SCRIPTS_SETUP_H void Setuponcreate(ScriptMgr * mgr); #endif
Code:<?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="oncreate" ProjectGUID="{495CDEBE-E216-485B-B2F1-2FC0BD9DAE7D}" RootNamespace="oncreate" Keyword="Win32Proj" TargetFrameworkVersion="131072" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="......bindebugscript_bin" IntermediateDirectory="2003_int_debug_oncreate" 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="false" DebugInformationFormat="4" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="ascent-world.lib" OutputFile="../../../bin/debug/script_bin/oncreate.dll" LinkIncremental="2" AdditionalLibraryDirectories="......bindebug" GenerateDebugInformation="true" ProgramDatabaseFile="../../../bin/debug/script_bin/oncreate.pdb" SubSystem="2" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary="$(OutDir)/oncreate.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_oncreate" 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="false" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="ascent-world.lib" OutputFile="../../../bin/release/script_bin/oncreate.dll" LinkIncremental="1" AdditionalLibraryDirectories="......binrelease" GenerateDebugInformation="true" ProgramDatabaseFile="../../../bin/release/script_bin/oncreate.pdb" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary="$(OutDir)/oncreate.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="..srconcreateSetup.cpp" > </File> <File RelativePath="..srconcreateSetup.h" > </File> </Filter> <Filter Name="Scripts" Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > <File RelativePath="..srconcreateoncreate.cpp" > </File> </Filter> </Files> <Globals> </Globals> </VisualStudioProject>