Assistance > Assistance & Feedback

A Common Collect Script

(1/3) > >>

Arf:
Collect.cs   this is the most highly sought after script for farming clays.  I included it here because i think that if one player has it then they all should have it.  I give it to whomever wants it but i don't show them how to use it.  if you want it, learn how to use it.

Include("presto\\Match.cs");
Include("presto\\Event.cs");

bindCommand(keyboard0, make, "m", TO, "$Collect = 1;");
bindCommand(keyboard0, break, "n", TO, "$Collect = 0;");

Event::Attach(eventClientMessage, OnMessage);

function OnMessage(%client, %msg) {
   if($Collect == 1) {
         if(Match::String(%msg, "* has died and you gained * experience!") == 1) {
            aCollect();
            return;
         }
         else if(Match::String(%msg, "* has died.") == 1) {
            aCollect();
            return;
         }
      }


function aCollect() {
   Schedule("postAction(2048, IDACTION_MOVEFORWARD, 0.999999);", 0.5);
   Schedule("postAction(2048, IDACTION_MOVEFORWARD, 0.9999991);", 1);
   Schedule("postAction(2048, IDACTION_MOVEBACK, 0.999999);", 2);
   Schedule("postAction(2048, IDACTION_MOVEBACK, 0.999999);", 2.5);
   Schedule("postAction(2048, IDACTION_MOVEBACK, 0.999999);", 3);
}

function Stop() {
   $Collect = 0;
   }
}

KoRo:
Maybe we should collect all the various scripts that people use and make a database out of them? I have a few simple ones that I wrote...like one that will automatically put your valuables into storage (assuming your storage is open and you're using CowboyHUD or InventoryHUD), i.e. It will store your diamonds as you're mining them so you will never lose any from the server crashing while having 500+.

I also made a script to auto buy/sell items at intervals of 100 so you don't have to type it in all the time.

B2:
I thought SIayer made the autostore one?

Arf:
Yes yes yes I agree.  we should post whatever useful scripts there are...  I am sure that many would enjoy some of the advantages they would bring.





--- Quote from: KoRo on July 16, 2013  02:34 am CDT ---Maybe we should collect all the various scripts that people use and make a database out of them? I have a few simple ones that I wrote...like one that will automatically put your valuables into storage (assuming your storage is open and you're using CowboyHUD or InventoryHUD), i.e. It will store your diamonds as you're mining them so you will never lose any from the server crashing while having 500+.

I also made a script to auto buy/sell items at intervals of 100 so you don't have to type it in all the time.

--- End quote ---

KoRo:
B2, I've been playing SIayer for the last 4 years (minus the 3 year hiatus I took, lol). I wrote the autostore script; at least, I wrote the one that I'm using. I definitely used other scripts as inspiration though; namely Presto's stuff.


For those who are interested (make sure you have Cowboy hud installed and your storage open. This is good if you're mining so your mineral count will never go above 500 and you lose all the stuff past 500 that you mined...or if you kill more than 500 ubers. In general, it just automatically stores everything valuable (subjective, of course) so it won't get stolen, lost, etc).



//To start storing items, type startSlots();
//To stop storing items, type stopSlots();


function startSlots() {
   echo("");
   echo(">> Auto-storing valuable items.");
   echo("");
   $Slots = true;
   slotLoop();
}


function stopSlots() {
   $Slots = false;
   echo("");
   echo(">> No longer auto-storing items.");
   echo("");
}


function slotLoop() {
   if(getItemCount("Keldrinite") > 0) {
      sell("Keldrinite"); }

   if(getItemCount("Diamond") > 0) {
      sell("Diamond"); }

   if(getItemCount("Emerald") > 0) {
      sell("Emerald"); }

   if(getItemCount("Gold") > 0) {
      sell("Gold"); }

   if(getItemCount("Sapphire") > 0) {
      sell("Sapphire"); }

   if(getItemCount("Topaz") > 0) {
      sell("Topaz"); }

   if(getItemCount("Titanium") > 0) {
      sell("Titanium"); }

   if(getItemCount("Iron") > 0) {
      sell("Iron"); }

   if(getItemCount("Ruby") > 0) {
      sell("Ruby"); }

   if(getItemCount("Nickel") > 0) {
      sell("Nickel"); }

   if(getItemCount("Silver") > 0) {
      sell("Silver"); }

   if(getItemCount("Dragon Scale") > 0) {
      sell("Dragon scale"); }

   if(getItemCount("Claymore") > 2) {
      sell("Claymore"); }

   if(getItemCount("Gladius") > 2) {
      sell("Gladius"); }

   if(getItemCount("Bastard Sword") > 2) {
      sell("Bastard Sword"); }

   if(getItemCount("Enchanted Stone") > 0) {
      sell("Enchanted Stone"); }

   if($Slots) {
   schedule("slotLoop();", 1); }
}

Navigation

[0] Message Index

[#] Next page

Go to full version