Removing Rep Loss

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
soul40k
Regular
Posts: 36
Joined: Thu Mar 11, 2004 2:04 am

Post by soul40k »

I've been looking through the stock server files at the NPC list and i could not see any variable answer to this quesiton:

Where does it state that Unicorns give you - rep for killing them?

So that led me to beleive that it is in the source code of the actual server.

Can anyone help me out?
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

soul40k wrote: I've been looking through the stock server files at the NPC list and i could not see any variable answer to this quesiton:

Where does it state that Unicorns give you - rep for killing them?

So that led me to beleive that it is in the source code of the actual server.

Can anyone help me out?
Void ApplyPKpenalty applys PKs to criminals and also send them to jail.

in void NpcKilledHandler Find
  case 32:
  m_pClientList[sAttackerH]->m_iRating -= 5;
  if (m_pClientList[sAttackerH]->m_iRating < -10000) m_pClientList[sAttackerH]->m_iRating = 0;
  if (m_pClientList[sAttackerH]->m_iRating >  10000) m_pClientList[sAttackerH]->m_iRating = 0;
  break;
32 = npc number for Unicorn :)
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>
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

you win :P
-><-
soul40k
Regular
Posts: 36
Joined: Thu Mar 11, 2004 2:04 am

Post by soul40k »

locobans wrote:
soul40k,Apr 6 2006, 12:32 PM wrote: Void ApplyPKpenalty applys PKs to criminals and also send them to jail.

in void NpcKilledHandler Find
case 32:
m_pClientList[sAttackerH]->m_iRating -= 5;
if (m_pClientList[sAttackerH]->m_iRating < -10000) m_pClientList[sAttackerH]->m_iRating = 0;
if (m_pClientList[sAttackerH]->m_iRating > 10000) m_pClientList[sAttackerH]->m_iRating = 0;
break;
32 = npc number for Unicorn :)
God dammit, PK.. I kept looking for EK.

Thank you, iRating is rep then I take it. And yea, i noticed the relationship before while looking for my answer with all the cases and their relation to the NPC.cfg's.
soul40k
Regular
Posts: 36
Joined: Thu Mar 11, 2004 2:04 am

Post by soul40k »

Thank you, I finally found everything and changed it, I have a few more questions as I can't find the immediate answer. How do you compile this HG source to the HG file, or how do you decompile a HG server into this source.

If you are willing to help i would greatly appreciate it. If you dont ahve time for my noob quesitons though I will continue looking for my answers :D

Thank you regardless.

Soul
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Open HGServer.dsw with your C++ programe (MSVS6.0) and choose Build HGserver.exe
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Tafka knows whats he speaks :lol:
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>
soul40k
Regular
Posts: 36
Joined: Thu Mar 11, 2004 2:04 am

Post by soul40k »

Dshaked wrote: Tafka knows whats he speaks :lol:
That, I am thankful for.

Last thing. Will these stock sources for 220 HG servers n such work with a 3.51 server? or are youguys still building up to 3.51.
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

They are building 3.51 client but sources are 2.24c yet.
Hypnotoad made 3.0 too. but HGsources work for any version, client version and main,world version must be same.
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
soul40k
Regular
Posts: 36
Joined: Thu Mar 11, 2004 2:04 am

Post by soul40k »

thank you.
Post Reply