Login
User Name:

Password:



Register

Forgot your password?
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
SWRFUSS 1.4
Author: Various
Submitted by: Samson
Users Online
AhrefsBot, Google

Members: 0
Guests: 40
Stats
Files
Topics
Posts
Members
Newest Member
488
3,789
19,632
596
Elwood

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Alsherok » Alsherok MUD Forum » Short Item display for Shops
Forum Rules | Mark all | Recent Posts

Short Item display for Shops
< Newer Topic :: Older Topic > list

Pages:<< prev 1 next >>
Post is unread #1 Apr 17, 2003 3:14 am   Last edited Nov 24, 2007 2:23 pm by Samson
Go to the top of the page
Go to the bottom of the page

Zebeid

GroupMembers
Posts3
JoinedApr 17, 2003

 
I lost 20k gold when I bought an item I couldn't use. So I found something simple that could be put into the code to help me see what items I should buy.
shops.c ( do_list )
after this line in the AFK code
mxp_obj_str( ch, obj ), obj->short_descr, mxp_obj_str_close( ch ) );

Put this Ifcheck in:
if ( nifty_is_name( arg, obj->name ) )
{

Where you can put information about the item for sale. Such as something like this:
if ( !can_wear_obj(ch, obj))
send_to_pager( "You can not use this item.\r\n", ch );
}

So then when someone types " list sword " it will show all the items with the keyword sword and the infromation you want to put in about the item.

Post is unread #2 Apr 20, 2003 6:19 pm   
Go to the top of the page
Go to the bottom of the page

Cam

GroupAFKMud Team
Posts61
JoinedJan 1, 2002

 
That's pretty cool. If I was a coder, I would redo the shops entirely myself. I think they're kinda un-user-friendly when it comes to most things...but that is a good first step in reducing player losses due to things such as that. Hopefully we'll put this, or something similar to that in and see it implemented. Thanks for your post Zebeid. ;)

Post is unread #3 Apr 23, 2003 11:10 am   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,685
JoinedJan 1, 2002

 
Shops will now indicate with a red * that you can't use an item. If you want to know WHY you can't use it you'll need to spend the money to go find out

Post is unread #4 Apr 24, 2003 11:04 pm   Last edited Nov 24, 2007 2:24 pm by Samson
Go to the top of the page
Go to the bottom of the page

Zebeid

GroupMembers
Posts3
JoinedApr 17, 2003

 
Kewl, Thanks! I know 20k isn't much but I did feel ripped off. Atleast I was able to sell it back.

Oh yah, in planes.c in void save_planes ( void )
line
      fprintf( fp, "Name      %s\n", p->name );


There needs to be a tilde like this

      fprintf( fp, "Name      %s~\n", p->name );


Otherwise it crashes, atleast with the stock smaug I play with.

Post is unread #5 Apr 25, 2003 3:59 am   
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,685
JoinedJan 1, 2002

 
The planes stuff has been removed on our side so that's no longer a problem. This will be removed from the next AFKMud release as well. I will have a look at FUSS later though to make sure this has been fixed.

Post is unread #6 Apr 25, 2003 9:54 am   
Go to the top of the page
Go to the bottom of the page

Zebeid

GroupMembers
Posts3
JoinedApr 17, 2003

 
One more thing. I was looking at the one_hit function in fight.c and saw that the faerie fire check for armor class was below the UMAX( -19, (int) (GET_AC(victim) / 10) ); macro.

The faerie fire added 20 to the victim_ac which means someone with -190 ac would be equivalent to someone with 10 ac if faerie fire was cast on them.

Is that how its supposed to work?

Pages:<< prev 1 next >>