How to remove key when redeed ship? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: How to remove key when redeed ship? (/Thread-How-to-remove-key-when-redeed-ship) |
How to remove key when redeed ship? - WRWR - 05-08-2012 02:53 AM How to remove key when redeed ship? Code: IF !(<src.gold> >= <eval <link.value>/10>) && !(<SRC.ISGM>) RE: How to remove key when redeed ship? - Shaklaban - 05-08-2012 03:22 AM you can hold keys uids on a tag with ship under @create trigger of keys and remove them on dry dock like: PHP Code: [itemdef i_key_copper] RE: How to remove key when redeed ship? - WRWR - 05-08-2012 03:26 AM Keys is linked to REGION.UID and if i remove ship and save sphere my console says: Code: ERROR:'copper key' Bad Link to 040001de2 RE: How to remove key when redeed ship? - Shaklaban - 05-08-2012 04:57 PM yeah they are linked and give an error on removal, it does not harm your server. but if you want to stop it you can look the example i gave you. i dont test it, its just an example. step by step its doing: under @create trigger of copper key mark_ship function called with timerf 1. purpose of timerf is give sphere some time to assing key to ship. mark_ship function stores uids of the keys on tag with ship. on drydock, if you call deletekeys function on link reference (link.deletekeys), it will delete keys which uids stored on a tag with ship. as i know there is no setting for this so you need to code it. RE: How to remove key when redeed ship? - WRWR - 05-08-2012 09:47 PM Thanks. its work and best way for me now RE: How to remove key when redeed ship? - WRWR - 05-09-2012 09:36 PM key from bank is not removing 0_o RE: How to remove key when redeed ship? - Gyros - 05-09-2012 09:46 PM Code: [FUNCTION f_remove_keys] Code: [FUNCTION shipkey_remove] RE: How to remove key when redeed ship? - WRWR - 05-10-2012 12:21 AM error in if (<more1> == <args>) how to use your script? for example if i redeed my ship via dialog button? |