Anyways to the source..
This is my version of /contrib mine is diffrent you dont need to logout to get the contrib its updated in game instant hehe i think its is overall better.
And as of now it can only be used one time untill they use all of the contrib points hehe.. so here it is
Use:
/contrib
Server: You got 2000 Contrib.
2000 Contrib is added to your character...
/*========in Game.CPP add =====*/
Code: Select all
/*======ContribScript=====/contrib==By-Acidx==*/
void CGame::Player_OrderContrib(int iClientH)
{/*An Acidx Production - Last Updated Sept.06, 2006 - By Acidx*/
char cMessage[255];
ZeroMemory(cMessage, sizeof(cMessage));
if (iClientH != NULL)
if (m_pClientList[iClientH]->m_iContribution > 100)
{
wsprintf( cMessage ,"Error. You can only use this 1 time");
ShowClientMsg(iClientH, cMessage);
}else
{
wsprintf( cMessage ,"2000 Contrib Has been Added To Your Character");
ShowClientMsg(iClientH, cMessage);
m_pClientList[iClientH]->m_iContribution += 2000;
//Lmao Hack us a notify message to Activly update it in game without needing to logout jaja owned+1 - Acidx
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_QUESTREWARD, 4, 1, m_pClientList[iClientH]->m_iQuestRewardAmount,
"Script By Acidx", m_pClientList[iClientH]->m_iContribution);
}
}
/*===== in Game.CPP inside ChatMsgHangler====*/
Code: Select all
if (memcmp(cp, "/contrib", 8) == 0){
Player_OrderContrib(iClientH);
return;
}
/*===== In Game.H ======*/
Code: Select all
void Player_OrderContrib(int iClientH);
Enjoy!.. If you make any changes/additions please post and share with the community!
-Acidx