Question: Adding New Sprites For Spells

Discussion about Helbreath Server Files.
Post Reply
xAndrewx
just visiting
Posts: 4
Joined: Sat Feb 11, 2006 7:23 pm

Post by xAndrewx »

Hello!
I would like to start out with thanking you for taking the time to view this post.
*[I know how to add spells, I just need the additional sprite add-on]

I would like to know exactly how adding a completely new sprite for a spell is done. My friend has made two very nice sprites for spells [Will not be shown] and we could not figure out a way how to add them into the server.

The only way that we could figure out is by replacing some sprites for spells with these spells. This would, however, remove the former spell. I am not entirely sure that this would work either, because of the strict size limitation.

A simple alternative would be best, but I'm not to sure there is one.

I'm pretty sure that it could be done by coding the HGServer, and we could possibly figure that out [My friend and I are begginning self-taught C++ programmers].

To sum everything up, I'd like to know what would need to be done. If coding is necessary, please inform me on everything that needs to be coded [if we need to code more than just the HGServer]. Detailed information will be greatly appreciated!

Thank you once again!

Yours truly,
Andrew
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

spell images are 100% client side, and are done using the spell #+99 in the cfg

Magic missle is effect 100, or spell # 1 in the magic cfg (this is just so you have a point of reference)

functions to add the spell

void CGame::DrawEffects()

void CGame::DrawEffectLights()

BOOL CGame::bEffectFrameCounter()

void CGame::bAddNewEffect(short sType, int sX, int sY, int dX, int dY, char cStartFrame, int iV1)

basically look at things in all of those functions, things might not be needed in all of them, or there might be more but that should be a start as to where to look since i dont think anyone else has a constuctive post anywhere on spell coding
-><-
xAndrewx
just visiting
Posts: 4
Joined: Sat Feb 11, 2006 7:23 pm

Post by xAndrewx »

Thanks :D

Without that I'd be ending up coding a completely wrong thing lol
Post Reply