suggestion for improvement (too lazy to write it by myself):
Lock:
Step 1) get a Scroll from non played character or item mall *must be a returnscroll with a delay of 0ms*
Step 2) notice the player that they should move the item on slot 13.
Step 3) use the scroll, generate a 16- 32 characters password, storage the password, serial, old and new refid in a new table.
Step 4) send the password to the player via message system and that the player should storage the password somewhere and delete the message after he is done
Step 5) check on logout if this message is removed... if not delete the password unlock the item readd the scroll to the character and leave a message that he didnt removed the message.
Unlock:
Step 1) send a message with the password to a specified user.
Step 2) use the unlock scroll *must be a returnscroll with a delay of 0ms*
Step 3) check if the correct password has ben send to the unlock character within the last 5 minutes if so unlock if not readd unlock scroll to character
and well... rewrite your whole query i didnt even read it completly because...
my eyes would look like that:
[Only registered and activated users can see links. Click Here To Register...]