Total players online: 13



Take the Tour | Site Map

It is currently Fri Sep 21, 2018 11:59 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: cloth to bandages
PostPosted: Tue Sep 04, 2018 7:41 am 
Offline
Master Scripter
Master Scripter

Joined: 10/03/2003 14:31
Posts: 269

Groups:
is there a scrip that will cut stacks of cloth to bandages ? thx


Top
  Profile 
 Post subject: Re: cloth to bandages
PostPosted: Tue Sep 04, 2018 10:23 am 
Offline
Script Scribe
Script Scribe

Joined: 04/14/2007 16:18
Posts: 94

Groups:
I think I have one I can share when home from work.

Breaks over... back to work. ;)

Gaderian


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: cloth to bandages
PostPosted: Tue Sep 04, 2018 10:53 am 
Offline
Administrator
Administrator
User avatar

Joined: 08/12/2003 07:28
Posts: 18872
Location: Switzerland

- Use scissor
- target stack of cloth
- BAM

You need a script for a 2 step-process???

_________________
EUO Member and postwhore since: 19th Dezember, 2002; Loosing on freeshard Alexandria since: 5th January, 2005
Searches cure for cancer since: 17th November, 2003 on GRID.org & Worldcommunitygrid.org
Made scripts for Project 'Programmers for Alexandria' worth 50$
Image
Quote "mmorning": Where would theses boards be if Orn didn't miss all the sarcasm. Man its great having him here :)
Quote "author-unknown": Good idea. I gotta start doing that too. You're a trendsetter Orn. :)
Quote "dreyfus": #true is always #true


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: cloth to bandages
PostPosted: Tue Sep 04, 2018 2:16 pm 
Offline
Master Scripter
Master Scripter

Joined: 10/03/2003 14:31
Posts: 269

Groups:
say Gaderian thx a lot hope to get soon


Top
  Profile 
 Post subject: Re: cloth to bandages
PostPosted: Tue Sep 04, 2018 6:24 pm 
Offline
Script Scribe
Script Scribe

Joined: 04/14/2007 16:18
Posts: 94

Groups:
I think it depends on how many bandages you are making. If you are in a secure house, then it doesn't matter if it drops to the ground - you simply pick these up and drop in your secure. If you are at a bank, where people can grab the resources and drop into their own bank, then you may want to break up the quantity that you create in a pass.

Code:
  1. ;==================================
  2. ; Script Name: CutBandages.txt
  3. ; Author: Gaderian
  4. ; Version: 1.0
  5. ; Client Tested with: 7.0.68.1
  6. ; EUO version tested with: 1.5.1.332
  7. ; Shard OSI / FS: OSI
  8. ; Revision Date: September 4, 2018
  9. ; Public Release: September 4, 2018
  10. ; Global Variables Used:
  11. ; Credits:
  12. ; Purpose: Take bolts or cloth from a secure, cut up and toss bandages back into secure.
  13. ; Requirements: 1) Scissors
  14. ;                     2) a secure container with bolts or cloth to cut
  15. ;
  16. ; Revision history
  17. ;=================
  18. ; Version 1.0
  19. ; Initial release
  20. ;
  21. ;===================================
  22.  
  23. ; Main functionality here
  24. set %bolt zzf
  25. set %bolt_qty 1
  26. set %cloth cui
  27. set %cloth_qty 1
  28. set %scissors KAG
  29. set %bandages ZLF
  30.  
  31. display ok Target Secure container
  32.  {
  33.  wait 1
  34.  }
  35. set %secureid #ltargetid
  36. set #lobjectid %secureid
  37. wait 20
  38.  
  39. finditem %scissors C_ , #backpackid
  40.  {
  41.  display ok You need scissors to do this - go get some in your main pack. Halting
  42.  }
  43.  
  44. set %scissorsid #findid
  45.  
  46.  {
  47.  finditem %bolt C_ , %secureid
  48.  if #findcnt > 0
  49.   {
  50.   exevent drag #findid %bolt_qty
  51.   wait 10
  52.   wait 10
  53.   gosub cut %bolt
  54.   }
  55.  
  56.  finditem %cloth C_ , #backpackid
  57.  if #findcnt < 1
  58.   {
  59.   finditem %cloth C_ , %secureid
  60.   if #findcnt < 1
  61.    {
  62.    display ok all done with cloth ... ending
  63.    halt
  64.    }
  65.   exevent drag #findid %cloth_qty
  66.   wait 10
  67.   wait 10
  68.   }
  69.  gosub cut %cloth
  70.  finditem %bandages C_ , #backpackid
  71.  if #findcnt > 0
  72.   {
  73.   wait 10
  74.   exevent dropc %secureid
  75.   wait 10
  76.   }
  77. }
  78.  
  79. sub cut
  80.  if #findcnt < 1
  81.  set %to_be_cut #findid
  82.  set #lobjectid %scissorsid
  83.  target 3s
  84.  set #ltargetid %to_be_cut
  85.  wait 20


I have it set to a single bolt at a time, or a single piece of cloth if grabbing from the secure, because i wanted to make certain it still ran clean. It may need a modification for weight calculation or grabbing the 'rest of a stack' if you choose to change it. I didn't care about the end of my stacks and was willing to make a final cut up manually when I did this.

You may need to modify the item types for bolts or cloth in case you have something that differs. If on a free shard, maybe scissors could be a different type, I suppose.

Gaderian


Top
  ProfileShow poster's scripts in the public script library 
 Post subject: Re: cloth to bandages
PostPosted: Tue Sep 04, 2018 6:34 pm 
Offline
Master Scripter
Master Scripter

Joined: 10/03/2003 14:31
Posts: 269

Groups:
thank you so much


Top
  Profile 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.