Player Start LeveL menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    vb4evr's Avatar Member
    Reputation
    22
    Join Date
    Oct 2007
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Like mentioned it is in player.cpp
    I got this information from SeetheZorZ post here

    Look for this line (Line 661)
    SetUInt32Value(UNIT_FIELD_LEVEL, 1 );

    Set the 1 to 70

    Player Start LeveL
  2. #17
    danis's Avatar Member
    Reputation
    5
    Join Date
    Jul 2007
    Posts
    274
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks dude !

  3. #18
    vb4evr's Avatar Member
    Reputation
    22
    Join Date
    Oct 2007
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most welcome.

  4. #19
    Saedusii's Avatar Contributor
    Reputation
    116
    Join Date
    Nov 2007
    Posts
    457
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by vb4evr View Post
    Like mentioned it is in player.cpp
    I got this information from SeetheZorZ post here

    Look for this line (Line 661)
    SetUInt32Value(UNIT_FIELD_LEVEL, 1 );

    Set the 1 to 70

    Quoted for Truth?

    Here is that section of the guide in full:

    Making All Characters start at Level 70:

    Go into "Ascent Compile/src/game/Player.cpp"
    "Ascent Compile/src/ascent-world/Player.cpp"

    Find the line:


    Code:
    SetUInt32Value(UNIT_FIELD_LEVEL, 1 );
    Change the 1 to 70.

    Save the file.

    Compile Ascent.
    Last edited by Saedusii; 02-06-2008 at 01:49 PM.


  5. #20
    danis's Avatar Member
    Reputation
    5
    Join Date
    Jul 2007
    Posts
    274
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And How could I make the HUNTER PET to dont be hungry and to be lvl 70 like the owne of it ! ?

  6. #21
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    without much of c++ knowledge i used search and woot how easy can it be:

    Code:
    // Set Starting stats for char
        SetFloatValue(OBJECT_FIELD_SCALE_X, ((race==RACE_TAUREN)?1.3f:1.0f));
        SetUInt32Value(UNIT_FIELD_HEALTH, info->health);
        SetUInt32Value(UNIT_FIELD_POWER1, info->mana );
        //SetUInt32Value(UNIT_FIELD_POWER2, 0 ); // this gets devided by 10
        SetUInt32Value(UNIT_FIELD_POWER3, info->focus );
        SetUInt32Value(UNIT_FIELD_POWER4, info->energy );
       
        SetUInt32Value(UNIT_FIELD_MAXHEALTH, info->health);
        SetUInt32Value(UNIT_FIELD_MAXPOWER1, info->mana );
        SetUInt32Value(UNIT_FIELD_MAXPOWER2, info->rage );
        SetUInt32Value(UNIT_FIELD_MAXPOWER3, info->focus );
        SetUInt32Value(UNIT_FIELD_MAXPOWER4, info->energy );
        
        //THIS IS NEEDED
        SetUInt32Value(UNIT_FIELD_BASE_HEALTH, info->health);
        SetUInt32Value(UNIT_FIELD_BASE_MANA, info->mana );
        SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, info->factiontemplate );
        SetUInt32Value(UNIT_FIELD_LEVEL, 1 );
        
        SetUInt32Value(UNIT_FIELD_BYTES_0, ( ( race ) | ( class_ << 8 ) | ( gender << 16 ) | ( powertype << 24 ) ) );
        //UNIT_FIELD_BYTES_1    (standstate) | (unk1) | (unk2) | (attackstate)
        if(class_ == WARRIOR)
            SetShapeShift(FORM_BATTLESTANCE);
    i think it is that... can anyone confirm?

    edit: this is in player.cpp btw...

    grtz

  7. #22
    danis's Avatar Member
    Reputation
    5
    Join Date
    Jul 2007
    Posts
    274
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea Thats it ! ^^ thanks

  8. #23
    Saedusii's Avatar Contributor
    Reputation
    116
    Join Date
    Nov 2007
    Posts
    457
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by latruwski View Post
    without much of c++ knowledge i used search and woot how easy can it be:

    Code:
    // Set Starting stats for char
        SetFloatValue(OBJECT_FIELD_SCALE_X, ((race==RACE_TAUREN)?1.3f:1.0f));
        SetUInt32Value(UNIT_FIELD_HEALTH, info->health);
        SetUInt32Value(UNIT_FIELD_POWER1, info->mana );
        //SetUInt32Value(UNIT_FIELD_POWER2, 0 ); // this gets devided by 10
        SetUInt32Value(UNIT_FIELD_POWER3, info->focus );
        SetUInt32Value(UNIT_FIELD_POWER4, info->energy );
       
        SetUInt32Value(UNIT_FIELD_MAXHEALTH, info->health);
        SetUInt32Value(UNIT_FIELD_MAXPOWER1, info->mana );
        SetUInt32Value(UNIT_FIELD_MAXPOWER2, info->rage );
        SetUInt32Value(UNIT_FIELD_MAXPOWER3, info->focus );
        SetUInt32Value(UNIT_FIELD_MAXPOWER4, info->energy );
        
        //THIS IS NEEDED
        SetUInt32Value(UNIT_FIELD_BASE_HEALTH, info->health);
        SetUInt32Value(UNIT_FIELD_BASE_MANA, info->mana );
        SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, info->factiontemplate );
        SetUInt32Value(UNIT_FIELD_LEVEL, 1 );
        
        SetUInt32Value(UNIT_FIELD_BYTES_0, ( ( race ) | ( class_ << 8 ) | ( gender << 16 ) | ( powertype << 24 ) ) );
        //UNIT_FIELD_BYTES_1    (standstate) | (unk1) | (unk2) | (attackstate)
        if(class_ == WARRIOR)
            SetShapeShift(FORM_BATTLESTANCE);
    i think it is that... can anyone confirm?

    edit: this is in player.cpp btw...

    grtz
    -_- We've already established this Latruwski. Lol.


  9. #24
    danis's Avatar Member
    Reputation
    5
    Join Date
    Jul 2007
    Posts
    274
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And now anyone know how I remove the hunter pet food? So he dosent need food to be always happy?

  10. #25
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SeetheZorZ View Post
    -_- We've already established this Latruwski. Lol.
    the problem is i am on smallband and everything loads up slow rofl xD i couldnt see your posts when i posted :-/
    tomorow i will be on broadband again woot

    grtz

  11. #26
    waymirec's Avatar Member
    Reputation
    49
    Join Date
    Jan 2008
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't have to edit your core to do this. You can create a c++ addon that hooks to SERVER_HOOK_ON_FIRST_ENTER_WORLD and have it set the player's level or any other stats you want. The following is an example. Just create the following files with their respective content, compile, and reload the server.

    -----Makefile.am--------
    INCLUDES += -I$(srcdir) -I$(srcdir)/../../../../dep/include -I$(srcdir)/../../../ascent-shared
    INCLUDES += -I$(srcdir)/../../../ascent-world -I$(srcdir)/../../../../dep/src

    AM_CXXFLAGS = -DSCRIPTLIB

    lib_LTLIBRARIES = libOnFirstEnterWorld.la

    libOnFirstEnterWorld_la_SOURCES = Setup.cpp


    -----Setup.h------
    void OnFirstEnterWorld(Player * plr);
    void doLevel70(Player * plr);


    ----Setup.cpp---------
    #include "StdAfx.h"
    #include "Setup.h"

    extern "C" SCRIPT_DECL uint32 _exp_get_version()
    {
    return MAKE_SCRIPT_VERSION(SCRIPTLIB_VERSION_MAJOR, SCRIPTLIB_VERSION_MINOR);
    }

    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
    return SCRIPT_TYPE_MISC;
    }

    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
    mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, (void *)&OnFirstEnterWorld);
    }

    #ifdef WIN32

    BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
    {
    return TRUE;
    }

    #endif

    void OnFirstEnterWorld(Player * plr)
    {
    doLevel70(plr);
    //doLearnSpells(plr);
    //doLearnSkills(plr);
    }

    void doLevel70(Player * plr)
    {
    uint32 Level = 70;
    LevelInfo * Info = objmgr.GetLevelInfo(plr->getRace(), plr->getClass(), Level);
    plr->ApplyLevelInfo(Info, Level);
    }
    Last edited by waymirec; 02-14-2008 at 10:29 PM.

  12. #27
    Saedusii's Avatar Contributor
    Reputation
    116
    Join Date
    Nov 2007
    Posts
    457
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Example 1: Changing 1 digit

    Example 2: Writing an addon.

    WOW.

    I have to say Example 1 is quite simple.


  13. #28
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SeetheZorZ View Post
    Example 1: Changing 1 digit

    Example 2: Writing an addon.

    WOW.

    I have to say Example 1 is quite simple.
    agree rofl addons would be good if you want to change all stats but this is only lvl so the core edit is better ^^

    grtz

  14. #29
    waymirec's Avatar Member
    Reputation
    49
    Join Date
    Jan 2008
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The difference is that with an addon you do it once and you're done. With a core edit you have to remember to do it each time you upgrade the core. Also, with an addon you have the benefit of being able to "disable" it by simply moving/removing the addon and restarting the world server. To each his own though

Page 2 of 2 FirstFirst 12

Similar Threads

  1. How can i make players start at a level higher then 80? For example 90.
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 08-03-2009, 12:28 PM
  2. [Question] How to make players start with gear/money/items?
    By hukabuka in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-23-2008, 08:13 PM
  3. [RELEASE] Query; Every player starts with a item that sells for 10k gold.
    By Romis in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 02-20-2008, 11:05 AM
  4. Edit starting level and more!
    By Le Froid in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-26-2007, 06:05 PM
  5. [Share] Rulebook for Mangos (ingame item added when players start!)
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 12-03-2007, 01:33 PM
All times are GMT -5. The time now is 12:38 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