Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Help using script.
Re: Help using script.
hi there, it's 1 AM at my place... But for a first look i'd say that you are not ignoring your character at PK loops, so i added 1 line of code.Kheelt wrote:Hi there, im new and introduced to scripting, and i would appreciate any help.
The first error i get whit this mining script is, it recalls but when it becames to mine it just keep recalling.
so Recalls > find spot > Use shovel > Where do you wish to dig? > target sending from stealth > and loop.
I tryed changing the target settings from steal to ON/off but didn't change anything.
thanks!
Heres the code:Your script
Second look will be tomorrow at work!
Good night!
Re: Help using script.
same here bud, thanks for your fast apply. i'll try tomorrow too.
I just want to mention that in my shard u can make shovels with 50k+ uses so i dont even need to make them (so we can short some code)
See you tomorrow, and thanks again!
I just want to mention that in my shard u can make shovels with 50k+ uses so i dont even need to make them (so we can short some code)
See you tomorrow, and thanks again!
Re: Help using script.
Quick Updates:
I forced to delete some parts of the script in order to get it work, so it works fine for the facts i do (just recall mine, come back, drop, loop)
I remove the House runebook from Runebook's array, still working fine and i think the error i had about unstuck was for that.
Facts to improve:
- Move the gems to another Box.
- Make the runebooks recognice by their name as (BASE) (ORE) in order to don't need a setup of ID.
- Make a gump window to see the stat's of quantity.
- Add custom gem from my server (Already done by the array of gems, but want to separe it from in order to get the Ratio% of drops per hour.)
I forced to delete some parts of the script in order to get it work, so it works fine for the facts i do (just recall mine, come back, drop, loop)
I remove the House runebook from Runebook's array, still working fine and i think the error i had about unstuck was for that.
Facts to improve:
- Move the gems to another Box.
- Make the runebooks recognice by their name as (BASE) (ORE) in order to don't need a setup of ID.
- Make a gump window to see the stat's of quantity.
- Add custom gem from my server (Already done by the array of gems, but want to separe it from in order to get the Ratio% of drops per hour.)
Re: Help using script.
Make gump - that's something above of the Stealth's possibilities;Kheelt wrote:Quick Updates:
Facts to improve:
- Move the gems to another Box.
- Make the runebooks recognice by their name as (BASE) (ORE) in order to don't need a setup of ID.
- Make a gump window to see the stat's of quantity.
- Add custom gem from my server (Already done by the array of gems, but want to separe it from in order to get the Ratio% of drops per hour.)
If you want some GUI - that's all about external scripts;
To make the runebooks recognization - just make a custom object type which will describe all the properties you need!
Make ratio counter - not a problem at all, but to fill the statistics correctly, i think - you'd better write statistics to outer file like .ini to get all time sessions analysis.
If you need any help - you where to ask a questions!
Btw you can ask me at ICQ, it's in my contacts list, at my profile page.
Re: Help using script.
Yea with gump i mention GUI (my bad)drabadan wrote:Make gump - that's something above of the Stealth's possibilities;Kheelt wrote:Quick Updates:
Facts to improve:
- Move the gems to another Box.
- Make the runebooks recognice by their name as (BASE) (ORE) in order to don't need a setup of ID.
- Make a gump window to see the stat's of quantity.
- Add custom gem from my server (Already done by the array of gems, but want to separe it from in order to get the Ratio% of drops per hour.)
If you want some GUI - that's all about external scripts;
To make the runebooks recognization - just make a custom object type which will describe all the properties you need!
Make ratio counter - not a problem at all, but to fill the statistics correctly, i think - you'd better write statistics to outer file like .ini to get all time sessions analysis.
If you need any help - you where to ask a questions!
Btw you can ask me at ICQ, it's in my contacts list, at my profile page.
Can u throw me a bone on how to make the runebook recognization with i've list (ORE & BASE)
Ratio should be fine to implement into GUI.
I maked a ICQ and added you already, i got some questions, hehe.
Re: Help using script.
Can you explain why you need to set it up from it's name? Becouse it won't be as secure as it would be done by ID.
Here is the example on how to make it both:
If you mented smth else so describe more wider about and we will find a solution!
Here is the example on how to make it both:
Code: Select all
program MyCustomItem;
const
Item = $0000001; //Item id;
//declaration of a new type with custom options;
type
TMyCustomItem = record
Id : Cardinal;
Name : String;
_Type : Word;
end;
//You need to store your values in variable, to have an access,
//becouse declaration of a type is not getting any memory for it,
//you need to specify it with variable or Array element;
var
MyCustomItem : TMyCustomItem;
begin
//Here how we fill this new type of items with our values;
MyCustomItem.Id := Item;
MyCustomItem.Name := GetName(Item);
MyCustomItem._Type := GetType(Item);
//Here how we can call any of our item's option;
AddToSystemJournal(MyCustomItem.Name);
end.
Re: Help using script.
1) GUI not possible with Stealth 6.x and Pascal Script. This must be solved via API.Yea with gump i mention GUI (my bad)
Can u throw me a bone on how to make the runebook recognization with i've list (ORE & BASE)
Ratio should be fine to implement into GUI.
I maked a ICQ and added you already, i got some questions, hehe.
2) Recognizing could be done by BMSearch. If you have Runuo Default Ores keep sure to check for "dull" instead of "dull copper".
Sample :
Code: Select all
If(BMSearch(0,'My Dull Copper Runebook','Dull')>0)then AddToSystemJournal('Yey its my Dullcopper Runebook!');
Code: Select all
Function Contains(S1,S2:String;CaseSensitive:Boolean):Boolean;
var
SX1 : String;
SX2 : String;
begin
if ( not CaseSensitive) then
begin
SX1 := LowerCase(S1);
SX2 := LowerCase(S2);
end else begin
SX1 := S1;
SX2 := S2;
end;
Result := (BMSearch(0,SX1,SX2)>0);
end;
Code: Select all
if Contains('My Dull Copper Runebook','Dull',False)then AddToSystemJournal('Yey its my Dullcopper Runebook!');
Hope i could help you..
Stealth Development Team & Support
Re: Help using script.
In Order to dynamicly load the Books. I dont know wich shard the author plays but EA and many shards nowadays have complete random spots, there it isnt required to filter books.drabadan wrote:Can you explain why you need to set it up from it's name? Becouse it won't be as secure as it would be done by ID.
Old scripts in easyuo used something like "Ore XX" where Ore decated its a mining book and XX the amount of Runes from 1 - X to be useful.
So you could just drop books into any backpack, name them Ore and Script recognize them as useful for mining.
If the Author want to go the same way, i would add some delimeters like "Ore | 16" or "Ore # 16".
In case you want to filter out you just scan for your delimeter, if not exist its an unrelevant book. If it exist you could use strbreakapart to break the string into an array of String ( 0 = Name , 1 = Value).
Then you could write a simple Parser to fill an object information depending on your information.
Stealth Development Team & Support
Re: Help using script.
The reason for use names by runebooks it's just for simply comfort, i mean, it's faster to the script for someone that dosn't have to seetup things like ID's.
So i hopefully can do it with the runebooks and with the containers. Thanks for all the help i really aprecciate it.
also want to mention one thing, i just have 2 scripts atm for mine in normal caves and another for Abyss mining, let's put some code.
I use this procedure "mining" for mine in the abyss.
And this one for the normal caves <mountains>
I may not see the difference but i can't mine with the second in the abyss because it read statics? i don't understand.
So i hopefully can do it with the runebooks and with the containers. Thanks for all the help i really aprecciate it.
also want to mention one thing, i just have 2 scripts atm for mine in normal caves and another for Abyss mining, let's put some code.
I use this procedure "mining" for mine in the abyss.
Procedure Mining Abyss
Normal caves procedure.