Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/14/21 in Posts

  1. Loyal osbot users, we are going to be giving away a few vip packages this week. All you have to do is like this thread and comment why you should win! Random number generator will be used for 4 of the 5 winners. The 5th winner will be chosen by myself with the best reasoning why they should win the 1 year vip. Prizes: 2x - 1 month VIP 1x - 3 month VIP 1x - 6 month VIP 1x - 12 month VIP Giveaway will end Saturday Winners will be announced Saturday night thank you for continued support of osbot, Maldesto
    26 points
  2. Because im Scottish.... and Script Factory = Best Script. Big up @ProjectPact
    1 point
  3. @BloodyNoah WebWalking is a Global walker, it utilizes a large sum of data which can increase a clients ram by 300-500MB(This was planned to switch over to server side no idea if it's still planned or not, check OSBot V3 thread). The idea is you can walk to nearly any location in game from any location by just putting getWalking.webWalk(Location); Normal Walker can be utilized to create your own walking paths to help reduce ram consumption consumed by web walking. Or be used to just walk 10 tiles nearby instead of using the WebWalker. But if you want to walk from Varrock to Falador you will have to create your own path or use WebWalking; Since it will only use the tiles that are rendered to the client(Think this distance varies and can be anywhere from 15-24 tiles away). TL;DR Webwalking greatly increases client ram. Normal walker has to build your own walk paths from scratch.
    1 point
  4. Seems that the price wasn't initialized correctly. Let me know if it keeps happening.
    1 point
  5. Gunman is like a condom “here for your protection”
    1 point
  6. What makes me so great, I am unpredictable that way
    1 point
  7. Don't give it to this scrub, he doesnt even have a regular sleep schedule
    1 point
  8. I use this Script for a while now on a coupple accounts and I never got banned
    1 point
  9. Hello, I hope this code helps you. [edited 06072020] Over heads is about 10-20mb of ram but is worth it becuase of how flexable it is. How to use new Packets Packets are usefull because you can send data and both sides know what is being sent and how to use it. Examples of packets I have made mouse packet that takes an x and a y and a mouse button and when executed will click on the screen. The example below is from my login packet takes a name, password and a world. The server will send this to a client and using code in the script will log in. Goto src/com/bacon/eco/server/shared/packets Make a new Packet that "implements IPacket" Go to PacketType enum add this line ClassName(last number ++ , com.bacon.eco.server.shared.packets.ClassName.class), You will see 4 override methods echo, send, receive, execute in the new Class you just made Make 2 constructors like This. One needs to have 0 args taken, other can take what ever you want. public LoginPacket() { } public LoginPacket(final String username, final String password, final int world){ this.username = username; this.password = password; this.world = world; } echo -has a boolean and if the server ever gets this packet it will send the info to everone- good for pking and ge merching. send - Inside send you need to use connection.writeString, connection.writeInt, ... and others in the order that you want to send them @Override public void send(ActiveConnection connection) { connection.writeString( this.username); connection.writeString( this.password); connection.writeInt( this.world ); } receive - Inside receive use connection.readString,connection.writeInt in the same order as above. @Override public void receive(ActiveConnection connection) { this.username =connection.readString(); this.password=connection.readString(); this.world =connection.readInt(); } execute - put what you want your bot to do here @Override public void execute(ActiveConnection connection) { if ( Client.mp !=null) Client.mp.loginToAccount( username,password ); if ( Client.mp !=null) Client.mp.hopto( world ); } This will does the same this as excute inside the packet (just rember to leave execute blank or it will do both). make getters and inside Client -> handlePacket -> add code like this if (clazz == LoginPacket.class) { final LoginPacket packet = (LoginPacket)Ipacket; if ( Client.mp !=null) Client.mp.loginToAccount( packet.username() ,packet.password() ); if ( Client.mp !=null) Client.mp.hopto( packet.world() ); return; } How to add P2P messages Make a new Class Add it to the Enum PacketType Goto com.bacon.eco.server.server.network.Controller under handlePacket make code like this Test your code (example P2PMessagePacket) go to TestClient write some code like this. compile and run Change the code to un comment to see them talk to each other. out put shoud look like Adding useful info AbstractPingPongPacket these send a request for data [Advance] PingPacket this updates the server ever 3 seconds. info that could go in here userloged in username [example script you need write this your self] current script runnign User location much,much more Sever-side Tuning Basicly you can make methods that can be controlled by a gui or CLA with a scanner : Example This tells all accounts to log out or just some amount. public void sendlogouts(int logoutAmount) { final Set<ActiveConnection> clientSet = clients.keySet(); int count = 0; for (final ActiveConnection connection : clientSet) { if (connection.getType() == 1 && (count < logoutAmount || logoutAmount == -1)) { count++; connection.addPacket(new LogoutPacket()); } } } Adding it to your scripts Examples from my scripts This is code was my frist draft on networking.Code update to add change in How to use [06072020] Things that can be added: if your connection drops out then try to reconnect. Better way to drop old conections- at the moment if you get sent 10 null messages in a row the connetion is droped. Things that can be ran TestClient Mainserver Example (script) Any questions or help just ask. update [06072020] Username is example script needs to be defined in some way by you. code_06072020.zip
    1 point
×
×
  • Create New...