PDA

View Full Version : need help with gem loot script



Michaelous
12-10-2004, 03:55 AM
the script is intended to pick up gems laying on the floor when moving around, but i can't seem to figure out a way to keep from picking them up when others are in the room as well. any suggestions or ideas , thanks



start:
pause 1
put look
match filter defender.
match filter worker.
matchwait



checkroom:
match start Sorry, you may only type ahead
match R%c Also here: <------NOT WORKING! <Suppose to keep me from picking up gems when others in the room right?>
match R%c You can't go there
match R%c I could not find what
match filter defender
match filter worker
match R%c Obvious paths:
match R%c Obvious exits:
match R%c appears dead.
match gem sapphire
match gem1 pearl
matchwait



filter:
put look
match start You can't go there.
match R%c Also here: <------------------<works only when regarding a critter>
match attack Obvious paths:
match attack Obvious exits:
matchwait




gem:
pause 1
put get sapp
put open my long
put put sapp in my long
put close my long
waitfor you close
put look
goto checkroom


gem1:
pause 1
put get pearl
put open my long
put put pearl in my long
put close my long
waitfor you close
put look
goto checkroom

[Edited on 12-10-2004 by Michaelous]

AlahnnaDenale
12-10-2004, 04:03 AM
The problem is, its picking up the gems before the critter because they come first. You need a filter line, ie...

checkroom:
match m%c also here:
match filter obvious

filter:
<gem matching stuff goes here>

Michaelous
12-10-2004, 04:15 AM
problem fixed, thanks

[Edited on 12-11-2004 by Michaelous]