[SRC] Add new effects for Magic spells

Codes submitted by developers and people of outpost. Come here to get codes for your client sources.
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

<a href='http://rapidshare.com/files/10840082/Ne ... s.rar.html' target='_blank'>NewEffects</a>:D sup ppl

well this is the code

Image

first u need download new sprites



Now extract then in SPRITE folder

CLIENT SRCS (3.82)

1.- open game.cpp and search

Code: Select all

MakeEffectSpr( "effect12",  148, 4, FALSE)
after this add

Code: Select all

MakeEffectSpr( "effect14",  168, 10, FALSE);
Now client read effect14.pak file.


2.- in func bAddNewEffect search:

Code: Select all

case 196:

and after this case add:

Code: Select all

case 197: // Nueva magia 
m_pEffectList[i]->m_cMaxFrame   = 17; 
m_pEffectList[i]->m_dwFrameTime = 40; 
lPan = -(((m_sViewPointX / 32) + 10) - dX)*1000; 
PlaySound('E', 49, sDist, lPan); 
break; 

3.- in func DrawEffects search:

Code: Select all

case 196:
and after this case add:

Code: Select all

case 197: // Nueva Magia 
dX  = (m_pEffectList[i]->m_dX*32)  - m_sViewPointX; 
dY  = (m_pEffectList[i]->m_dY*32)  - m_sViewPointY; 
m_pEffectSpr[171]->PutTransSprite(dX, dY, m_pEffectList[i]->m_cFrame, dwTime, 0); 
break; 

4.-in bEffectFrameCounter func search:

Code: Select all

case 195:
and after this case add:

Code: Select all

case 197:

5.-in magicfg

add

Code: Select all

magic = 97  Black-Hole          23  0     0     59         2  2          5 6  12    0 0 0     4  0  0         60 4200   1    

in hb contents add

Code: Select all

magic = 97   Black-Hole                   59     60     4200      4 5 6      1 
"Prefiero morir de pie que vivir arrodillado"
molo
Member
Posts: 140
Joined: Mon Jan 17, 2005 1:19 am

Post by molo »

thanks for the share.. :)
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Nice, I've been wondering how to do this. I'll now be able to post some of my new sprites =)

Question: How does it find the exact sprite you want it to use? Wouldn't you have to do something Server Side as well?

This also now means, new sprites/colors can be added into Helbreath. Now, someone should research how to add new NPC.. =D
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

ADDKiD wrote: This also now means, new sprites/colors can be added into Helbreath. Now, someone should research how to add new NPC.. =D
You fucking retard. You're about 5 years behind everyone.
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>
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

ADDKiD wrote: Nice, I've been wondering how to do this. I'll now be able to post some of my new sprites =)

Question: How does it find the exact sprite you want it to use? Wouldn't you have to do something Server Side as well?

This also now means, new sprites/colors can be added into Helbreath. Now, someone should research how to add new NPC.. =D
look this code

Code: Select all

MakeEffectSpr( "effect14",  168, 10, FALSE);
effect14 is the name of pak file

168 is the specific sprite number
why 168? bcoz if u search the last sprite is
MakeEffectSpr( "yseffect3", 152,16, FALSE); // Fumerolles ou ame qui s'envole

152+16= 168

168 new sprite chain


10 is the number of effects inside the pak file
"Prefiero morir de pie que vivir arrodillado"
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Dax wrote:
ADDKiD wrote: This also now means, new sprites/colors can be added into Helbreath. Now, someone should research how to add new NPC.. =D
You fucking retard. You're about 5 years behind everyone.
Aww, Shit someone realized that. Fuck you dax, why you gotta ruin my fun? Oh well, HB ain't everything.

Edit: Basically, ogeid, you're telling me that I could use this, and just re-create new spells with it, or do I have to change a bunch of shit for it to work?
molo
Member
Posts: 140
Joined: Mon Jan 17, 2005 1:19 am

Post by molo »

ok guys i have problem.. sorry for this..

when i put this code in Magic.cfg

Code: Select all

magic = 97  Black-Hole          23  0     0     59         2  2          5 6  12    0 0 0     4  0  0         60 4200   1  
Server wont read magic.cfg... i dont know why.. but when i took it out it read.. somthing wrong with this...

but i try different way.. at last 3 Numbers Example... 60 4200 1.. i put one more # at the back and it works.. Example.. 60 4200 1 1

but when i go in game and cast the spell it fails.. fails.. keep failing.. :S i try to add 2 but same problem.. if anyone has any idea.. please help me out..

thanks, peace
uusmart
noob
Posts: 23
Joined: Sun Aug 08, 2004 4:46 pm

Post by uusmart »

no!! the effect is i do it!!
ogeid! who r u ?

<a href='http://www.iscgame.com/iscgame/web/magic.html' target='_blank'>http://www.iscgame.com/iscgame/web/magic.html</a>
HatoL
Member
Posts: 151
Joined: Sun Jul 25, 2004 12:16 pm
Contact:

Post by HatoL »

uusmart wrote: no!! the effect is i do it!!
ogeid! who r u ?

<a href='http://www.iscgame.com/iscgame/web/magic.html' target='_blank'>http://www.iscgame.com/iscgame/web/magic.html</a>
the links doesn't work.
Pener
Member
Posts: 110
Joined: Fri Feb 27, 2004 3:57 pm
Location: Czech Republic

Post by Pener »

uusmart wrote: no!! the effect is i do it!!
ogeid! who r u ?

<a href='http://www.iscgame.com/iscgame/web/magic.html' target='_blank'>http://www.iscgame.com/iscgame/web/magic.html</a>
u do it, we use it... hahaha :-D
<img src='http://i19.photobucket.com/albums/b153/s00pr/Pener.jpg' border='0' alt='user posted image' /><br><img src='http://i19.photobucket.com/albums/b153/ ... anner3.jpg' border='0' alt='user posted image' />
ogeid
Member
Posts: 110
Joined: Thu Feb 02, 2006 11:11 pm

Post by ogeid »

omg pener....thats ur sister?
"Prefiero morir de pie que vivir arrodillado"
molo
Member
Posts: 140
Joined: Mon Jan 17, 2005 1:19 am

Post by molo »

well, i didnt get any help i ask for.. anyone? :S
Pener
Member
Posts: 110
Joined: Fri Feb 27, 2004 3:57 pm
Location: Czech Republic

Post by Pener »

ogeid wrote: omg pener....thats ur sister?
she was my girlfriend, now my best friend:)
<img src='http://i19.photobucket.com/albums/b153/s00pr/Pener.jpg' border='0' alt='user posted image' /><br><img src='http://i19.photobucket.com/albums/b153/ ... anner3.jpg' border='0' alt='user posted image' />
Kenshi
Loyal fan
Posts: 208
Joined: Thu Nov 20, 2003 8:27 am

Post by Kenshi »

shes fuckin ugly man lol i have to say now, i thought it was actually her on here so i decided not to say anything to not hurt her feelings. but man, you're sick lol
get rooted.
-apok-
Regular
Posts: 48
Joined: Sat Nov 06, 2004 1:59 am
Location: Australia

Post by -apok- »

pwned
<img src='http://i39.photobucket.com/albums/e160/ ... gycopy.png' border='0' alt='user posted image' />
Post Reply