Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drydock (Ship Redeeding)
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #1
Drydock (Ship Redeeding)
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.

[Image: 2nis46r.jpg]
01-19-2014 10:33 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Mordaunt's post
amonvangrell
Banned

Posts: 338
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #2
RE: Drydock (Ship Redeeding)
Well done! ;]
01-20-2014 06:35 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #3
RE: Drydock (Ship Redeeding)
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>)
01-21-2014 09:31 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: Drydock (Ship Redeeding)
(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>)

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-21-2014 10:27 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #5
RE: Drydock (Ship Redeeding)
(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.
(This post was last modified: 01-21-2014 11:01 AM by Alaric.)
01-21-2014 11:00 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Alaric's post
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Drydock (Ship Redeeding)
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.

[Image: 2nis46r.jpg]
(This post was last modified: 01-21-2014 12:45 PM by Mordaunt.)
01-21-2014 12:27 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #7
RE: Drydock (Ship Redeeding)
(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
01-22-2014 08:26 PM
Find all posts by this user Like Post Quote this message in a reply
Berkley
Journeyman
*

Posts: 54
Likes Given: 28
Likes Received: 2 in 2 posts
Joined: Jul 2015
Reputation: 0



Post: #8
RE: Drydock (Ship Redeeding)
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>>
11-19-2015 05:49 AM
Find all posts by this user Like Post Quote this message in a reply
anora
Apprentice
*

Posts: 10
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Dec 2015
Reputation: 0



Post: #9
RE: Drydock (Ship Redeeding)
Good job and thanks!
12-25-2015 08:22 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)