Deviouz1 Posted October 29, 2020 Share Posted October 29, 2020 Pretty self explanatory, but i can't bear to leave the body empty, so, a little backstory. I've been playing this shit since the beginning. before the beginning actually. closed beta march 2004 IIRC. i didnt get into botting until much later. had a thing against botters actually. then i grew up. went to college, got a job and, well, the rest is history. I got hooked on L2net and used it for a long time. but its been foreeeeeever since then and i cant quite figure out how to do the things i want to do anymore. it used to be i would go to the forums at insane gamers and d00d, mpj123, and... hell i dont even remember the other names anymore, were always willing to explain things. but now i cant find anyone who knows it. Looking in some sample scripts helps to some degree, but without having anyone to clarify anything, i'm struggling pretty bad. it's like trying to remember russian, when i wasnt very good at it in the first place, by using a list of russian words and a couple of russian newspaper articles. here are the JingJing commands and such. no descriptions, no definitions, nothing. just the commands: https://github.com/Xackery/l2net/wiki/L2net-Jingjing-Table-of-Contents And i cant seem to make heads or tails of a lot of it. Anyone know this apparently dead language? 1 Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted October 29, 2020 Toggle Staff Share Posted October 29, 2020 56 minutes ago, Deviouz1 said: Pretty self explanatory, but i can't bear to leave the body empty, so, a little backstory. I've been playing this shit since the beginning. before the beginning actually. closed beta march 2004 IIRC. i didnt get into botting until much later. had a thing against botters actually. then i grew up. went to college, got a job and, well, the rest is history. I got hooked on L2net and used it for a long time. but its been foreeeeeever since then and i cant quite figure out how to do the things i want to do anymore. it used to be i would go to the forums at insane gamers and d00d, mpj123, and... hell i dont even remember the other names anymore, were always willing to explain things. but now i cant find anyone who knows it. Looking in some sample scripts helps to some degree, but without having anyone to clarify anything, i'm struggling pretty bad. it's like trying to remember russian, when i wasnt very good at it in the first place, by using a list of russian words and a couple of russian newspaper articles. here are the JingJing commands and such. no descriptions, no definitions, nothing. just the commands: Register and/or login to see this content. And i cant seem to make heads or tails of a lot of it. Anyone know this apparently dead language? Hey! Glad to see another insane gamer around! Shame that the forum went away. I came back to L2Net few years ago and I definitely feel your pain. I ended up reading shared scripts and later on dug into the source of L2Net. There you can check what those methods actually do. I built a few extensive scripts, mostly processing and building packets myself. But in the end, it was easier for me to just code a feature into the bot instead of trying to deal with low level scripting language. What question do you have, maybe I'll be able to help you. 1 Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted October 29, 2020 Author Share Posted October 29, 2020 oh a ton, mostly pretty basic stuff I'm sure. especially at first. honestly, if i can get a hunting script and that egg delivery quest script I can probably take the stuff in there and Frankenstein something that would be serviceable if not shareworthy. In essence, i want to create a few different script templates to use in a number of scenarios. one for a TH to go gather all the treasure chests he can find, lots... and lots of pathing. That, i know how to do, how to interact with the NPCs? i remember using the debugger, and i have the bypass lines saved, but i cant for the life of me remember how to send that to the NPC. another one for duos, ideally just a "get buffs, go to a spot, hunt it until you die, tap to town, get buffs go to a spot, hunt till you die, etc.." nothing overly fancy, not looking to drop off anything in a warehouse or make any trades or anything. just buff-kill-die, buff-kill-die, buff-kill-die, ad nauseum. and one for full parties. I simply cannot get what I'm looking for with just the bot options it seems. One of the issues I'm having is that I'm no developer, or coder really. More of a scripter. I'm a fair hand with PowerShell, but that's about the only language I can claim to know at all. also, dear god will someone please help me understand how to make them login again automatically when disconnected. On another note, I work ... well, lets just say i'm a SCOM Admin of sorts. thats the System Center Operations Manager if youre unfamiliar. It's used to monitor server environments and allows you to write management packs that are used to alert when a bad thing happens on your custom application. system center also has two other products, Orchestrator, or SCORCH, and Config Manager, or SCCM. Using these things, i feel like i could effectively take the logistics nightmare out of running 50+ accounts at once. Basically, bot the bot. lol but i need a starting place. the ability to log in and select a character a framework for starting the app with the appropriate switches for the appropriate party members and their roles This is already mostly complete. i run a script, and 9 l2nets pop up prepopulated with the appropriate bot options looping hunting scripts that include pathing, buffs, resurrection, etc a way to make l2net fire events into the... probably application event log. would make creating rule based monitors in scom easy. i want to try to run like 200 accounts at once, without having to constantly tinker and fiddle. with what system center can do, if i can get the above things worked out, i can do this. eventually. will be a bitch to get it going, but once its rolling... ... now consider the siege ramifications O.o also, the hardware. I have two of these in my closet on CAT6, with SSDs, and a gigabit connection: Register and/or login to see this content. Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 10, 2020 Author Share Posted November 10, 2020 Hello Mantosh, anyone else, I feel like i may have come across wrong. I am literally not asking anyone to provide me a script that does everything i want. which is what i think i came off as. what i am looking for is some back and forth regarding whatever im working on. please bear in mind i have very limited scripting experience, and even that is only in powershell. I have added some comments to the below script. It was found on max cheaters and looks like it could very likely be modified to do what i am looking for. All of the original writers comments are intact, anything that starts with '//--' is from me. I've already made some changes that i think are putting me on the right track, mainly adding the Npc.l2c reference, and the objects one which i plan on using later, and then modifying everything in the ifs from Player* to Npc*. the Char_ vs Npc_ is a question, i have no idea how to know whether the info in the player has the same properties as the info in the npc. sorry for the terminology here, im sure im saying it wrong, but i hope you get my meaning. the comments i added are just comments to myself about what needs to be done to accomplish what i want to do, as well as places where im not sure about something or whatever. Also, i added the appropriate values for a dagger class. just something i modified, doesnt really matter much. more to show that i went through everything and did what i could before addressing things that would have to be addressed before event testing it really. One obvious thing to point out, i know the PVPFLAG references are NOT going to be available for an npc, at least, i wouldnt expect it to, and that that is something that i will need to change, just no idea what to change it to atm and figure i'll learn that going forward. i understand that is something to change, can you show me how to figure out what to change it to? lol Anyway, any assistance would be greatly appreciated and i will be happy to clarify my questions or anything if that would help. Register and/or login to see this content. 1 Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 10, 2020 Toggle Staff Share Posted November 10, 2020 Hey! Let's try to simplify things and work one thing at a time. I can't promise you much, but let's see what we can do Register and/or login to see this content. Yes, these call functions into separate threads, so that they can run independently. Register and/or login to see this content. The DO - LOOP 1 == 1 is the part that is looping inside of a thread, so it's always checking the inventory. You can find DO - LOOP 1 == 1 in Get_Target function too. Register and/or login to see this content. 3 hours ago, Deviouz1 said: the Char_ vs Npc_ is a question, i have no idea how to know whether the info in the player has the same properties as the info in the npc. The distance calculation is correct. Register and/or login to see this content. I would change PVPFLAG to ATTACKABLE. I'm not sure if NPCs have LOOKS_DEAD but you can test it out. 1 Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 11, 2020 Author Share Posted November 11, 2020 (edited) 1 hour ago, Mantosh said: These call functions into separate threads, so that they can run independently. Ok, is there any reason it should be in that part of the script? coming from powershell, it seems way out of place. like it just kinda shows up in the middle somewhere for no particular reason. if thats the case, is there anywhere it should NOT be? like, x has to happen first, then you start the threading, then you put in your functions or something? the flow of it confuses me. Quote Register and/or login to see this content. The DO - LOOP 1 == 1 is the part that is looping inside of a thread, so it's always checking the inventory. You can find DO - LOOP 1 == 1 in Get_Target function too. yeah, just wondering where the loop for those threads comes in. if they run in that order, which would make sense, ... wait. ... ... i feel like something just clicked. they arent running in an order. theyre constantly running "in their own thread" DUH! lol so lets say the function does not have a loop in it. does that mean that as soon as the function completes that thread goes away and you would have to spin up another one? if that's the case then basically, i could make as many threads as my box can handle, which is a lot, for things like keeping an eye on everything that is going on around each toon, based on whatever role they happen to play in my party. so i could have one monitoring for specific things to become perceivable like, say treasure chests, and if one becomes visible or whatever, stop the bot options, target the chest, move_to like in the other part of the script, and once within like 50 or so, use_item keyid, then pickup anything that popped out, and then re-enable the bot options to continue farming, for example. ? but if thats the case, isnt that what a function does anyway? whats the point of threading it? I feel like im missing something important here Quote Register and/or login to see this content. The distance calculation is correct. Yeah i figured that just a few moments before i popped back in her to see if i got a response. the above is basically filling the variable DISTANCE with a calculation made between the NPC coordinates, vs my "CHAR_" coordinates which ends up being an INT that will be used to determine which action to take next, based on how far away it is. Quote Register and/or login to see this content. I would change PVPFLAG to ATTACKABLE. I'm not sure if NPCs have LOOKS_DEAD but you can test it out. So, i was looking in the IDE for JingJing, and it lists the classes and such on the left and i can open them up and see most of the things in here, but i still dont understand how to reference each one of them. for example, the screenshots below are of the npc and player class files. their properties do seem to be pretty similar. as expected, the pvpflag one is not in the npc class: Register and/or login to see this content. Register and/or login to see this content. Having said that, I dont think the looks dead one will be very useful for this particular piece... but i do think its something i can incorporate somewhere else. what i desperately need now is a way to send that alt+b command and try to figure out how to navigate the menus and select what i am looking for. Edited November 11, 2020 by Deviouz1 Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 11, 2020 Toggle Staff Share Posted November 11, 2020 2 minutes ago, Deviouz1 said: does that mean that as soon as the function completes that thread goes away and you would have to spin up another one? Exactly 3 minutes ago, Deviouz1 said: but if thats the case, isnt that what a function does anyway? whats the point of threading it? The point would be that multiple things could be ran separately from each other. If you'd do one loop that would go through all the check and call functions in one thread then bot would do only that one thing until it's done. If it's casting a spell it wouldn't check for potion usage (just an example). Another thing to consider, you could pause threaded loops with global variables for cases like if the character is now in town, so a restock function will be called. While that is in progress we might want to stop auto potions, because it might interrupt purchasing (item usage closes trade dialog). Not a great example, but I hope it makes sense. 11 minutes ago, Deviouz1 said: but i still dont understand how to reference each one of them. Each parameter or each NPC? Parameter: Register and/or login to see this content. Each NPC: Register and/or login to see this content. Note: NpcList wasn't cleared every loop. Maybe you've noticed by now. 11 minutes ago, Deviouz1 said: I dont think the looks dead one will be very useful for this particular piece It would skip dead mobs that didn't fade-out yet. Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 11, 2020 Author Share Posted November 11, 2020 59 minutes ago, Mantosh said: The point would be that multiple things could be ran separately from each other. If you'd do one loop that would go through all the check and call functions in one thread then bot would do only that one thing until it's done. If it's casting a spell it wouldn't check for potion usage (just an example). Another thing to consider, you could pause threaded loops with global variables for cases like if the character is now in town, so a restock function will be called. While that is in progress we might want to stop auto potions, because it might interrupt purchasing (item usage closes trade dialog). Not a great example, but I hope it makes sense. iiiinteresting... ok, ok, so then what if i had a main script, that looped forever basically, and its entire job is to do nothing but "perceive" for the toon its running on, and interpret/react to events? i've seen some examples of setting up chat reception events, taking the message and using it to trigger functions. if i can figure out how that works, which im fairly sure i can, i can write a set of functions that could be called to do all sorts of things based on what i tell the toons to do, and from which chat it was received. theoretically, i could use clan and ally chats to send commands to an entire alliance/clan of toons. maybe make a clan for each 2 parties, and then use ally chats to send commands to specific clan leaders which would then, in turn send their own messages to their respective minions, and i could literally command an army of fearless, fanatically loyal, though admittedly kinda stupid toons to do my bidding on a party, clan, and alliance level, all from my dead toons ability to talk to teh bots. "/allychat ClanName01 LeaderName Delegate Party01 Function01 my_target" to which the clan leader would post in their clan chat a similar message telling the leader of Party01 to attack my_target Then i could send the next: "/allychat ClanLeaderName01 Delegate Party02 Function02 Party01" to which the clan leader would send party02 to monitor the area around party01, and engage any newcomers that come within range of party01.. or something. could even use them as macros allowing me to interactively control the individual parties when i want to, but allow them to do their normal thing otherwise. hrm... sorry, you may have noticed that i tend to dive headlong into my thoughts. anyway, 59 minutes ago, Mantosh said: Each parameter or each NPC? Parameter: Register and/or login to see this content. Each NPC: Register and/or login to see this content. Note: NpcList wasn't cleared every loop. Maybe you've noticed by now. not a chance, i'm not running it until i fully understand what it SHOULD be doing, and how so i can understand why it isnt doing what i want it to when it fails. For the moment i'm working on something a little less ambitious. one of the things that drives me nuts about the bot options is that it doesnt seem to work with toggle skills. takes a ton of DPS away from my AW parties. I need to rectify that. Like, now. my minions are hitting 70-76 currently. up until now things have been fairly smooth and with the buffs i wasnt really missing the damage, but now that theyre higher and my gear still kinda sucks, relatively speaking, i am definitely missing it and i could use all the help i can get with clearing rooms. suddenly using VS on 5 AWs should help accomplish that nicely Register and/or login to see this content. unfortunately, it just turns on and off every second. I believe this is because Toggle_1 is the skillID for VS, which will always be greater than 0. So, any idea how i can determine whether or not VS is currently active? i guess a better question would be, how do you see what is currently populating a variable? in powershell i would write-verbose "$var" after setting it to verify that it had what i was expecting it to have. But i cant seem to figure out how to do that. I did see this in the player.l2c: Register and/or login to see this content. but i havent the foggiest how to dig into that list to see whats in it. Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 11, 2020 Toggle Staff Share Posted November 11, 2020 Didn't I say one thing at a time? lol. Having quite fun actually. 46 minutes ago, Deviouz1 said: i've seen some examples of setting up chat reception events, taking the message and using it to trigger functions. That's what I (maybe we) call ChatControl or CC. I wrote quite extensive such script for Adrenaline, but haven't found time converting it to JJ. What I found in the archive is a script I wrote to send out academy (and later clan) invites, so our clanmates could always get an invite (and some cash). Here's a part of it which you could easily extend into your function calling and later on function call parsing as you've described. Register and/or login to see this content. By the way, I had a similar idea a few years ago. Ended up building a site to add things to the task queue The hardest part was creating actual scripts to perform things IG. Stopped after 3 weeks. One day... Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 12, 2020 Author Share Posted November 12, 2020 Does IG even work anymore? i thought it was defunct? Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 12, 2020 Toggle Staff Share Posted November 12, 2020 20 minutes ago, Deviouz1 said: Does IG even work anymore? i thought it was defunct? It does 1 Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 12, 2020 Author Share Posted November 12, 2020 wehehehehelll now.... I may have to dump tower. <goes to dig up the IG login process again> it's been foreeever since i last used IG L2net Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 12, 2020 Toggle Staff Share Posted November 12, 2020 21 minutes ago, Deviouz1 said: wehehehehelll now.... I may have to dump tower. <goes to dig up the IG login process again> it's been foreeever since i last used IG L2net l2.ini -> 127.0.0.1 L2.net -> IG -> Register and/or login to see this content. profit -> good Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 12, 2020 Author Share Posted November 12, 2020 Register and/or login to see this content. 1 Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 12, 2020 Author Share Posted November 12, 2020 (edited) this changes everything. this will let me go set up a polygon, get them going, and then exit the client. half the time i wake up and my party leader is dead because the client bugged out and crashed. this should help avoid that. Edited November 12, 2020 by Deviouz1 Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 15, 2020 Author Share Posted November 15, 2020 and now i remember the problem with IG lol. the IG clients die quick. "Out of virtual memory" error. OOG doesnt do that. it may work but it doesn't actually "work". Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 16, 2020 Toggle Staff Share Posted November 16, 2020 6 hours ago, Deviouz1 said: and now i remember the problem with IG lol. the IG clients die quick. "Out of virtual memory" error. OOG doesnt do that. it may work but it doesn't actually "work". Which L2Net version are you using? Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 17, 2020 Author Share Posted November 17, 2020 not exactly sure tbh. Here is the Help > About Register and/or login to see this content. Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 17, 2020 Toggle Staff Share Posted November 17, 2020 Where did you get it from then? Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 17, 2020 Author Share Posted November 17, 2020 I believe this is the one from the insane gamers site, though i did grab another version at one point as well. Is there a version i should be looking for? Quote Link to comment Share on other sites More sharing options...
Toggle Staff Mantosh Posted November 17, 2020 Toggle Staff Share Posted November 17, 2020 2 hours ago, Deviouz1 said: I believe this is the one from the insane gamers site, though i did grab another version at one point as well. Is there a version i should be looking for? You can try this one Register and/or login to see this content. Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 17, 2020 Author Share Posted November 17, 2020 (edited) ah HAH! that is, in fact, what I'm using. Register and/or login to see this content. My D drive. Register and/or login to see this content. Since it (the error) referenced Virtual Memory, which is slightly odd as I have 32 GB of DDR4, my memory usage never got above like 45% or so, I removed the page file from the C drive and added it to the E drive and set it to 100GB. It's made quite the difference in my Tower toon's performance, but it didn't seem to have any affect whatsoever with the L2net IG, which I also thought was odd. why would it affect one but not the other? Anyway, once I reach a stopping point, I'll go log out one of my toons and log it in with L2net IG, let it die, and post the error it throws. Maybe I'm missing something? Edited November 17, 2020 by Deviouz1 Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 20, 2020 Author Share Posted November 20, 2020 (edited) On 10/29/2020 at 1:13 PM, Mantosh said: I built a few extensive scripts, mostly processing and building packets myself. So, i went into L2net and turned on the client dump mode then went into the client and hit alt+b. this produced the following: alt+b: 9:14:52 PM :[CLIENT DUMP: 23 5F 00 62 00 62 00 73 00 68 00 6F 00 6D 00 65 00 00 00 if i want to tell the client to do that via script, how would i do it? O.o i see some similar references in the script above, but they're all referring to speaking to an npc. i'm assuming this wouldn't be the same process but i cant seem to find anything poking around the internet. I then went and performed the same action using the packet window and see this GAH... dammit, i didnt mean to post that yet. to be continued momentarily. Edited November 20, 2020 by Deviouz1 Quote Link to comment Share on other sites More sharing options...
Deviouz1 Posted November 20, 2020 Author Share Posted November 20, 2020 Register and/or login to see this content. When i copy the hex found on the right into the field at the bottom and hit inject,. i can see the community window pop open and if i hit it again, it closes. soi i know thats the right thing to do, but i've no earthly idea how to send that packet via script. Tips? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.