Civillian And Skill

All Helbreath Server Source Discussion here.
Post Reply
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

this is the formula for training weapon skill (how many times u need to use the skill to increase it by 1). edit the line in red according to ur preference.
int CGame::_iCalcSkillSSNpoint(int iLevel)
{
int iRet;

if (iLevel < 1) return 1;

if (iLevel <= 50)
  iRet = iLevel;
else if (iLevel > 50) {
  <span style='color:red'>iRet = ( iLevel * iLevel ) / 10;</span> }

return iRet;
}

this is the code that forces u to become a combatant after u hit lvl 100.
edit the word true in the red line to false(if u wan to let ur players stay as civillian)

it is under
BOOL CGame::bCheckLevelUp(int iClientH)
then scroll down a little and u can see
if (m_pClientList[iClientH]->m_iLevel > 100)
    if (m_pClientList[iClientH]->m_bIsPlayerCivil == TRUE)
    <span style='color:red'>ForceChangePlayMode(iClientH, TRUE);</span>



hehe. this just a little something for those who cant make heads or tails of the source. :P
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Nice ^_^
  case MSGID_REQUEST_CITYHALLTELEPORT:
    if (memcmp(m_pClientList[iClientH]->m_cLocation, "<span style='color:red'>aresden</span>",7) == 0 ) {
      RequestTeleportHandler(iClientH, "2  ", "<span style='color:red'>dglv2", 263, 258</span>);
    }
    else if (memcmp(m_pClientList[iClientH]->m_cLocation, "<span style='color:blue'>elvine</span>",6) == 0 ) {
      RequestTeleportHandler(iClientH, "2  ", "<span style='color:blue'>dglv2", 209, 258);</span>
    }
  break; 
Thats to change where will the telport from city hall teleports you.

See, aresden (red text) changes mapname and coords.
See, elvine (blue text) changes mapname and coords.

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>
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

ok lets use this topic to post bits of codes that ppl can easily edit.
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
bigchief
Loyal fan
Posts: 289
Joined: Sat Feb 28, 2004 12:45 pm
Location: In Chicks Rooms/Dorms Or Passed Out On The Floor
Contact:

Post by bigchief »

i did that for your hgserver locobans :P remember :)
Just remember if you shake it more then 3 times your playing with it.
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

bigchief wrote: i did that for your hgserver locobans :P remember :)
If you did i personally dont remember...lol...but you bigchief my hommie so i wont doubt you can do it ^_^

BigChief's skills owns ^_^
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>
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

Code: Select all

  	case MSGID_REQUEST_CITYHALLTELEPORT:
    if (memcmp(m_pClientList[iClientH]->m_cLocation, "aresden",7) == 0 ) {
      RequestTeleportHandler(iClientH, "2   ", "elvine", 170, 145);
    }
    else if (memcmp(m_pClientList[iClientH]->m_cLocation, "elvine",6) == 0 ) {
      RequestTeleportHandler(iClientH, "2   ", "aresden", 170, 145);
    }
  	break;

:rolleyes: :rolleyes: :rolleyes:
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Nice...elvine goes to aresden town and aresdens goes to elvine...save all the time walking tru middleland :D
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>
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

in game.h
#define DEF_TOTALLEVELUPPOINT <span style='color:red'>3</span>


if im not wrong this one determins how many stat points u get per lvl up.



also in game.h
#define DEF_LEVELLIMIT <span style='color:red'>20</span>
if im not wrong again, this one determins the level where travs must stop lvling.




*im just posting bits and pieces for those who cant understand source, dont flame me if u find this topic stupid.
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
morbid
Regular
Posts: 69
Joined: Fri Jul 30, 2004 4:28 pm

Post by morbid »

omar_omiez wrote: in game.h
#define DEF_TOTALLEVELUPPOINT <span style='color:red'>3</span>
if im not wrong this one determins how many stat points u get per lvl up.



also in game.h
#define DEF_LEVELLIMIT <span style='color:red'>20</span>
if im not wrong again, this one determins the level where travs must stop lvling.




*im just posting bits and pieces for those who cant understand source, dont flame me if u find this topic stupid.
you are wrong =)
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

coorect 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>
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

morbid wrote:
omar_omiez wrote: in game.h
#define DEF_TOTALLEVELUPPOINT <span style='color:red'>3</span>
if im not wrong this one determins how many stat points u get per lvl up.



also in game.h
#define DEF_LEVELLIMIT <span style='color:red'>20</span>
if im not wrong again, this one determins the level where travs must stop lvling.




*im just posting bits and pieces for those who cant understand source, dont flame me if u find this topic stupid.
you are wrong =)
wahahahahahahaha. correct it pls? dont just say wrong. ty.
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
morbid
Regular
Posts: 69
Joined: Fri Jul 30, 2004 4:28 pm

Post by morbid »

i dont know how to correct it... but i TESTED and dont work -.- dont flame me...
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Ummm i think it should be edited in client to lol :lol:
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>
Post Reply