Jump to content

deviouz1

Members
  • Posts

    14
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About deviouz1

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

deviouz1's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. Updated. it works, with some help. I'm not sure how to turn targeting on and off via script, so you have to set several mobs to do not attack via the GUI, and i still havent the slightest idea how to get the test dialogues automated so you still have to take the test as well, but other than that, this has worked out for me pretty well. just start the script while standing next to Martin and it does all the leg work for me. just hit go, and check back later to do the test. begin Engine.SetTarget(30731); ///Martin Engine.DlgOpen; Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('Ask Detailed Questions'); Delay(500); Engine.DlgSel('I will take the task.'); Delay(500); Engine.MoveTo(-83091,150837,-3104); Delay(500); Engine.SetTarget(31076); ///Newb Helper Engine.DlgOpen; Engine.DlgSel('See the list of available supplemental magic.'); Delay(500); Engine.DlgSel('Receive supplemental magic'); Delay(500); Engine.MoveTo(-80885,150073,-3070); Delay(500); Engine.MoveTo(-80769,149819,-3070); Engine.SetTarget(30320); ///Richlin Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('Talking Island Village - 9400 Adena '); Delay(3000); Engine.SetTarget(30006); ///? TI GK Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('Talking Island, Northern Territory - 1000 Adena '); Delay(3000); Engine.MoveTo(-109317,215731,-3266); Delay(500); Engine.MoveTo(-111372,217019,-3266); Delay(300000); Print('15 minutes remaining'); Delay(300000); Print('10 minutes remaining'); Delay(300000); Print('5 minutes remaining'); Delay(300000); Print('Hunting time expired, using SOE now'); Engine.UseItem(736); //Scroll Escape Delay(30000); Engine.MoveTo(-85292,243739,-3728); Delay(500); Engine.MoveTo(-84136,244612,-3140); Delay(500); Engine.SetTarget(30006); ///? TI GK Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Village of Gludin - 18000 Adena '); Delay(3000); Engine.MoveTo(-81056,150257,-3056); Delay(500); Engine.MoveTo(-84605,150799,-3155); Delay(500); Engine.SetTarget(30731); ///Martin Engine.DlgOpen; Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('Ask about the next task'); Delay(500); Engine.MoveTo(-81056,150257,-3056); Delay(500); Engine.MoveTo(-80769,149819,-3070); Engine.SetTarget(30320); ///Richlin Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Gludio - 7300 Adena '); Delay(3000); Engine.SetTarget(30256); ///Bella Engine.DlgOpen; Delay(500); Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('I wish to learn about pets.'); Delay(500); Engine.DlgSel('Next.'); Delay(500); Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Dion - 17000 Adena '); Delay(3000); Engine.MoveTo(16157,144732,-3048); Delay(500); Engine.MoveTo(17019,147030,-3127); Delay(500); Engine.MoveTo(17433,147423,-3120); Delay(500); Engine.MoveTo(17479,147622,-3112); Delay(500); Engine.SetTarget(30072); ///Metty Engine.DlgOpen; Delay(500); Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('Tell me about the pets.'); Delay(500); Engine.MoveTo(17840,145972,-3122); Delay(500); Engine.MoveTo(16527,144335,-3013); Delay(500); Engine.MoveTo(15608,142908,-2732); Delay(500); Engine.SetTarget(30059); ///Trisha Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Giran - 6800 Adena '); Delay(3000); Engine.MoveTo(80818,148577,-3495); Delay(500); Engine.MoveTo(79764,148865,-3559); Delay(500); Engine.MoveTo(80040,149459,-3512); Delay(500); Engine.MoveTo(80441,149255,-3504); Delay(500); Engine.SetTarget(30091); ///Ellie Engine.DlgOpen; Delay(500); Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('[Get a Pet (In Progress)]'); Delay(500); Engine.DlgSel('I wish to learn about pets'); Delay(500); Engine.MoveTo(80441,149255,-3504); Delay(500); Engine.MoveTo(80040,149459,-3512); Delay(500); Engine.MoveTo(79764,148865,-3559); Delay(500); Engine.MoveTo(80818,148577,-3495); Delay(500); Engine.MoveTo(83401,147924,-3400); Delay(500); Engine.SetTarget(30080); ///Clarissa Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Dion - 38000 Adena '); Delay(3000); Engine.SetTarget(30059); ///Trisha Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Gludio - 3400 Adena '); Delay(3000); Engine.SetTarget(30256); ///Bella Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Village of Gludin - 33000 Adena '); Delay(3000); Engine.MoveTo(-81072,150275,-3056); Delay(500); Engine.MoveTo(-83128,150720,-3120); Delay(500); Engine.MoveTo(-84614,150810,-3155); Delay(500); end.
  2. anyone have a wolf quest script already written? I'm in the process of doing it myself, based on ADR's egg delivery script, but i've run across a few things im not sure how to do (no surprise there) and i'm fairly sure the server i'm on has some unique things it does, like change the amount it costs to teleport based on your level which changes the links listed in the teleport dialogue pages. here is what i have so far and it seems to work but i'm not sure how to make it hunt until i have all 50 bloody fangs (quest items arent showing up in the User > Inventory > Quest report, so im not sure how to reference the items or how to get their counts) so i've inserted a delay of 20 minutes to allow for that much hunting. pretty sure thats too long but too many times it tried to SOE before i had all 50 so i over estimated to account for time variations. It's only for TH's and it doesn't do the test for you, as i'm not exactly sure how to dynamically select the correct answers since the questions aren't always the same ones, and they're never in the same order. Any insight on any of this would be much appreciated. begin Engine.SetTarget(30731); ///Martin Engine.DlgOpen; Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('Ask Detailed Questions'); Delay(500); Engine.DlgSel('I will take the task.'); Delay(500); Engine.MoveTo(-83091,150837,-3104); Delay(500); Engine.SetTarget(31076); ///Newb Helper Engine.DlgOpen; Engine.DlgSel('See the list of available supplemental magic.'); Delay(500); Engine.DlgSel('Receive supplemental magic'); Delay(500); Engine.MoveTo(-80885,150073,-3070); Delay(500); Engine.MoveTo(-80769,149819,-3070); Engine.SetTarget(30320); ///Richlin Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('Talking Island Village - 9400 Adena '); Delay(3000); Engine.SetTarget(30006); ///? TI GK Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('Talking Island, Northern Territory - 1000 Adena '); Delay(3000); Engine.MoveTo(-109317,215731,-3266); Delay(500); Engine.MoveTo(-111372,217019,-3266); Delay(1200000); Engine.UseItem(736); //Scroll Escape Delay(30000); Engine.MoveTo(-85292,243739,-3728); Delay(500); Engine.MoveTo(-84136,244612,-3140); Delay(500); Engine.SetTarget(30006); ///? TI GK Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Village of Gludin - 18000 Adena '); Delay(3000); Engine.MoveTo(-81056,150257,-3056); Delay(500); Engine.MoveTo(-84605,150799,-3155); Delay(500); Engine.SetTarget(30731); ///Martin Engine.DlgOpen; Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('Ask about the next task'); Delay(500); Engine.MoveTo(-81056,150257,-3056); Delay(500); Engine.MoveTo(-80769,149819,-3070); Engine.SetTarget(30320); ///Richlin Engine.DlgOpen; Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Village of Gludio - 7300 Adena '); Delay(3000); Engine.SetTarget(30256); ///Bella Engine.DlgOpen; Delay(500); Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('I wish to learn about pets.'); Delay(500); Engine.DlgSel('Next.'); Delay(500); Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Dion - 17000 Adena '); Delay(3000); Engine.MoveTo(16157,144732,-3048); Delay(500); Engine.MoveTo(17019,147030,-3127); Delay(500); Engine.MoveTo(17433,147423,-3120); Delay(500); Engine.MoveTo(17479,147622,-3112); Delay(500); Engine.SetTarget(30072); ///Metty Engine.DlgOpen; Delay(500); Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('Tell me about the pets.'); Delay(500); Engine.MoveTo(17840,145972,-3122); Delay(500); Engine.MoveTo(16527,144335,-3013); Delay(500); Engine.MoveTo(15608,142908,-2732); Delay(500); Engine.SetTarget(30059); ///Trisha Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Giran - 6800 Adena '); Delay(3000); Engine.MoveTo(80818,148577,-3495); Delay(500); Engine.MoveTo(79764,148865,-3559); Delay(500); Engine.MoveTo(80040,149459,-3512); Delay(500); Engine.MoveTo(80441,149255,-3504); Delay(500); Engine.SetTarget(30091); ///Ellie Engine.DlgOpen; Delay(500); Engine.DlgSel('Quest'); Delay(500); Engine.DlgSel('[Get a Pet (In Progress)]'); Delay(500); Engine.DlgSel('I wish to learn about pets'); Delay(500); Engine.MoveTo(80441,149255,-3504); Delay(500); Engine.MoveTo(80040,149459,-3512); Delay(500); Engine.MoveTo(79764,148865,-3559); Delay(500); Engine.MoveTo(80818,148577,-3495); Delay(500); Engine.MoveTo(83401,147924,-3400); Delay(500); Engine.SetTarget(30080); ///Clarissa Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Dion - 38000 Adena '); Delay(3000); Engine.SetTarget(30059); ///Trisha Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Town of Gludio - 3400 Adena '); Delay(3000); Engine.SetTarget(30256); ///Bella Engine.DlgOpen; Delay(500); Engine.DlgSel('Teleport'); Delay(500); Engine.DlgSel('The Village of Gludin - 3400 Adena '); Delay(3000); Engine.MoveTo(-81072,150275,-3056); Delay(500); Engine.MoveTo(-83128,150720,-3120); Delay(500); Engine.MoveTo(-84614,150810,-3155); Delay(500); end.
  3. ooooooh.... <click> http://l2bot.eu/ScriptHelpEN.pdf gotcha ;) sorry.
  4. So, if i wanted a dagger-bot to "know" when their target is facing away from them, how would i access that info and use it in a script? im fairly good with looping logic so a lot of what i see i can mostly understand, but i've no idea how to "discover" what i'm looking for. I understand that this is an object oriented language. in powershell we use objects as well, so im also familiar with objects that have properties, and sub-properties and such, and powershell is built on .net which also uses methods and classes, but i've never been able to properly use them because i dont know how to find what methods are associated with what classes and how to know what class i'm even looking for to do what i'm trying to do. example: Engine.MoveTo(155365, -114559, -1625); Engine.CancelTarget; Engine.MoveTo(154269, -113957, -1604); Engine.MoveTo(152599, -113547, -1658); Engine.MoveTo(152072, -113343, -1626); Engine.MoveTo(151519, -112861, -1999); Engine.MoveTo(151244, -112937, -2124); Engine.MoveTo(151203, -112241, -2287); Engine.MoveTo(153632, -110383, -2675); Engine.MoveTo(154994, -107157, -2697); Engine.MoveTo(155599, -105710, -2755); Engine.SetTarget(31544); how do i know what methods are associated with "Engine." and is "Engine." always available? do i need to load anything to access it? like var item: TL2Item; or something similar?
  5. so, couple things, Powershell IS an object oriented language. https://powertoe.wordpress.com/2014/04/26/you-know-powershell-is-an-object-oriented-language-right/ having said that, you're right, i don't understand classes and methods. having said THAT, i don't learn by reading something. most of the time, when i run across something i dont understand in a book, screwing around with it wont really help, i need explanations/directions. i have to see something i want to do and then work through getting it done and having my questions answered is absolutely necessary to figure things out. if you don't want to be that resource, np, i get it, n00bs suck. What would help me more than anything else is if someone could try to recreate that function i posted in whatever way would be necessary to make it work so i can see how the process works in this language.
  6. powershell is a task automation and configuration management framework for windows. it's built on .net and is designed to allow IT Operations folks like myself to do an awful lot of things on a very large number of remote servers, automate day to day administration duties, deployments, service manipulations, event log querying, sql querying, and, on occasion, start all my IG and OOG clients for me as i'm not a fan of repetitive tasks. :) oh, and thanks for the links.
  7. [edit] sorry, hit reply without thinking, will edit from here out. [/edit] and another one: Engine.DlgSel('Buff Me'); in that ^, is Buff Me strictly a string or can you reference a variable there? is there any difference in using " " vs. ' ' ? can you pull an NPCs unique identifier with a command of some kind? is there an interactive shell that can be used? or is it strictly "Run a Script" ? is this the assignment of a variable? var live: TL2Live; does the above mean: variable name = live variable contents = all information contained within TL2Char, Npc, User, and Pet? if you have say, 5 different functions that you want to trigger depending on an event of some kind, how would you go about doing that? if i wanted to create an equivalent to the following completely made up function, how would it be written in this language? Function Get-DatAss { $stabs = get-characterinfo -properties skillname,skillid,range | where { $_.skillname -like "*blow*" -or $_.skillname -like "*stab*"} function Invoke-Stabs { foreach ($stab in $stabs) { Use-Skill -skillid $stab.skillid } } Do { $target = get-targetinfo -properties * Move-To $target.location } Until ($target.distance -lt $stab.range) Invoke-Stabs } Get-DatAss
  8. Hi, I'm a powershell guy and know almost nothing about any other languages. As such, i'm having some trouble with various things when trying to understand the scripts I've seen. the syntax used makes my teeth itch, but maybe that's just cause it's unfamiliar atm. Some questions to start off: Is the language used based on another language that has online help readily available? I'm thinking something along these lines: https://ss64.com/ps/ Is there a list of loops that are available? Like this: https://en.wikiversity.org/wiki/PowerShell/Loops Can you populate variables and use them in other parts of a script? If so, can I get an example of this? These are the ones that are burning a hole in my brain atm, and I'm sure i'll have a TON more at some point, but anything else one would suggest? I know about this page but it made very, VERY little sense to me as there don't seem to be any real working examples i can tinker with: http://l2bot.eu/ScriptHelpEN.pdf
  9. l2divinity has its issues but donators arent too OP and theres a ton of people online. giran is laggy as hell with all the shops.
  10. hate to be a buzzkill and im sure you have fun but theres no WAY you can have "mass pvp" with a grand total of 140 online. maybe 140 per side could be considered mass pvp but even that is kind of low for "mass" pvp.
  11. rather confused here, im trying to edit my l2.ini but everytime i do after i crypt and save l2 wont start. not even the splash comes up. no errors no nothing. just wont start. after i delete the edited l2.ini and replace it with one from the autoupdater it starts up just fine. anyone have any idea what im doing wrong? all im changing is the server address from l2authd.lineage2.com to a numerical ie; xxx.xxx.xxx.xxx
  12. thats not true. the script does work. http://www.filefront.com/17552241/Capture.JPG/ screenie taken after the System.dll update using L2net v387 with the v387 datapack and the rpg script. now, yes it definitely works, but there is a caveat of sorts. its buggy. mpj and obce(i think) originally wrote the script and it seems rpgclub has modified their packets again which is kinda fuckin with the script. no-one has gotten around to updating it and as such you get delays i skill use and other odd little bugs. but dont say it doesnt work.
×
×
  • Create New...