On Thu, 27 Aug 1998 12:33:48 PDT "Ryan [BossTone]"
<realitymud@HOTMAIL.COM> writes:
>Ok ammo is working great now... one problem.... it goes negitive after
>it reaches ammo-0
>
>once ammo reaches 0 it send the message "Click!" to the character...
>but
>now the ammo goes negitive and players have infinate ammo every time
>they kill somkthing it goes - another number... any ideas??
Just guessing here, but you need to put a check in the place with the
subtraction, something like:
if(GET_OBJ_VALUE(obj, 3) == 0){
send_to_char("Click!\r\n", ch);
return (some number exiting the code)
}
Mind sending me the code so I can take a look at it and see if anything
else might be causing it? Send it thru private e-mail, don't hafta
bother the list with it.
-Phillip
Phillip Ames | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335 | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html(Unfinished)
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
+------------------------------------------------------------+
| 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/15/00 PST