having an item removed upon going through a room
Posted: Sun Dec 22, 2002 8:11 am
im not sure if im the only one who had problems with this but heres how i eded up getting it to work props to tsunami for all his help
fist you need a new text block easy enough.
if you just want the item to be removed without anyother checks all you need is the takeitem command, remember dont insert brackets.
takeitem {item number}
if like me you wanted to have the item taken after a certain level it is
minlevel {level} {failure message textblock#}:takeitem {item number}
have no spaces between the colon and either number or next command
for the connecting message text block set it up as such
message {message here}
i myself wanted to have a check in there so i could have a thanks message if they had gotten rid of it before training.
checkitem {item number} {failure message textblock#}:minlevel {level} {failure message textblock#}:takeitem {item number}
if you wish to have the item removed from anyone before a level i believe you substitute minlevel for maxlevel.
i then added a spell with a textblock attribute aimed at the textblock which had my commands.
the spell was set to self or single. the resist ability was set to mres but make sure resistance type is never.
I then set the spell as the room spell and not exit spell, i did this in a few rooms around the trainer (where i wanted the item to be removed) so if there was a delay tick they would get caught out in the subsequint rooms.
im not sure if you can set it as the command text as i havnt tried it.
to have a message make sure you put in the
message {message}
command in otherwise it wont display a message.
hope this helps anyone that tries to make a room like this.
fist you need a new text block easy enough.
if you just want the item to be removed without anyother checks all you need is the takeitem command, remember dont insert brackets.
takeitem {item number}
if like me you wanted to have the item taken after a certain level it is
minlevel {level} {failure message textblock#}:takeitem {item number}
have no spaces between the colon and either number or next command
for the connecting message text block set it up as such
message {message here}
i myself wanted to have a check in there so i could have a thanks message if they had gotten rid of it before training.
checkitem {item number} {failure message textblock#}:minlevel {level} {failure message textblock#}:takeitem {item number}
if you wish to have the item removed from anyone before a level i believe you substitute minlevel for maxlevel.
i then added a spell with a textblock attribute aimed at the textblock which had my commands.
the spell was set to self or single. the resist ability was set to mres but make sure resistance type is never.
I then set the spell as the room spell and not exit spell, i did this in a few rooms around the trainer (where i wanted the item to be removed) so if there was a delay tick they would get caught out in the subsequint rooms.
im not sure if you can set it as the command text as i havnt tried it.
to have a message make sure you put in the
message {message}
command in otherwise it wont display a message.
hope this helps anyone that tries to make a room like this.