Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 09-05-2009, 06:19 PM   #1
riayi
New Member
 
Join Date: Aug 2009
Posts: 2
riayi is on a distinguished road
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!
riayi is offline   Reply With Quote
Old 09-09-2009, 10:50 AM   #2
Newworlds
Legend
 
Join Date: Aug 2007
Name: NewWorlds
Home MUD: New Worlds
Posts: 1,425
Newworlds will become famous soon enoughNewworlds will become famous soon enough
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.
Newworlds is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 05:30 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022