Hello adr.bot and everyone,
I have been using adrenalin quite long already, and have been making my own scripts with simple language. Atm I have a few questions from scripting that im facing atm on my own:
1- How to equip different jewels for each slot? For instance, if I use the command below it will equip and unequip the same jewel:
Inventory.user.ById(12325, item);
Engine.UseItem(item);
Inventory.user.ById(12325, item);
Engine.UseItem(item);
I wanna equip one earring on each slot or substitute the earring that is being used in each slot.
2- How to identify the dialog from the NPC and select the correct answer (for instance, get a pet wolf quest, quite similar to anti captcha)? I think its using this code, right?
Engine.dlgtext.contains
I managed to identify the text, but engine.dlgsel does not work in this specific chat (it works for other NPC). I tried doing bypass like this:
if engine.dlgtext.contains('useful') then
begin
Engine.BypassToServer('1110003');
But it didnt work, here's the full dialog:
<html><body>
Question:<br>What is the normal lifespan of a wolf in captivity?<br><fstring p1="" p2="" p3="" p4="" p5="">1110052</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110053</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110054</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110051</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110055</fstring></body></html>
3- How is possible to identify if the user has any dyes and which are them with the script?
4- Currently my auto level script sometimes could get stuck (invisible wall in town, a rock, tree or even some lag that might screw it). How can I "check" if the char is doing nothing and use scape or something?
5- My auto level scripts is currently for single char, how can I comunicate with another char in pt and make them follow the same script at the same time (for instance, my script goes to town, rebuff, restock and go back to farming location, but I want the other char in pt do the same at the same time and go back and wait for the rest before farming again). I thought I could manage doing that with party message.
Thanks very much if anyone can help with some of those questions!