Pages:<< prev 1 next >>
#1 Apr 17, 2003 3:14 am
Last edited Nov 24, 2007 2:23 pm by Samson
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
Put this Ifcheck in:
Where you can put information about the item for sale. Such as something like this:
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.
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.
#2 Apr 20, 2003 6:19 pm
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.
#3 Apr 23, 2003 11:10 am
Black Hand
GroupAdministrators
Posts3,697
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
#4 Apr 24, 2003 11:04 pm
Last edited Nov 24, 2007 2:24 pm by Samson
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
There needs to be a tilde like this
Otherwise it crashes, atleast with the stock smaug I play with.
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.
#5 Apr 25, 2003 3:59 am
Black Hand
GroupAdministrators
Posts3,697
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.
#6 Apr 25, 2003 9:54 am
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?
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 >>