Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing, DotBot

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » 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, 1:14 am   Last edited Nov 24, 2007, 12: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, 4: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, 9:10 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
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, 9:04 pm   Last edited Nov 24, 2007, 12: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, 1:59 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
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, 7: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 >>