Locobans Skill System

All Helbreath Server Source Discussion here.
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Hey locobans i been playing your server and its kind cool and the thing that i most like was the

Code: Select all

/getskills
if you can share to all this community the CODE for that Skill System your my daddy :lol:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Pener
Member
Posts: 110
Joined: Fri Feb 27, 2004 3:57 pm
Location: Czech Republic

Post by Pener »

maybe something like this ?




game.h

Code: Select all

void PlayerOrder_GetSkills(int iClientH);
game.cpp

Code: Select all


  if (memcmp(cp, "/getskills", 10) == 0) {
  	PlayerOrder_GetSkills(iClientH);
  	return;

  }

Code: Select all

void CGame::PlayerOrder_GetSkills(int iClientH) {
{
int i;
char buff [100];
char cItemName[20];
int ipoints;
if (m_pClientList[iClientH] == NULL) return;
  ipoints = m_pClientList[iClientH]->m_cSkillMastery;
  PutLogList(buff);
  if (ipoints > 0) return;
   m_pClientList[iClientH]->m_cSkillMastery = 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100; 
   wsprintf(buff,"Your Skills are all 100 now");
   ShowRepNotice(iClientH,buff); 
   return;
   }
}

but im not sure about that :rolleyes: m_cSkillMastery = 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100;
<img src='http://i19.photobucket.com/albums/b153/s00pr/Pener.jpg' border='0' alt='user posted image' /><br><img src='http://i19.photobucket.com/albums/b153/ ... anner3.jpg' border='0' alt='user posted image' />
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

What about if the skill limit is set to 1500 or 2000 in settings.cfg ? I will disconnect you for hacking attempt.

I think this would be better to code it that it only gives you 100% to the skills you are able to use (a pure war don't care about 100% magic or 100% alchemy, a pure mago won't use Mining, Manuf, long swords, short swords...).


i don't code with C++ but i made a php script with javascript functions that check this value, compare it with the skills you are trying to increase and says you if you go over the character-skill-limit. Maybe you can use functions like this in the game.cpp and improve it a little to set only the most usefull skills to 100%.


It should do something like this, using character-skill-limit value

Code: Select all

get the character-skill-limit (will call it $skill_limit)
get the character-stats-limit (will call it $stats_limit)
get the character STR, DEX, INT, MAG in an array (will call it $char_stats)

If the $skill_limit is > 100 * the number of skills in the game (18, without counting the ??? skills), then you can raise all skills to 100%

else

sort the $char_stats array numerically, bigger stat in first

then make a switch on the first value of the array ($charstats[1])
in case the first value is STR or DEX, and this value is at least 50% of $stats_limit (ex: STR > 100 on a server with 200 max stats), the char must be a warrior, or fencer
in case the first value is MAG or INT, the char must be a mago
in case there is no value >= $stats_limit/2 the char can be a bmage or a kind of paladin, or a low level player

Now you know what's the char class, so set his usefull skills to 100% while total skills points don't reach the $skill_limit allowed by the server. If the stats are not high enough, display a small msg to explain to the player that he would train a little before havin' easy way 100% skills
Add some cases in the switch for Bmages, Paladins, and select the skills that would be set to 100% for each class, sort what skill have to be raised with priority before reaching the $skill_limit... This way i would always work, even if you set character-skill-limit to 700 or 3000, and set only the most usefull skills to 100% if you can't have all of them 100%
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

diuuude wrote: What about if the skill limit is set to 1500 or 2000 in settings.cfg ? I will disconnect you for hacking attempt.

I think this would be better to code it that it only gives you 100% to the skills you are able to use (a pure war don't care about 100% magic or 100% alchemy, a pure mago won't use Mining, Manuf, long swords, short swords...).


i don't code with C++ but i made a php script with javascript functions that check this value, compare it with the skills you are trying to increase and says you if you go over the character-skill-limit. Maybe you can use functions like this in the game.cpp and improve it a little to set only the most usefull skills to 100%.


It should do something like this, using character-skill-limit value

Code: Select all

get the character-skill-limit (will call it $skill_limit)
get the character-stats-limit (will call it $stats_limit)
get the character STR, DEX, INT, MAG in an array (will call it $char_stats)

If the $skill_limit is > 100 * the number of skills in the game (18, without counting the ??? skills), then you can raise all skills to 100%

else

sort the $char_stats array numerically, bigger stat in first

