[Src]->criticals

Codes already submitted by people of the forums.
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

this command gives +30 criticals and cost 3 Majestics

search (Game.cpp)

Code: Select all

  if (memcmp(cp, "/summonall ", 11) == 0) {
  	AdminOrder_SummonAll(iClientH, cp, dwMsgSize - 21);
  	return;
  }
AFTER ADD:

Code: Select all

  if (memcmp(cp, "/criticals",10) == 0) {
  	PlayerOrder_GetCrits(iClientH);
  	return;

  }
AT THE END OF FILE ADD:

Code: Select all

void CGame::PlayerOrder_GetCrits(int iClientH) {
	{
        if (m_pClientList[iClientH]->m_iGizonItemUpgradeLeft > 3) {
	m_pClientList[iClientH]->m_iSuperAttackLeft += 30;
        m_pClientList[iClientH]->m_iGizonItemUpgradeLeft -= 3;
  }
	}
}
Game.h

Add somewhere:

Code: Select all

	// Criticals by Kiruku
	void PlayerOrder_GetCrits(int iClientH);
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

it dont works if u got 3 majestic i works if u got 4 :D

Code: Select all

void CGame::PlayerOrder_Criticals(int iClientH)
{
	char cTradeSuccesufl1[256];

if (m_pClientList[iClientH] == NULL) return;
if(m_pClientList[iClientH]->m_iGizonItemUpgradeLeft > 4 && m_pClientList[iClientH]->m_iSuperAttackLeft < 2500){
	m_pClientList[iClientH]->m_iGizonItemUpgradeLeft -= 5;
	m_pClientList[iClientH]->m_iSuperAttackLeft += 30;
	wsprintf(cTradeSuccesufl1, "Majestic count decreased 5 point , you got 30 criticals hit");
	SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_NOTICEMSG, NULL, NULL, NULL, cTradeSuccesufl1);
	}
	
}
and 3 majestic is too low i think
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

Code: Select all

void CGame::PlayerOrder_GetCrits(int iClientH) {
{
       if (m_pClientList[iClientH]->m_iGizonItemUpgradeLeft > [b]2[/b]) {
m_pClientList[iClientH]->m_iSuperAttackLeft += 30;
       m_pClientList[iClientH]->m_iGizonItemUpgradeLeft -= 3;
 }
}
}


now it should work with 3 majestics i didnt know that the upper numbers needs to be smaller.... the number down is the cost the upper is how many u need for use right?

<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

you should add a check if criticals are higher then max and then set it to max criticals.
<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' />
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

its sux ;F Critical Candy rox :F
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

lol i made 2 majestics for 50 crits on hbchaos... or crit candy for 3 crits max crits with crit candy = 310... i love it :D
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

ya its nice bug better is criti candy and that command if i dont have mp bug i need crits i can buy in shop criti candy =] and if i have much mp i can get much crits :F
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

lool dont make crit candys can buy in shop Oo i let them be dropped thats nice monsters drop them not rare ... :D
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

if 1 criti candy = 1 criticals droped is sux ;F but in shop is better for nice cast :F
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

lolz 1 crit candy =3 crits u can change it look at the source ... and criticals in shop Suck
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Kiruku wrote: lolz 1 crit candy =3 crits u can change it look at the source ... and criticals in shop Suck
stop rambling on about this lol :rolleyes:
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

omg i know how to change how many crits u can get from criti candy ;<
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

omg ur my master ...

but do that ... if u try eat crit cany and u dont ahve 3 majestic it says " not enough majestic points" if u have them then it will give ur crits and decrease maejstic!
Slayer
&lt;3 bd long time
Posts: 947
Joined: Thu Mar 17, 2005 9:08 pm

Post by Slayer »

Treax2 wrote: omg ur my master ...

but do that ... if u try eat crit cany and u dont ahve 3 majestic it says " not enough majestic points" if u have them then it will give ur crits and decrease maejstic!
Reading is hard yesh?

this command gives +30 criticals and cost 3 Majestics

kkthxbai
<img src='http://i9.tinypic.com/2vs292h.jpg' border='0' alt='user posted image' />
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:green'>Thanks for the idea, I made one that requires Gold hehehe.</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
Post Reply