Kesterk need 200 int code

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
Eike
just visiting
Posts: 7
Joined: Sun Apr 08, 2007 9:50 am

Post by Eike »

Hi i need that KlonessEsterk needs 200 int to wear it i made this code but it does not work so can somene correct it plz. I add this code to game.ccp do i have to add something else to somewhere to make it work ???

Code: Select all

	if (cEquipPos == DEF_EQUIPPOS_RHAND) {
			// KEsterk
			if (m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 851) {
			if((m_pClientList[iClientH]->m_iInt + m_pClientList[iClientH]->m_iInt) < 200){
			SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ITEMRELEASED, m_pClientList[iClientH]->m_iSpecialAbilityEquipPos, sItemIndex, NULL, NULL);
			ReleaseItemHandler(iClientH, sItemIndex , TRUE);
			return FALSE;
   			       }
  		      }
	        }
1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

You can do that by normal Item.cfg Editing...
Eike
just visiting
Posts: 7
Joined: Sun Apr 08, 2007 9:50 am

Post by Eike »

i think i cant do that in item cfg but when you know how to do it then plz do it for me

Item = 851 KlonessEsterk 1 8 1 6 10 2 6 12 2 5000 0 1 27 -6000 5000 18 5 0 0 0 0 8 1 0
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

Eike wrote: i think i cant do that in item cfg but when you know how to do it then plz do it for me

Item = 851 KlonessEsterk 1 8 1 6 10 2 6 12 2 5000 0 1 27 -6000 5000 18 5 0 0 0 0 8 1 0
Item = 851 KlonessEsterk 1 8 1 6 10 2 13 200 2 5000 0 1 27 -6000 5000 18 5 0 0 0 0 8 1 0
Eike
just visiting
Posts: 7
Joined: Sun Apr 08, 2007 9:50 am

Post by Eike »

Got it with source allready but Thanks anyaway
Post Reply