Need some help at changing stuf at ArcEmu (C++) menu

User Tag List

Results 1 to 6 of 6
  1. #1
    kaato's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some help at changing stuf at ArcEmu (C++)

    Hello =)

    I am making a level 19 twink realm for me and my friends

    This is what i need to do:
    - Make Death Knights start as level 1.
    - Make AB, SOTA, Eots and AV available for level 10-19.
    - Make it so every time you kill somebody in a battleground you get 1gold.

    Therse 3 things is HUUGE for me :P
    I am not good at C++.

    +Rep to anyone who helps, this is a huge project for me.
    I will love all kind of help

    Gastricpenguin: I hope this is the right section, didn't notice the "No questions here" label :P I apologize.
    Edit: ofc i made a typo on the title -.-
    Last edited by kaato; 04-07-2009 at 06:31 PM.

    Need some help at changing stuf at ArcEmu (C++)
  2. #2
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's everything you need.

    Run this patch on your core, and install the following script.
    Patch:
    Code:
    Index: src/arcemu-world/CharacterHandler.cpp
    ===================================================================
    --- src/arcemu-world/CharacterHandler.cpp	(revision 2502)
    +++ src/arcemu-world/CharacterHandler.cpp	(working copy)
    @@ -415,7 +415,7 @@
     
     	//Check if player has a level 55 or higher character on this realm and allow him to create DK.
     	//This check can be turned off in arcemu-optional.conf
    -	if( Config.OptionalConfig.GetBoolDefault( "ClassOptions" , "DeathKnightPreReq" , false ) && !has_level_55_char 
    +	if( 0 == 1 && Config.OptionalConfig.GetBoolDefault( "ClassOptions" , "DeathKnightPreReq" , false ) && !has_level_55_char 
     		&& ( class_ == DEATHKNIGHT ))
     	{	
     		pNewChar->ok_to_remove = true;
    Index: src/arcemu-world/Player.cpp
    ===================================================================
    --- src/arcemu-world/Player.cpp	(revision 2502)
    +++ src/arcemu-world/Player.cpp	(working copy)
    @@ -757,21 +757,21 @@
     	SetUInt32Value(UNIT_FIELD_BASE_MANA, info->mana );
     	SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, info->factiontemplate );
     
    -	if(class_ == DEATHKNIGHT)
    +	/*if(class_ == DEATHKNIGHT)
     		SetUInt32Value(PLAYER_CHARACTER_POINTS1, sWorld.DKStartTalentPoints); // Default is 0 in case you do not want to modify it
    -	else
    +	else*/
     		SetUInt32Value(PLAYER_CHARACTER_POINTS1,0);
    -	if(class_ != DEATHKNIGHT || sWorld.StartingLevel > 55)
    -	{
    +	/*if(class_ != DEATHKNIGHT || sWorld.StartingLevel > 55)
    +	{*/
     		SetUInt32Value(UNIT_FIELD_LEVEL, sWorld.StartingLevel );
    -		if(sWorld.StartingLevel >= 10 && class_ != DEATHKNIGHT )
    +		if(sWorld.StartingLevel >= 10 /*&& class_ != DEATHKNIGHT*/ )
     		SetUInt32Value(PLAYER_CHARACTER_POINTS1,sWorld.StartingLevel - 9);
    -	}
    +	/*}
     	else
     	{
     		SetUInt32Value(UNIT_FIELD_LEVEL, 55 );
     		SetUInt32Value(PLAYER_NEXT_LEVEL_XP, 148200);
    -	}
    +	}*/
     	UpdateGlyphs();
     
     	SetUInt32Value(PLAYER_CHARACTER_POINTS2, sWorld.MaxProfs );
    Script:
    Code:
    //Gold On-kill Script
    //Made by jotox/Classic
    
    //Gold rewarded on kill.
    #define GOLD 1
    
    //Level required to get gold.
    #define LEVEL_REQUIRED 10
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    
    void OnPlayerKill(Player * pPlayer, Player * pVictim)
    {
    	if( pPlayer->getLevel() < LEVEL_REQUIRED || pVictim->getLevel() < LEVEL_REQUIRED )
    		return;
    	if( !pPlayer->m_bg )
    		return;
    	
    	pPlayer->ModUnsigned32Value( PLAYER_FIELD_COINAGE , GOLD*100*100 );
    	pPlayer->BroadcastMessage("You have earned %u gold for an enemy kill.", GOLD);
    }
    
    
    void SetupGoldKill(ScriptMgr * mgr)
    {
    	mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, &OnPlayerKill);
    }

    Tell me if you have any problems.

  3. #3
    kaato's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Every time i login i am getting this crash:

    Code:
    void EventableObject::event_Relocate()
    {
    	/* prevent any new stuff from getting added */
    	m_lock.Acquire();
    
    --->	EventableObjectHolder * nh = sEventMgr.GetEventHolder(event_GetInstanceID());
    	if(nh != m_holder)
    	{
    		// whee, we changed event holder :>
    		// doing this will change the instanceid on all the events, as well as add to the new holder.
    		
    		// no need to do this if we don't have any events, though.
    		if(!nh)
    			nh = sEventMgr.GetEventHolder(-1);
    
    		nh->AddObject(this);
    I can start a deathknight, see him as level 19- login for 2 sek and then this crash :O

    Any ideas?
    Thanks alot for help btw.
    https://nordicwow.servegame.com/ +Rep

  4. #4
    kaato's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like it's a core problem, so i will have to test the stuff later tonight ^^
    https://nordicwow.servegame.com/ +Rep

  5. #5
    kaato's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The gold thing works, Deathknights will start as level 19, but they will ding 55 when you log that char :P

    The battleground part for level 10-19 doesn't work
    Arena doesn't work for lvl19 either- should be able to make an arena team as level 19 not 70 ^^

    Thanks again.
    https://nordicwow.servegame.com/ +Rep

  6. #6
    kaato's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump bumb :P
    https://nordicwow.servegame.com/ +Rep

Similar Threads

  1. Really need some help compile (Arcemu)
    By Caros2013 in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 01-15-2010, 09:38 AM
  2. Need some help with making T8 items (ArcEmu)
    By jack000ripper in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 06-30-2009, 09:44 PM
  3. ArcEmu Need Some help =)
    By ladygamer in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 01-23-2009, 08:30 AM
  4. Need some help with Head changing
    By Emotion in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 01-01-2007, 07:12 PM
  5. NEED SOME HELP with Model Editing
    By Dwarf in forum World of Warcraft Model Editing
    Replies: 4
    Last Post: 09-12-2006, 08:12 PM
All times are GMT -5. The time now is 04:51 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