Help using script.
Posted: 15.04.2014 0:48
.
Альтернативный клиент Ultima Online
https://stealth.od.ua/forum/
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
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.)
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.
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.
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.
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!');
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.