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


This is a discussion on "Gun Code" in the Top Mud Sites MUD Coding forum :

I installed the gun snippet on my mud. The snippet can be found here:http://islands.freehosting.net/guns.zip  It runs fine, but when in oedit (for weapons AND ammo) theres no values (v0, v1, v2 etc. I'm not very experienced in coding, but from my knowledge of code, the code for that is not in that snippet.  Can anyone confirm this, and if so is there anyway to add the values?  Any help is GREATLY appreciated....



You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today!

If you have any problems with the registration process or your account login, please contact us.

If you are a registered member of the old TMS forums, please click here
Reply
 
LinkBack Thread Tools
Old 07-10-2002, 12:16 AM   #1
Shadow
New Member
 
Join Date: Jul 2002
Posts: 12
Shadow is on a distinguished road
Send a message via AIM to Shadow
I installed the gun snippet on my mud. The snippet can be found here:http://islands.freehosting.net/guns.zip  It runs fine, but when in oedit (for weapons AND ammo) theres no values (v0, v1, v2 etc. I'm not very experienced in coding, but from my knowledge of code, the code for that is not in that snippet.  Can anyone confirm this, and if so is there anyway to add the values?  Any help is GREATLY appreciated.
Shadow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-10-2002, 05:17 PM   #2
Sainos
New Member
 
Join Date: Apr 2002
Posts: 8
Sainos is on a distinguished road
I don't know about this snippet, but in general, do this to change how things look in oedit: First open up olc_act.c.  Find the definition of show_obj_values.  You just need to add a case for the specific type of object: ie, case ITEM_GUN, or whatever it is in the snippet.  Take a look at the other cases, and build how it looks in oedit using them as a guide: it shouldn't need changed too much from the other cases.

Then for players, find spell_identify, and do the same thing: add a case statement, or two, or however many you need, to the switch.

Don't forget do_ostat as well.
Sainos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools


Gun Code - Similar Threads
Thread Thread Starter Forum Replies Last Post
um..how do I code? Asalyt MUD Coding 12 05-26-2004 05:03 AM
mprog src code Titania MUD Coding 0 04-12-2003 08:02 PM
Paradox Code Jayl MUD Coding 0 07-20-2002 12:31 AM
I would like to code! Zellius Advertising for Staff 1 07-03-2002 08:59 AM
Code Problem Keljorian MUD Coding 1 06-01-2002 11:11 PM

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
Trackbacks are On
Pingbacks are On
Refbacks are On

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


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Style based on a design by Essilor
Copyright Top Mud Sites.com 2007