[CODE]Guns

From: Demond LaZaro (demond@TOLKIEN.REALMS.ORG)
Date: 12/02/97


Hello again,
I'm looking to make a type of guns.  I've looked at the fireweapons code
and don't like it BUT I like the idea of needing ammo what I want to do is
in do_hit (I think) add a case like:

if (eq_wieled && is_fireweapon) {
   if (OBJ_NUM3 > 0) {
     OBJ_NUM3 -= 1;
     damage == OBJ_NUM1 d OBJ_NUM2;
   } else {
     send_to_char("Click, click click, you're out of ammo", ch);
     break;
   }
}

Yes I know that the pointers are wrong (I haven't yet fiddled with it),
but I was wondering if anyone had done something like this for say
crossbows?

Thanx,
Demond


Btw: Is my sig an [AD]??

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name: Demond LaZaro the Implementor     Phone: 1-505-776-8866
Mud: Master's Realm Mud                 Code Base: CircleMud
Addy: realms.org 6969                   Addy2: 206.185.32.8 6969
Fax: None (yet :\)                      E-mail: demond@realms.org
Web Page: http://master.bevy.com/mrealm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST