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
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;
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;
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
Thanx to the person who made critpot code also for a refrence.