Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Apr 4, 2016 17:09:25 GMT
Simple script that drops crystal coins as shown, can drop other items too just change id. Preview:Download:Rain CC.elfc (1.95 KB) Rain CCV2.elfc (2.38 KB)
|
|
|
Post by Darth Maul on Apr 6, 2016 6:30:46 GMT
Hey @masi, Nice work on the cavebot file. When I tested the script it didn't seem to work as intended, it seemed to do the first line of every waypoint and then skip the rest. Adding in some delays would fix this quite easily. In addition to that, editing the script for other items is a little inefficient. If you added an $item variable that would allow you to edit the script much quicker. Adding a few other variables could also improve the script and make it easier to edit. An edited version of your script would look something like this: rain cc - v2.elfc (2.94 KB) RAW code: A 000: variables
set $item '3035' set $amount '1' set $delay '500' set $sqm '3'
A 001: 1SQM
if [$sqm < 1] {pm '$self' "Your sqm needs to be set in the variable waypoint. The supported options are 1, 2, or 3.'}
dropitemsxyzamount [$posx+1] [$posy+1] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-1] [$posy-1] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-1] [$posy] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx+1] [$posy] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx] [$posy+1] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx] [$posy-1] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx+1] [$posy-1] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-1] [$posy+1] [$posz] $item $amount | wait $delay
A 002: 2SQM
if [$sqm <2] {gotolabel '1SQM'}
dropitemsxyzamount [$posx+2] [$posy+2] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-2] [$posy-2] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-2] [$posy] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx+2] [$posy] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx] [$posy+2] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx] [$posy-2] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx+2] [$posy-2] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-2] [$posy+2] [$posz] $item $amount | wait $delay
A 003: 3SQM
if [$sqm <3] {gotolabel '1SQM'}
dropitemsxyzamount [$posx+3] [$posy+3] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-3] [$posy-3] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-3] [$posy] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx+3] [$posy] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx] [$posy+3] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx] [$posy-3] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx+3] [$posy-3] [$posz] $item $amount | wait $delay dropitemsxyzamount [$posx-3] [$posy+3] [$posz] $item $amount | wait $delay
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Jun 14, 2016 12:14:56 GMT
Added V2 to main post.
|
|
|
Post by Darth Maul on Jul 6, 2016 5:41:25 GMT
(late) Hey, what does Version 2 do? If it does something different would you mind adding a preview of it?
|
|