[Question] [Private Server] Trade Help required 2 way Private server


#1

Hi,
I have created a tradescript from alex to consta and back.
But the server gives rewards for trading one way and then you need to disconnect to get reward.
My script buys from alex sells in consta. then disconnects and then i have the script from consta to alex.
My problem is the bot buys from alex sells in consta. then disconnects but after relog it cant continue the script from where it stopped .
Can someone help me.
Let me know if any more details is required.

Thanks.


#2

I believe you can add disconnect to the end of your script and that will disconnect from the server.


#3

HI,
My script looks somewhat like this:

  1. Start from Alex
  2. Buy trade items
  3. Move
  4. Reach Const and sell trade items
  5. Disconnect
  6. Buy trade items from Const
  7. Move
  8. Reach Alex and sell trade items

So my bot does steps 1 to 5 then disconnects ( i receive my reward).
Now when it reconnects i want the bot to continue from step 6.
Is this possible ?(from plugin or any other method?)

P.S. after the bot reconnects i get error saying cannot walking from this server i.e. it is trying to run the script again. ( i want it to continue from step 6)

Thanks.


#4

You’d need to modify town scripts instead.


#5

Tried modifying it but i think it is still taking the cordinates from the script.

This is the error.
[18:09:54] Script: You loaded the wrong script for this town, stopping bot


#6

What you should do is make your first town script end at the the spawn position of the second town. Your second town script starts in the spawn then you do everything as normal.


#7
  1. Start from Alex
  2. Buy trade items
  3. Move
  4. Reach Const and sell trade items
    4.5 dismount pet
  5. Disconnect
  6. Relog + return?

#8

Thanks guys working now. Just edited both the town scripts…:grin::grin::grin: