Jump to content
Wanted

Worldswitcher.scar testing

Recommended Posts

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]

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...