Wanted Posted August 31, 2011 Share Posted August 31, 2011 http://wiki.scar-divi.com/osi/index.php?title=WorldSwitcher.scar All worldswitcher related tested to be discussed in this thread. Just now I have completed FindWorld. I have designed it to return the exact point of the world number. However the part of the function that is actually played out is designed to be extremely human allowing the world to appear anywhere from the top to the bottom of the scroll bar and to be found quickly via dragging the bar, cancelling if the world is found at any phase during the operation. To test FindWorld for this functionality purpose and give feedback use this simple test script and input different valid world numbers... remember not all world numbers are valid (not all numbers from 1 to 179) Utilization of the output point will be made human like with the box creation based on this point. [sCAR]{$DEFINE RS2} {.include OSI\OSI.scar} var P: TPoint; begin SetupOSI; WriteLn(BoolToStr(FindWorld(P, 27))); MMouse(P.X, P.Y, 0, 0); FreeOSI; end.[/sCAR] Quote Link to comment Share on other sites More sharing options...
Jakkle Posted September 1, 2011 Share Posted September 1, 2011 When I used the Compile Testing File it came up with this Compiling Error: line 156, WorldSwitcher.scar, Unknown Identifier 'splitTPA' Quote Link to comment Share on other sites More sharing options...
FHannes Posted September 1, 2011 Share Posted September 1, 2011 Download this and put it in your plugins folder: http://villavu.com/repositories/srl-opendev/place%20inside%20plugins%20folder/WizzyPlugin.dll Quote Link to comment Share on other sites More sharing options...
Jakkle Posted September 1, 2011 Share Posted September 1, 2011 Could you not add that to the download ? Thats sorted it out thanks. Quote Link to comment Share on other sites More sharing options...
FHannes Posted September 1, 2011 Share Posted September 1, 2011 No, it's part of SRL. Quote Link to comment Share on other sites More sharing options...
Jakkle Posted September 1, 2011 Share Posted September 1, 2011 Ah ok, I see. Will someone be making one soon for scar soon then ? Quote Link to comment Share on other sites More sharing options...
FHannes Posted September 1, 2011 Share Posted September 1, 2011 There's one in SCAR, TPAChain, but it has a bug atm. Quote Link to comment Share on other sites More sharing options...
Jakkle Posted September 1, 2011 Share Posted September 1, 2011 I see, well hope it gets fixed soon Quote Link to comment Share on other sites More sharing options...
Wanted Posted September 11, 2011 Author Share Posted September 11, 2011 New functions need testing! GetWorldInfo RandomWorld SelectWorld Quote Link to comment Share on other sites More sharing options...
Jakkle Posted September 11, 2011 Share Posted September 11, 2011 Is this how I would do RandomWorld ? [scar]begin SetupOSI; DeclarePlayers; MouseSpeed := RandomRange(15, 19); LoginPlayerToLobby; WaitRR(500, 1000); RandomWorld(0,0,0,0); WaitRR(5000, 6000); MainLoop; ScriptTerminate; end.[/scar] If that is right then its not working for me. Also how do you set up GetWorldInfo(11,'this bit'); SelectWorld works fine. Quote Link to comment Share on other sites More sharing options...
Wanted Posted September 11, 2011 Author Share Posted September 11, 2011 RandomWorld just outputs a number Update OSI again, made the current RandomWorld RandomWorldEx WriteLn(RandomWorld(False)); WriteLn(RandomWorldEx(0, 0, 2, 2)); Quote Link to comment Share on other sites More sharing options...
Jakkle Posted September 12, 2011 Share Posted September 12, 2011 I updated and used this SelectWorld(RandomWorldEx(0,0,0,2)); Which worked Edit: Just wondering will you do it so its log in to lobby, choose world then 'ClickPlay' as a separate function ? Quote Link to comment Share on other sites More sharing options...
Wanted Posted October 11, 2011 Author Share Posted October 11, 2011 No need for ClickPlay, use Login; http://wiki.scar-divi.com/osi/index.php?title=WorldSwitcher.scar Quote Link to comment Share on other sites More sharing options...