then make a switch on the first value of the array ($charstats[1])
in case the first value is STR or DEX, and this value is at least 50% of $stats_limit (ex: STR > 100 on a server with 200 max stats), the char must be a warrior, or fencer
in case the first value is MAG or INT, the char must be a mago
in case there is no value >= $stats_limit/2 the char can be a bmage or a kind of paladin, or a low level player

Now you know what's the char class, so set his usefull skills to 100% while total skills points don't reach the $skill_limit allowed by the server. If the stats are not high enough, display a small msg to explain to the player that he would train a little before havin' easy way 100% skills
Add some cases in the switch for Bmages, Paladins, and select the skills that would be set to 100% for each class, sort what skill have to be raised with priority before reaching the $skill_limit... This way i would always work, even if you set character-skill-limit to 700 or 3000, and set only the most usefull skills to 100% if you can't have all of them 100%
lol who cares about having 100% in all the availible skills, its a private server if your going to get all of the skills from a PHP anyways whats the difference in just creating a code for it, all u would have to do is just put 0 on the non usable ones or something if u were worried about having every single one 100%, besides it only takes like 3 seconds to open up your settings file, change the limit, save it and close it, instead of trying to complicate simple things just go with the easy stuff, it makes it alot easier on everybody but I guess if u felt like adding /skills-bmage /skills-warrior and all that bs to your server then go for it but if it was me I would prefer a simple /skills and your done, even if I wont use half the skills its better than bothering with other commands, but yea anyways thx pener for the guidance to some ppl...but I still in a way think if ppl cant write that small bit of C++ what are they doing in the sources anyways....I get irritated from ignorance...
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

this sould work just fix the 1 error its
Game.cpp(58034) : error C2061: syntax error : identifier 'm_pClientList'

ill mess around with it when i get home

Code: Select all

void CGame::PlayerOrder_GetSkills(int iClientH) {
{
char buff [100], cItemName[21];
int i, ipoints;
if (m_pClientList[iClientH] == NULL) return;
 m_pClientList[iClientH]->m_cSkillMastery;
 PutLogList(buff);
 if (ipoints > 0) return;
 if m_pClientList[iClientH]->m_cSkillMastery[i] > 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 0 0 0 100 0 100 0 100 0 0 0 3 20 24 0 24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
 wsprintf(buff,"Your Skills are all 100 now");
  ShowRepNotice(iClientH,buff); 
  return;
  }
} 
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pener
Member
Posts: 110
Joined: Fri Feb 27, 2004 3:57 pm
Location: Czech Republic

Post by Pener »

i made this code only for him :D didnt test it if works :D
<img src='http://i19.photobucket.com/albums/b153/s00pr/Pener.jpg' border='0' alt='user posted image' /><br><img src='http://i19.photobucket.com/albums/b153/ ... anner3.jpg' border='0' alt='user posted image' />
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

i know but i saw it hade errors so i try to fix mosted of them whiel i wasnt bissy it hade abotu 68 errors now there 1 so yea
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Nice work people :lol: i'm having it on my hands :lol: but it will be better if Locobans post's the

Code: Select all

CODES
hes an egoist ... people gives him things and he doesn't give nothing to any one
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

like many others... but loco cry on many other forums to get some codes ... and even if people gives him some good stuff he won't share any of his "wonderful" additions
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Um...not really...it's just i cannot give what's not mines...

If that skills system was coded by XXX person.

I cannot release it if that person doesn't agree.
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
DarkStaff
noob
Posts: 19
Joined: Fri Jul 22, 2005 7:54 pm

Post by DarkStaff »

Acidx coded it. Acidx is done with helbreath so just release it.


Twist.
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

DarkStaff wrote: Acidx coded it. Acidx is done with helbreath so just release it.


Twist.
Is his work...tell HIM to release it.
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

If you have it, it must have been released at least once no ? If you give credits... i don't know why you shouldn't share it.

I don't improve myself the server source and i don't run any private server, so i won't steal this code to release it wherever else. I'm just looking around to take a look at some server source improvements


And why asking Acidx to release it ? He's out of HB private servers community now.
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

It's his WORK, his CHOICE the fact that he ain't on hb anymore i don't care.

Too bad that's my way of living...besides i ain't asking you to like it B)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Dear Santa-Locobans ... for what i see you are older than me and i know that you are a good person but ... i thought you were cooler before you owned people and now you stink like Poo-Poo ... i think you should be an Pornograpich Movie maker and make a new life ... not HelbreatH all the time ... please Loco-Santa Ten Cuidado Amigo mio tu solo encuentras leña la la la ... i love that song :lol:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Post Reply