2 Attachment(s)
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:
Quote:
NET_MSG_GCTRL_REQ_LEARNSKILL_NONINVEN = (NET_MSG_GCTRL + 1823),
NET_MSG_GCTRL_REQ_LEARNSKILL_NONINVEN_FB = (NET_MSG_GCTRL + 1824),
Quote:
Quote:
Originally Posted by
miseven01
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
Quote:
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
Quote:
void LEARN_SKILL_NONSCROLL ( SNATIVEID skill_id );
Comment if errors occured. Thanks.
Credits: Me again
MORE POWER ! :love:
Re: Activate Skill without scroll - Source Code
Re: Activate Skill without scroll - Source Code
Re: Activate Skill without scroll - Source Code
is this the source for activating/opening the skill with gold requirements only? or?
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
Re: Activate Skill without scroll - Source Code
Quote:
Originally Posted by
miseven01
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
Re: Activate Skill without scroll - Source Code
Re: Activate Skill without scroll - Source Code
Re: Activate Skill without scroll - Source Code
Sir, you can you include the button code. Thanks
- - - Updated - - -
http://i.imgur.com/2i6rvyR.png
Re: Activate Skill without scroll - Source Code
http://i.imgur.com/2i6rvyR.png
PHP Code:
Change this:
int(GLCONST_CHAR::lnSKILL_PREREQ[skill_id.wMainID][skill_id.wSubID])
To this:
int(GLSkillMan::GetInstance().GetData ( skill_id.wMainID, skill_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_QUESTION, YESNO, MODAL_SKILL_LEVEL_UP_CONFIRM );
}
It's up to you if you'll gonna use this code. Because it has a bug haha
Re: Activate Skill without scroll - Source Code
Quote:
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_QUESTION, YESNO, MODAL_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 :(
Re: Activate Skill without scroll - Source Code
Just track the SNATIVEID of the skill and attach it inside like this
Quote:
SNATIVEID sSkillID = pSkill->m_sBasic.sNativeID; // This is the skill id for example
GLGaeaClient::GetInstance().GetCharacter()->ReqNonInvenSkill ( sSkillID );
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
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..
Re: Activate Skill without scroll - Source Code