Thread: Starting Items
View Single Post
  #14  
Old 10-01-2003, 12:34 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

Quote:
Originally Posted by krich
Looks like the section starting with line 412 should have 9979 as the item number for a "worn candle" rather than 18710 which is a human pally note, i think.
Changed. Also I have a couple of others. I think you'll end up with multiple candles in some cases. So I suggest first off moving the line
Code:
' Misc. Items - Candle of the Plaguebringers
DATA 0, 0, 201, 0, 9982
above
Code:
' Misc. items - Worn candle
DATA 0, 0, 212, 0, 9979
DATA 0, 0, 208, 0, 9979
DATA 2, 0, 0, 0, 9979
rather than below it. Then change DoMisc to read
Code:
SUB doMisc
flag% = 1
z = 1
WHILE misc(z, 5) > 0 AND flag% > 0
    IF (misc(z, 1) = 0 OR misc(z, 1) = rac) THEN
	IF (misc(z, 2) = 0 OR misc(z, 2) = cla) THEN
	    IF (misc(z, 3) = 0 OR misc(z, 3) = diety(dty)) THEN
		IF (misc(z, 4) = 0 OR misc(z, 4) = cty) THEN
		    PRINT #1, txt; count; ","; rac; ","; cla; ","; diety(dty); ",";
		    PRINT #1, cty; ","; misc(z, 5); ",1,0);"
		    count = count + 1
		    flag% = 0
		END IF
	    END IF
	END IF
    END IF
    z = z + 1
WEND
END SUB
This makes the candle moved be selected first if it is appropriate and causes DoMisc to only select one item instead of going thru the whole table possibly selecting multiple.

I guess you noticed I really like tables and use them a lot
__________________
Maybe I should try making one of these servers...
Reply With Quote