SphereCommunity
Drydock (Ship Redeeding) - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: Drydock (Ship Redeeding) (/Thread-Drydock-Ship-Redeeding)



Drydock (Ship Redeeding) - Mordaunt - 01-19-2014 10:33 AM

As a result of this conversation: http://forum.spherecommunity.net/Thread-Re-deed-ship

I wrote this and added it to my script section & library.
Drydock (Ship Redeeding)

Simple function that redeeds the ship, empties the contents of the ship's hold into the owners bank and destroys related keys.


RE: Drydock (Ship Redeeding) - amonvangrell - 01-20-2014 06:35 AM

Well done! ;]


RE: Drydock (Ship Redeeding) - Rizz - 01-21-2014 09:31 AM

I changed this line to make the script works:

IF (<src.uid>==<ref1.more1>) || (<src.uid>==<src.isgm>) instead of IF (<src.uid>==<ref1.more1> || <src.isgm>)


RE: Drydock (Ship Redeeding) - Extreme - 01-21-2014 10:27 AM

(01-21-2014 09:31 AM)Rizz Wrote:  I changed this line to make the script works:

IF (<src.uid>==<ref1.more1>) || (<src.uid>==<src.isgm>) instead of IF (<src.uid>==<ref1.more1> || <src.isgm>)
Your change shouldn't work.
<SRC.ISGM> return 0/1
<SRC.UID> != 0/1

Don't know why use <SRC.UID> instead <SRC>.

This will work:
IF (<SRC> == <REF1.MORE1>) || (<SRC.ISGM>)


RE: Drydock (Ship Redeeding) - Alaric - 01-21-2014 11:00 AM

(01-21-2014 10:27 AM)Extreme Wrote:  Don't know why use <SRC.UID> instead <SRC>.

Almost everybody does that, I don't get it tooSmile <argo> <src> <uid> looks even cooler than some <argo.uid> <src.uid>. Pff.


RE: Drydock (Ship Redeeding) - Mordaunt - 01-21-2014 12:27 PM

I don't know why it says src.uid... I don't normally do that.
I have changed it to just src, though honestly that would not affect the script from working.


RE: Drydock (Ship Redeeding) - Rizz - 01-22-2014 08:26 PM

(01-21-2014 10:27 AM)Extreme Wrote:  
(01-21-2014 09:31 AM)Rizz Wrote:  I changed this line to make the script works:

IF (<src.uid>==<ref1.more1>) || (<src.uid>==<src.isgm>) instead of IF (<src.uid>==<ref1.more1> || <src.isgm>)
Your change shouldn't work.
<SRC.ISGM> return 0/1
<SRC.UID> != 0/1

Don't know why use <SRC.UID> instead <SRC>.

This will work:
IF (<SRC> == <REF1.MORE1>) || (<SRC.ISGM>)

LOL yes wrong copy/paste Lol


RE: Drydock (Ship Redeeding) - Berkley - 11-19-2015 05:49 AM

to work properly with the newest scriptpack i changed
row 21

from
serv.newitem i_deed_<STRSUB 8 50 <ref1.baseid>>

to
serv.newitem i_deed_<STRSUB 2 50 <ref1.baseid>>


RE: Drydock (Ship Redeeding) - anora - 12-25-2015 08:22 AM

Good job and thanks!