[SRC] Crit Drain Ability

Codes already submitted by people of the forums.
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

Well this Ability drain 1 crit from the enemy... when enemy have 0 crits this stop drain and when you have max crits stop too :lol:

Search in iCalculateAttackEffect function

Code: Select all

if ((cAttackerType == DEF_OWNERTYPE_PLAYER) && (m_pClientList[sAttackerH] != NULL) && (m_pClientList[sAttackerH]->m_bIsSpecialAbilityEnabled == TRUE)) {
now look all the cases and add this one Before the last break

Code: Select all

      
case 6:// Crit Drain by Ogeid
      if (m_pClientList[sTargetH]->m_iSuperAttackLeft >= 1) { 
      if (m_pClientList[sAttackerH]->m_iSuperAttackLeft <= m_pClientList[sAttackerH]->m_iLevel /10){
      	
      m_pClientList[sAttackerH]->m_iSuperAttackLeft += 1;
      SendNotifyMsg(NULL, sAttackerH, DEF_NOTIFY_SUPERATTACKLEFT, NULL, NULL, NULL, NULL);
      m_pClientList[sTargetH]->m_iSuperAttackLeft -= 1;
      SendNotifyMsg(NULL, sTargetH, DEF_NOTIFY_SUPERATTACKLEFT, NULL, NULL, NULL, NULL);
          }
        }
      	break;
ABility Added! Now add Texts and all that shit to CLient

in client srcs

open Lang_eng.h and search


Code: Select all

#define	ON_KEY_UP36	"Ability that makes character untouchable: Can be used after %d sec"
and add before that

#define ON_KEY_UP45 "Ability Crit Drain: Can be used after %d sec"

and search

#define NOTIFY_MSG_HANDLER12 "You are untouchable for %d seconds!"
and add this b4 that
#define NOTIFY_MSG_HANDLER900 "Drain crits for %d seconds"


now search

Code: Select all

#define	NOTIFY_MSG_HANDLER17	"Ability that kills enemy at one time: Can use after %dMin"
and add before that

Code: Select all

#define	NOTIFY_MSG_HANDLER901	"Ability drain crits from the enemy: Puede usarse en %dMin"
search

Code: Select all

#define	NOTIFY_MSG_HANDLER26	"Ability that earns same HP as you decrease enemy's HP: Can use after %dSec"
and add be4 that

Code: Select all

#define	NOTIFY_MSG_HANDLER902	"Ability drain crits from the enemy: Can use after %dSec"

now in Game.cpp (CLIENT SRCS)

search

Code: Select all

case 5: wsprintf(G_cTxt, ON_KEY_UP33, i);
and add case

Code: Select all

case 6: wsprintf(G_cTxt, ON_KEY_UP45, i);
search

case 5: wsprintf(G_cTxt, NOTIFY_MSG_HANDLER9, sV3); break;//"

and add case

case 6: wsprintf(G_cTxt, NOTIFY_MSG_HANDLER900, sV3); break;//"

next add all the cases .....


Well this is all


:blink:

Code: Select all

Item = 1504 DrainCritRapier 1 8 24 2 6 1 6 4 0 5000 6 1 14 -25000 1100 6 3 0 0 60 0 9 1 9
"Prefiero morir de pie que vivir arrodillado"
SlammeR
Loyal fan
Posts: 219
Joined: Fri Nov 04, 2005 1:52 am
Location: Brazil

Post by SlammeR »

cool ;)
OWNED!<br><img src='http://img50.imageshack.us/img50/1386/p ... 3vsqn2.gif' border='0' alt='user posted image' /><br><br><img src="http://hbtop50.com/button.php?u=hbuonline" alt="Helbreath Top 50 - Keepin' it real." border="0" /><br><a href='http://www.hbuonline.net' target='_blank'>Helbreath United</a>
Psycho
Member
Posts: 116
Joined: Sat Jan 24, 2004 2:56 pm

Post by Psycho »

groso codigo boludo, te re sarpastye, muy creativo ;)



YoKo
<img src='http://img145.imageshack.us/img145/3999/firma1an0.jpg' border='0' alt='user posted image' />
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

Good job is work :))
sokol
Loyal fan
Posts: 228
Joined: Mon May 02, 2005 7:28 pm
Location: P(r)oland

Post by sokol »

another no needed shit for lame servers ^^
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

sokol wrote: another no needed shit for lame servers ^^
alteast they're contributing, what have you done?
sokol
Loyal fan
Posts: 228
Joined: Mon May 02, 2005 7:28 pm
Location: P(r)oland

Post by sokol »

Crossfade wrote:
sokol wrote: another no needed shit for lame servers ^^
alteast they're contributing, what have you done?
man i do lot of things but i cant find it there lol :o , anyway ask Dax what he got from me :P
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

sokol wrote:
Crossfade wrote:
sokol wrote: another no needed shit for lame servers ^^
alteast they're contributing, what have you done?
man i do lot of things but i cant find it there lol :o , anyway ask Dax what he got from me :P
dax can do alot, why's he need you? lol
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Cuz dax is lazy sometimes, plus, sokol offers somethings, might aswell take what you can...
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

nice... Good job.
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

ADDKiD wrote: Cuz dax is lazy sometimes, plus, sokol offers somethings, might aswell take what you can...
I havnt even opened what he sent me. I'd rather make my own toys :). Btw I like this code it's more then most ppl here can do. But still, I wouldnt use it and I havnt tested it either.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Kiruku
Loyal fan
Posts: 268
Joined: Wed Feb 22, 2006 12:00 pm
Contact:

Post by Kiruku »

ogeid thanks. i dont need your code but now i know how to make a new ability muhahaha
<img src='http://lichtdrache.lima-city.de/helbrea ... aramba.gif' border='0' alt='user posted image' />
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

well now i need help whit the special aura effect i dun know how add it!
"Prefiero morir de pie que vivir arrodillado"
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

ogeid wrote: well now i need help whit the special aura effect i dun know how add it!
add a new flag
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

noo i dont need add a new flag


i just wanna know how show the Special Ability Aura when i active my custom Abilityes
"Prefiero morir de pie que vivir arrodillado"
Post Reply