PDA

View Full Version : Switching Worlds?



dannynandez
03-22-2013, 09:59 PM
I'm in the process of writing a script for 07. I need my bot to be able to log in and out of different worlds on its own, and was wondering if there is a way to do this. If anyone has any suggestions, please post. Thank you.

Ashaman88
03-23-2013, 01:56 AM
Checkout the worldswitcher.simba file for OSR includes. At least I think it's worldswitcher can't remember file name exactly :/

dannynandez
03-23-2013, 04:56 PM
This world switcher is for EOC RS. It uses the lobby interface to switch worlds. I need an 07 version of this pretty much.

Sjoe
03-23-2013, 05:11 PM
The worldswitcher in SRL is for EOC, the worldswitcher in SRL-OSR is for 07. This is what Ashaman88 is talking about: https://github.com/SRL/SRL-OSR/blob/master/SRL/core/worldswitcher.simba

I don't think that's updated though, or is it? :p

The Killer
03-23-2013, 05:14 PM
I don't think that's updated though, or is it? :p

Only one way to find out ;)

Ashaman88
03-23-2013, 06:54 PM
I don't think that's updated though, or is it? :p

Yes it is!!! Almost all of the include besides randoms is done

dannynandez
03-23-2013, 07:17 PM
Thanks for the link Ashaman. I incorporated the world switching into my script but now P07Include is not working at all. I'm getting duplicate/unknown identifier errors on irrelevant lines of P07Include. Should downloading the includes provided on the SRL-OSR page and getting rid of everything P07-related fix this issue?

Ashaman88
03-23-2013, 10:45 PM
Thanks for the link Ashaman. I incorporated the world switching into my script but now P07Include is not working at all. I'm getting duplicate/unknown identifier errors on irrelevant lines of P07Include. Should downloading the includes provided on the SRL-OSR page and getting rid of everything P07-related fix this issue?

Yeah you don't want both of them in there - nor any of the regular include, just SRL-OSR stuff included

dannynandez
03-24-2013, 05:37 AM
Thank you so much, it's running smoothly. I really appreciate you helping a novice scripter like me.