Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Weapon material immunities (http://www.topmudsites.com/forums/showthread.php?t=5687)

riayi 09-05-2009 06:19 PM

Weapon material immunities
 
Hello. I installed a FirstMud server, and have modified it a bit. I want to get imms/res/vulns to weapon materials working, and have churned out some code. In handler.c I've got this:
In fight.c, the damage modifier is checked like so:
In defines.h, I set up material types (I think):
And lastly, in proto.h, the check_material function is defined:
I've just begun coding, and I'm using the functions already in place, as well as whatever I can find on the net, to guide my modifications. I have managed to achieve most of what I've started, but right now the compiler complains that The referenced line is the first one from fight.c: I'd appreciate any help anyone could give me. Thanks in advance!

Newworlds 09-09-2009 10:50 AM

Re: Weapon material immunities
 
Your CharData is a string pointer and your ObjData is an object pointer. You can't do that without a Mixed array.


All times are GMT -4. The time now is 10:50 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022