Results 1 to 3 of 3

Thread: Two Questions?

  1. #1
    Join Date
    Oct 2011
    Location
    Vegas :D
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Two Questions?

    Hey Guys,

    I have to Questions.
    1. (I'm going to assume the MMouse method so,) How would one randomly move the mouse off screen, using SMART?
    2. Is there any way to get the players Username, not using the Declare Players

    Thanks!~

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    1) Using SMART, there is no area to move mouse off of. However, I'm sure you could try adding huge random areas to the MMouse();

    2) DeclarePlayers sets up the players so you can do "Players[CurrentPlayer].Name"
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Without using Declare players, It's not too hard.. just check out the code below.. it should get most if not all player names.. Player must be logged in though else there is no other ways.

    Simba Code:
    Function GetPlayerName: String;
    var
      B: TBox;
      Str: String;
      I: Integer;
    begin
      B:= IntToBox(8, 458, 129, 476);
      Str:= Trim(GetTextAtExWrap(B.X1, B.Y1, B.X2, B.Y2, 0, 5, 2, 0, 4, SmallChars));

      For I:= 1 To High(Str) do
        if (ord(Str[I]) = 32) then         //32, 183, 183, 0 .......  32, 183, 183 = weird ASCII chars from the quickchat bubble.. 0 = Null-T..
          break;

      if (I <> 0) then
        Delete(Str, I, I);

      Result := Str;
    end;

    begin
      writeln(GetPlayerName);
    end.
    I am Ggzz..
    Hackintosher

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •