Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, DotBot

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » New item types
Forum Rules | Mark all | Recent Posts

New item types
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 18, 2002, 8:47 pm
Go to the top of the page
Go to the bottom of the page

barbus_007

GroupMembers
Posts16
JoinedJun 23, 2002

I added two new item types (gun and ammo incase your wondering) to the mud by adding them to the table in afk.h (Yes, they are behind MAX_ITEM_TYPE) and declared the name in the otype table in build.c. Since I don't have alsherok.c (mentioned above the declarations for item types in afk.h, where it says to add it to find_oftype) I ignored that part.
Now, as I'm testing my guncode, whenever I load my two test objects (I can oset the type fine)
I get these messages:
[414hp 996m 150mv] load obj gun
Build: Zelse: load obj gun
Log: [*****] BUG: Read_object: vnum 51501 bad type.
Log: [*****] BUG: ------------------------> 68
You wave your hand, and a newly created golden gun appears in your inventory!
(#51501 - golden gun - lvl 1)
[414hp 996m 150mv] load obj ammo
Build: Zelse: load obj ammo
Log: [*****] BUG: Read_object: vnum 51500 bad type.
Log: [*****] BUG: ------------------------> 69
You wave your hand, and a newly created golden ammo appears in your inventory!
(#51500 - golden ammo - lvl 1)
I also tried loading them at my level thinking it might have something to do with the prototype.
       
Post is unread #2 Aug 19, 2002, 5:31 am
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

Hi,

Im not using afk source, but why dont you try grepping out the instances of a particular item_type so you know what all code places need to be changed.

Syntax: grep item_potion *.c
or
Syntax: grep item_potion *.h

Vladaar
       
Post is unread #3 Aug 19, 2002, 2:12 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002


Since I don't have alsherok.c (mentioned above the declarations for item types in afk.h, where it says to add it to find_oftype) I ignored that part.


Oops. That would be because the directions should have sent you to afk.c instead. It used to be called alsherok.c back in the day
       
Pages:<< prev 1 next >>