[Src]->getskills

Codes already submitted by people of the forums.
Post Reply
Acidx
Member
Posts: 198
Joined: Tue Mar 23, 2004 4:27 am

Post by Acidx »

oOoOoOok!
As promised ladys and gentleman the original /getskills from HB-Archaic i know theres already one that is pretty nicely coded here but theres nothing like the original, also ill show you guys how we fixed the majestic exploit to where u could lower ur stat to keep the 100%...

the use:
/getskills
You recieve 100% skills in what you are accountable for such as
50 dex = 100% Longsword,shortsword,ect.
50 mag = 100% magic,ect.

When the player logs in it will auto perform /getskills so he doesnt cheat my system =D

Here you all go, Props for loco for recovering the original code <3 loco


/*=========In Game.CPP ADD============*/

Code: Select all

/*============SetSkillAll===========/getskills=======*/
void CGame::SetSkillAll(int iClientH)
//an Acidx Productions - Last Updated July 04,2005
//SetSkillAll Acidx Command,  Added July 04, 2005 INDEPENDENCE BABY Fuck YEA
{
if (m_pClientList[iClientH] == NULL) return;
//Magic
if  (m_pClientList[iClientH]->m_cSkillMastery[4]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[4] = m_pClientList[iClientH]->m_iMag *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[4] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[4] = 100;
  }
  if (m_pClientList[iClientH]->m_iMag > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[4] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 4, m_pClientList[iClientH]->m_cSkillMastery[4], NULL, NULL);

}
//LongSword
if  (m_pClientList[iClientH]->m_cSkillMastery[8]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[8] = m_pClientList[iClientH]->m_iDex *2;

  if (m_pClientList[iClientH]->m_cSkillMastery[8] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[8] = 100;
  }
  if (m_pClientList[iClientH]->m_iDex > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[8] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 8, m_pClientList[iClientH]->m_cSkillMastery[8], NULL, NULL);

}
//Hammer
if  (m_pClientList[iClientH]->m_cSkillMastery[14]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[14] = m_pClientList[iClientH]->m_iDex *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[14] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[14] = 100;
  }
  if (m_pClientList[iClientH]->m_iDex > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[14] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 14, m_pClientList[iClientH]->m_cSkillMastery[14], NULL, NULL);

}
//Axes
if  (m_pClientList[iClientH]->m_cSkillMastery[10]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[10] = m_pClientList[iClientH]->m_iDex *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[10] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[10] = 100;
  }
  if (m_pClientList[iClientH]->m_iDex > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[10] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 10, m_pClientList[iClientH]->m_cSkillMastery[10], NULL, NULL);

}
//hand attack
if  (m_pClientList[iClientH]->m_cSkillMastery[5]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[5] = m_pClientList[iClientH]->m_iStr *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[5] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[5] = 100;
  }
  if (m_pClientList[iClientH]->m_iStr > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[5] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 5, m_pClientList[iClientH]->m_cSkillMastery[5], NULL, NULL);

}
//ShortSword
if  (m_pClientList[iClientH]->m_cSkillMastery[7]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[7] = m_pClientList[iClientH]->m_iDex *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[7] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[7] = 100;
  }
  if (m_pClientList[iClientH]->m_iDex > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[7] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 7, m_pClientList[iClientH]->m_cSkillMastery[7], NULL, NULL);

}
//archery
if  (m_pClientList[iClientH]->m_cSkillMastery[6]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[6] = m_pClientList[iClientH]->m_iDex *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[6] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[6] = 100;
  }
  if (m_pClientList[iClientH]->m_iDex > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[6] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 6, m_pClientList[iClientH]->m_cSkillMastery[6], NULL, NULL);

}
//Fencing
if  (m_pClientList[iClientH]->m_cSkillMastery[9]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[9] = m_pClientList[iClientH]->m_iDex *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[9] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[9] = 100;
  }
  if (m_pClientList[iClientH]->m_iDex > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[9] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 9, m_pClientList[iClientH]->m_cSkillMastery[9], NULL, NULL);

}
//Staff Attack
if  (m_pClientList[iClientH]->m_cSkillMastery[21]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[21] = m_pClientList[iClientH]->m_iInt *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[21] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[21] = 100;
  }
  if (m_pClientList[iClientH]->m_iInt > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[21] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 21, m_pClientList[iClientH]->m_cSkillMastery[21], NULL, NULL);

}
//shield
if  (m_pClientList[iClientH]->m_cSkillMastery[11]< 100)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[11] = m_pClientList[iClientH]->m_iDex *2;
  if (m_pClientList[iClientH]->m_cSkillMastery[11] > 100)
  {
  m_pClientList[iClientH]->m_cSkillMastery[11] = 100;
  }
  if (m_pClientList[iClientH]->m_iDex > 50) 
  {
  m_pClientList[iClientH]->m_cSkillMastery[11] = 100;
  }
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 11, m_pClientList[iClientH]->m_cSkillMastery[11], NULL, NULL);

}
//mining
if  (m_pClientList[iClientH]->m_cSkillMastery[0]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[0] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 0, m_pClientList[iClientH]->m_cSkillMastery[0], NULL, NULL);

}
//fishing
if  (m_pClientList[iClientH]->m_cSkillMastery[1]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[1] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 1, m_pClientList[iClientH]->m_cSkillMastery[1], NULL, NULL);

}
//farming
if  (m_pClientList[iClientH]->m_cSkillMastery[2]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[2] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 2, m_pClientList[iClientH]->m_cSkillMastery[2], NULL, NULL);

}
//alchemy
if  (m_pClientList[iClientH]->m_cSkillMastery[12]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[12] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 12, m_pClientList[iClientH]->m_cSkillMastery[12], NULL, NULL);

}
//manufacturing
if  (m_pClientList[iClientH]->m_cSkillMastery[13]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[13] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 13, m_pClientList[iClientH]->m_cSkillMastery[13], NULL, NULL);

}
//poison resistance
if  (m_pClientList[iClientH]->m_cSkillMastery[23]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[23] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 23, m_pClientList[iClientH]->m_cSkillMastery[23], NULL, NULL);

}
//pretend corpse
if  (m_pClientList[iClientH]->m_cSkillMastery[19]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[19] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 19, m_pClientList[iClientH]->m_cSkillMastery[19], NULL, NULL);

}
//magic resistance
if  (m_pClientList[iClientH]->m_cSkillMastery[3]< 20)
{
  // now we add skills
  m_pClientList[iClientH]->m_cSkillMastery[3] = 20;
  //Send a notify to update the client
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SKILL, 3, m_pClientList[iClientH]->m_cSkillMastery[3], NULL, NULL);

}
//Acidx (c)
}

