[Src] Rep Potions

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 »

Ok Just like i made For HBRemixed here is the rep pots..
This is simple code i made it from just looking at the CritPotion code submitted by whoever it was...

in item.h find
DEF_ITEMEFFECTTYPE_ARMORDYE
add this bellow

Code: Select all

#define DEF_ITEMEFFECTTYPE_REPPLUS   34
Now in Game.CPP Search and find case DEF_ITEMEFFECTTYPE_HPSTOCK:
Right above that add this

Code: Select all

case DEF_ITEMEFFECTTYPE_REPPLUS:
  iMax = 10000;
  if (m_pClientList[iClientH]->m_iRating < iMax) m_pClientList[iClientH]->m_iRating += 1;
  iEffectResult = 8;
  break;
Now Search and find
case 6: // EXP
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_SLATE_EXP, NULL, NULL, NULL, NULL);
break;

Now bellow there Add

Code: Select all

  case 8:
 char cRepMessage[60];
 wsprintf(cRepMessage,"You have Earned 1 Rep. Point");
 ShowClientMsg(iClientH,cRepMessage, 10);
  break;
Now this is taking into consideration you have the CritPot code if you do just add it all bellow the critpot codes instead if not it wont matter anyways... Now You need the item code for it

Code: Select all

Item = 295 RepPotion 7 0 34 4 8 120 0 0 0 1 0 6 106 65 100 -1 0 0 0 0 0 -1 21 0
There ya go you can make repcandy if you want also
Thanx to the person who made critpot code also for a refrence.
<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>
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

same as crit candy. just change m_iSuperAttackLeft += 1 to m_1Rating += 1 i made ek candy on my serv for event prices u can do like commands...
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Post Reply