Results 1 to 9 of 9

Thread: need help please some one

  1. #1
    Join Date
    Feb 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need help please some one

    typical me, i jump in at the deep end and learn how to do the more complicated stuff rather than the easy stuff.

    what i need help with is:-

    in the SRLPlayerForms i have added Amount(the amount to do) but how do i get it to work.

    if any1 cound help id be really greatful.

  2. #2
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    post what u have done maybe u need to create a form that opens before SRL player form so u can add amount, loads etc



  3. #3
    Join Date
    Feb 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    procedure DeclarePlayer;
    begin
    SRLPlayerForm(true,['High Alch','Fire Staff','AntiBan','AntiRandoms'],['Amount'],[],[])
    end;


    how do i make them work

  4. #4
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    i dont get what u mean, the script has everything that u need, i think all u need to do is create a start click procedure here is an example that made for my autofighter

    SCAR Code:
    procedure StartClick(sender: TObject);
    begin
         userange := StrToBool(rangebox.text);
         mode := StrToInt(fightmodecb.text);
         evenskills := StrToBool(evenskillbox.text);
         arrowtype := arrowbox.text;
         foodcolor := StrToInt(foodcolorbutton.caption);
          foodname := FoodNameEdit.text
         mcolor1 := StrToInt(colorbutton1.caption);
         mcolor2 := StrToInt(colorbutton2.caption);
         mcolor3 := StrToInt(colorbutton3.caption);
         eathp := StrToInt(hpedit.text);
         monster := monstnameedit.text;
         lblUser.Caption := IntToStr(cUser);
         edNick.Text := Players[cUser].Nick;
         edUser.Text := Players[cUser].Name;
         edPass.Text := Players[cUser].Pass;
         if (Players[cUser].Active) then
            cbActive.Text := 'True'
         else
         cbActive.Text := 'False';
         MyAutofighter.ModalResult:= mrOk;
    end;

    maybe u just need something like that but so scar knows what everything in the form means



  5. #5
    Join Date
    Feb 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so if i put:-

    Amount:= Players[CurrentPlayer].Amount

    i dont know how to put it

  6. #6
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    i think something like
    SCAR Code:
    Amount:= StrToInt(Players[CurrentPlayer].Amount)

    should work



  7. #7
    Join Date
    Feb 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it says inval num of para

  8. #8
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    just make ur own form i think that its easier, i havent really used the SRLplayer form sorry



  9. #9
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You do it like this...

    SCAR Code:
    Program New;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Misc/Users.scar}

    Begin
    SetupSRL;

    SRLPlayerForm(true,['High Alch','Fire Staff','AntiBan','AntiRandoms'],['Amount'],[],[])

    Writeln(IntToStr(Players[CurrentPlayer].Integers[0]));

    End.

    You see. If you run that script. And type something in the amount box and click Exit on top right and click Start. It will right what you type. So you don't have to do anything as it already sets the integer to what you typed. If you need it more deeply explained just post and i'll go into more detail .

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
  •