Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, Google

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
Vintar (28)
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » do_scan probably shouldn't wo...
Forum Rules | Mark all | Recent Posts

do_scan probably shouldn't work when you can't see...
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Mar 13, 2006, 5:51 am   Last edited Mar 13, 2006, 5:51 am by Halcyon
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

In an odd stroke of luck, I found to my amusement that scan allows a blind player to scan. Objects/characters are handled properly, because they check against "can_see." Scan does not. Simple fix.

In skills.c, locate function do_scan:

void do_scan( CHAR_DATA * ch, char *argument )
{
   ROOM_INDEX_DATA *was_in_room;
   ROOM_INDEX_DATA *to_room;
   EXIT_DATA *pexit;
   short dir = -1;
   short dist;
   short max_dist = 5;


Directly after that section, add the following:

   if( IS_AFFECTED( ch, AFF_BLIND ) && ( !IS_AFFECTED( ch, AFF_TRUESIGHT ) ||
	   ( !IS_NPC( ch ) && !IS_SET( ch->act, PLR_HOLYLIGHT ) ) ) )
   {
	   send_to_char( "Everything looks the same when you're blind...\r\n", ch );
	   return;
   }


And there ya have it. :smile:
       
Post is unread #2 Mar 13, 2006, 7:50 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

lol, not a bad find either. SmaugFUSS has a blind check but it doesnt check for truesight/holylight.
       
Pages:<< prev 1 next >>