/*====in Game.CPP at the end of InitPlayerData();====*/

Code: Select all

//Performs SetSkills on Login so they cant cheat us - acidx
SetSkillAll(iClientH);

/*====In Game.h====*/

Code: Select all

void SetSkillAll(int iClientH);[code]

/*====in Game.CPP inside ChatMsgHandler();====*/
[code]
if (memcmp(cp, "/getskills", 10) == 0) {
  	SetSkillAll(iClientH);
  	return;
  }

Enjoy! and As always, Post any Additions/Changes if you wanna and share with the community <3
- Acidx
<b>-<span style='color:green'>ACiD-x </span><span style='color:red'> Owning PCs Since 1987</span><br><img src='http://img204.imageshack.us/img204/2245/hackertf5.gif' border='0' alt='user posted image' /><br><img src='http://img509.imageshack.us/img509/6697 ... 4sc4ed.png' border='0' alt='user posted image' /><br><span style='color:orange'>i am Pwn NetGAYLORDS !</span></b><br><span style='color:blue'><br>I Pwn HBUSA =)</span>
DeathFangX
noob
Posts: 22
Joined: Wed Apr 28, 2004 8:56 pm

Post by DeathFangX »

gives 1 error and 4 warnings

D:\SOURCES\Server_SRC_\Game.cpp(492) : error C2601: 'SetSkillAll' : local function definitions are illegal

D:\SOURCES\Server_SRC_\Game.cpp(2295) : warning C4305: '=' : truncation from 'const int' to 'char'

D:\SOURCES\Server_SRC_\Game.cpp(2295) : warning C4309: '=' :
truncation of constant value

D:\SOURCES\Server_SRC_\Game.cpp(9044) : warning C4305: '=' : truncation from 'const int' to 'short'

D:\SOURCES\Server_SRC_\Game.cpp(9044) : warning C4309: '=' : truncation of constant value
projectx
Loyal fan
Posts: 201
Joined: Sun Jul 16, 2006 12:01 pm

Post by projectx »

Fix em then ..
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

If your source sucks. You will get many errors.
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
Sprint
Spamtastic
Posts: 1000
Joined: Tue Jun 06, 2006 6:59 am
Location: Far from home
Contact:

Post by Sprint »

Added to snippets section :)
<span style='color:blue'><span style='font-size:19pt;line-height:100%'><u><b>FUCK Helbreath!</b></u></span></span><br><br><span style='color:gray'><a href='http://www2.analystica.com/users/anttu/online/ngd' target='_blank'>ngdnetwork</a> OFFICIAL WEBSITE OF Northern Game Developers. Do visit! (THEY ARE UP!)<br><a href='http://project3d.x.am' target='_blank'>Project3d development forum</a> plz join and discuss,develop,give ideas,feedback. Anything goes as long it helps the project!</span><br><br>Zepto Znote 6625WD: 1.8Ghz dual core, 2GB, 512mb graphics card(dedicated), 160GB HDD<br><img src='http://www.signaturebar.com/uploads/images/10111.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/13229.jpg' border='0' alt='user posted image' /><br><img src='http://www.signaturebar.com/uploads/images/8852.png' border='0' alt='user posted image' />
Post Reply