Re-deed ship - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Re-deed ship (/Thread-Re-deed-ship) Pages: 1 2 |
Re-deed ship - tleilax - 01-18-2014 09:39 PM Hello, is there a way to re-deed a ship? Or do I have to script it completely? Also, I wonder what would happen to items that are stored in that "chest" there. I've tried searching, but found nothing. RE: Re-deed ship - XuN - 01-18-2014 11:52 PM Just like for houses, the redeed is up to script. You can add a simple dialog to t_ship or t_tillerman in its @DClick and create a i_deed setting its more to <baseid> RE: Re-deed ship - Mordaunt - 01-19-2014 12:00 AM Code: [PLEVEL 1] Items in the hold would be lost as the ship is essentially destroyed. Tiny as this is, I have put it up in my section for easy finding RE: Re-deed ship - Mordaunt - 01-19-2014 12:18 AM Of course it works.... I didn't add a check for the item (foolishly) but you target the tiller with it, not the ship mast which may be where you went wrong. Also don't use obj RE: Re-deed ship - Mordaunt - 01-19-2014 12:40 AM huh.. missed a line when i did it, and yet oddly it was still working, should read: Code: [PLEVEL 1] RE: Re-deed ship - XuN - 01-19-2014 12:41 AM You should never use OBJ unless needed, as its global and may get overwrited with another script, refx are like locals, created and destroyed in this code section. BTW, just link from that function to the chest and place all the items inside a backpack and move it to player's bank, should be easy. RE: Re-deed ship - Mordaunt - 01-19-2014 12:48 AM You're gonna make me go and make this bigger aren't you, sonofa..... Later I'll do it later, got some stuff to do RE: Re-deed ship - tleilax - 01-19-2014 12:52 AM If I try .xshow more1 on the tiller man, it shows UID of the ship. Maybe my ship script is old then? Also, added some function to delete unused keys from backpack: Code: forcont <findlayer.layer_pack.uid> 0 Is that a proper way to do that? RE: Re-deed ship - Mordaunt - 01-19-2014 03:50 AM Yeah like this, spent 5 mins and added to it (hopefully Xun won't come up with any more ideas) Redeeds, bounces "ship's hold" contents to your bank and removes all related ship keys: Drydock (Ship Redeeding) RE: Re-deed ship - XuN - 01-19-2014 04:01 AM Oh, at your wishes . Is there a way the key can be duplicated? if so it would work better using forinstances in key and removing the ones linked with this ship, it would be great also if you add a small dialog similar to the one for your houses, also a limit of ships per account and some kind of taxes. |