Activate Skill without scroll - Source Code

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    The Descendant janmaru5555 is offline
    MemberRank
    Jun 2011 Join Date
    MarketPlaceLocation
    264Posts

    shout Activate Skill without scroll - Source Code

    I'm releasing this because of some stupid people don't know how to code so they're just stealing it.

    I can't show any screenshots or video but you'll know how this works.
    Just read the title of this thread.

    Additional:
    s_NetGlobal.h:
    NET_MSG_GCTRL_REQ_LEARNSKILL_NONINVEN = (NET_MSG_GCTRL + 1823),
    NET_MSG_GCTRL_REQ_LEARNSKILL_NONINVEN_FB = (NET_MSG_GCTRL + 1824),
    Quote Originally Posted by miseven01 View Post
    GLCharSkillMsg.cpp
    G-Logic\GLCharSkillMsg.cpp(41) : error C3861: 'LEARN_SKILL_NONSCROLL': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(53) : error C2039: 'SNETPC_UPDATE_MONEYTYPE' : is not a member of 'GLMSG'
    G-Logic\GLCharSkillMsg.cpp(53) : error C2065: 'SNETPC_UPDATE_MONEYTYPE' : undeclared identifier
    G-Logic\GLCharSkillMsg.cpp(53) : error C2146: syntax error : missing ';' before identifier 'NetMsgMoney'
    G-Logic\GLCharSkillMsg.cpp(53) : error C2065: 'NetMsgMoney' : undeclared identifier
    G-Logic\GLCharSkillMsg.cpp(54) : error C2228: left of '.lnGold' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(54) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(55) : error C2228: left of '.lnPremP' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(55) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(56) : error C2228: left of '.lnVoteP' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(56) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(57) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    GLGaeaClient.cpp
    G-Logic\GLGaeaClient.cpp(2835) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    G-Logic\GLGaeaClient.cpp(2963) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    G-Logic\GLGaeaClient.cpp(2992) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    Fix:

    GlogixExPC.cpp
    void GLCHARLOGIC::LEARN_SKILL_NONSCROLL ( SNATIVEID skill_id )
    {
    PGLSKILL pSkill = GLSkillMan::GetInstance().GetData ( skill_id.wMainID, skill_id.wSubID );
    if ( !pSkill ) return;

    SKILL::SLEARN_LVL &sSKILL_LEARN_LVL = pSkill->m_sLEARN.sLVL_STEP[0];
    if ( m_dwSkillPoint < sSKILL_LEARN_LVL.dwSKP ) return;

    SCHARSKILL* pCharSkill = GETLEARNED_SKILL( skill_id );
    if ( !pCharSkill )
    {
    if ( m_lnMoney < int(GLCONST_CHAR::lnSKILL_PREREQ[skill_id.wMainID][skill_id.wSubID])) return; // sSKILL_LEARN_LVL.dwMoneyReq ) return;
    }

    if ( m_lnVoteP < sSKILL_LEARN_LVL.dwVotePoint ) return;
    if ( m_lnPremP < sSKILL_LEARN_LVL.dwPremPoint ) return;

    m_dwSkillPoint -= sSKILL_LEARN_LVL.dwSKP;

    if ( !pCharSkill )
    {
    m_lnMoney -= int(GLCONST_CHAR::lnSKILL_PREREQ[skill_id.wMainID][skill_id.wSubID]); //sSKILL_LEARN_LVL.dwMoneyReq;
    }

    m_lnVoteP -= sSKILL_LEARN_LVL.dwVotePoint;
    m_lnPremP -= sSKILL_LEARN_LVL.dwPremPoint;

    m_ExpSkills.insert ( std::make_pair(skill_id.dwID,SCHARSKILL(skill_id,0)) );

    if ( pSkill->m_sBASIC.emROLE == SKILL::EMROLE_PASSIVE )
    {
    INIT_DATA ( FALSE, FALSE );
    }
    }
    GlogicEx.h

    void LEARN_SKILL_NONSCROLL ( SNATIVEID skill_id );
    Comment if errors occured. Thanks.

    Credits: Me again
    MORE POWER !
    Attached Files Attached Files
    Last edited by janmaru5555; 30-07-16 at 01:09 PM. Reason: Additional Info


  2. #2
    Account Upgraded | Title Enabled! mccfloat is offline
    MemberRank
    Jul 2015 Join Date
    201Posts

    Re: Activate Skill without scroll - Source Code

    thanks master :)

  3. #3
    Member Arvin B Canaman is offline
    MemberRank
    Aug 2013 Join Date
    Calbayog CityLocation
    85Posts

    Re: Activate Skill without scroll - Source Code

    Thanks Jan Maru <3 hehe

  4. #4
    I don't know... chokz14 is offline
    MemberRank
    Apr 2012 Join Date
    X:/Location
    349Posts

    Re: Activate Skill without scroll - Source Code

    is this the source for activating/opening the skill with gold requirements only? or?

  5. #5
    Member miseven01 is offline
    MemberRank
    Feb 2015 Join Date
    57Posts

    Re: Activate Skill without scroll - Source Code

    GLCharSkillMsg.cpp
    G-Logic\GLCharSkillMsg.cpp(41) : error C3861: 'LEARN_SKILL_NONSCROLL': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(53) : error C2039: 'SNETPC_UPDATE_MONEYTYPE' : is not a member of 'GLMSG'
    G-Logic\GLCharSkillMsg.cpp(53) : error C2065: 'SNETPC_UPDATE_MONEYTYPE' : undeclared identifier
    G-Logic\GLCharSkillMsg.cpp(53) : error C2146: syntax error : missing ';' before identifier 'NetMsgMoney'
    G-Logic\GLCharSkillMsg.cpp(53) : error C2065: 'NetMsgMoney' : undeclared identifier
    G-Logic\GLCharSkillMsg.cpp(54) : error C2228: left of '.lnGold' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(54) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(55) : error C2228: left of '.lnPremP' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(55) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(56) : error C2228: left of '.lnVoteP' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(56) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(57) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    GLGaeaClient.cpp
    G-Logic\GLGaeaClient.cpp(2835) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    G-Logic\GLGaeaClient.cpp(2963) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    G-Logic\GLGaeaClient.cpp(2992) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data

  6. #6
    The Descendant janmaru5555 is offline
    MemberRank
    Jun 2011 Join Date
    MarketPlaceLocation
    264Posts

    Re: Activate Skill without scroll - Source Code

    Quote Originally Posted by miseven01 View Post
    GLCharSkillMsg.cpp
    G-Logic\GLCharSkillMsg.cpp(41) : error C3861: 'LEARN_SKILL_NONSCROLL': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(53) : error C2039: 'SNETPC_UPDATE_MONEYTYPE' : is not a member of 'GLMSG'
    G-Logic\GLCharSkillMsg.cpp(53) : error C2065: 'SNETPC_UPDATE_MONEYTYPE' : undeclared identifier
    G-Logic\GLCharSkillMsg.cpp(53) : error C2146: syntax error : missing ';' before identifier 'NetMsgMoney'
    G-Logic\GLCharSkillMsg.cpp(53) : error C2065: 'NetMsgMoney' : undeclared identifier
    G-Logic\GLCharSkillMsg.cpp(54) : error C2228: left of '.lnGold' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(54) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(55) : error C2228: left of '.lnPremP' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(55) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(56) : error C2228: left of '.lnVoteP' must have class/struct/union type
    type is ''unknown-type''
    G-Logic\GLCharSkillMsg.cpp(56) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    G-Logic\GLCharSkillMsg.cpp(57) : error C3861: 'NetMsgMoney': identifier not found, even with argument-dependent lookup
    GLGaeaClient.cpp
    G-Logic\GLGaeaClient.cpp(2835) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    G-Logic\GLGaeaClient.cpp(2963) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    G-Logic\GLGaeaClient.cpp(2992) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
    First post updated

  7. #7
    Proficient Member markalejo11 is offline
    MemberRank
    Jan 2009 Join Date
    187Posts

    Re: Activate Skill without scroll - Source Code

    tnx for this ill try :)

  8. #8
    Member miseven01 is offline
    MemberRank
    Feb 2015 Join Date
    57Posts

    Re: Activate Skill without scroll - Source Code

    Thanks janmaru5555

  9. #9
    Novice MatthyPogi is offline
    MemberRank
    May 2015 Join Date
    Meycauayan, BulLocation
    4Posts

    Re: Activate Skill without scroll - Source Code

    Sir, you can you include the button code. Thanks

    - - - Updated - - -


  10. #10
    Sterben Death Gun is offline
    MemberRank
    Dec 2012 Join Date
    GunlandLocation
    323Posts

    Re: Activate Skill without scroll - Source Code



    PHP Code:
    Change this:
    int(GLCONST_CHAR::lnSKILL_PREREQ[skill_id.wMainID][skill_id.wSubID])

    To this:
    int(GLSkillMan::GetInstance().GetData skill_id.wMainIDskill_id.wSubID )) 
    Button Code:
    I just used the same button.
    PHP Code:
                    //add money skill
                    //Activate Skill w/o Scroll - NaJ May 08, 2015
                    
    else if ( dwMsg UIMSG_LB_UP ){
                        
    GLGaeaClient::GetInstance().GetCharacter()->ReqNonInvenSkill m_sNativeID );
                        
    DoModal "Learn Skill using Gold? Requirement must be complete."MODAL_QUESTIONYESNOMODAL_SKILL_LEVEL_UP_CONFIRM );
                    } 
    It's up to you if you'll gonna use this code. Because it has a bug haha
    Last edited by Death Gun; 31-07-16 at 12:30 PM.

  11. #11
    Novice MatthyPogi is offline
    MemberRank
    May 2015 Join Date
    Meycauayan, BulLocation
    4Posts

    Re: Activate Skill without scroll - Source Code

    PHP Code:
                    //add money skill
                    //Activate Skill w/o Scroll - NaJ May 08, 2015
                    
    else if ( dwMsg UIMSG_LB_UP ){
                        
    GLGaeaClient::GetInstance().GetCharacter()->ReqNonInvenSkill m_sNativeID );
                        
    DoModal "Learn Skill using Gold? Requirement must be complete."MODAL_QUESTIONYESNOMODAL_SKILL_LEVEL_UP_CONFIRM );
                    } 
    It's up to you if you'll gonna use this code. Because it has a bug haha
    Hehe yeah i just tested it and bug ^_^.
    Thanks for the source and i hope someone who is so kind to give clean button code :(
    Last edited by MatthyPogi; 01-08-16 at 02:03 PM.

  12. #12
    The Descendant janmaru5555 is offline
    MemberRank
    Jun 2011 Join Date
    MarketPlaceLocation
    264Posts

    Re: Activate Skill without scroll - Source Code

    Just track the SNATIVEID of the skill and attach it inside like this

    SNATIVEID sSkillID = pSkill->m_sBasic.sNativeID; // This is the skill id for example
    GLGaeaClient::GetInstance().GetCharacter()->ReqNonInvenSkill ( sSkillID );

  13. #13
    Novice MatthyPogi is offline
    MemberRank
    May 2015 Join Date
    Meycauayan, BulLocation
    4Posts

    Re: Activate Skill without scroll - Source Code

    Hahaha can't figure it out how to make a clean button code "Lack of knowledge in source" LOL
    Thanks for this code Jan. Im still waiting for someone hehehe

  14. #14
    Proficient Member markalejo11 is offline
    MemberRank
    Jan 2009 Join Date
    187Posts

    Re: Activate Skill without scroll - Source Code

    ill try diz code but i got problem in Skillslot.cpp got error Like Cost ' 0 ' skillpoint.. hmmm..

  15. #15
    Enthusiast ismalia is offline
    MemberRank
    Oct 2011 Join Date
    PhLocation
    25Posts

    Re: Activate Skill without scroll - Source Code

    thanks master <3



Page 1 of 2 12 LastLast

Advertisement