Adblock breaks this site

First Script need help please

Discussion in 'Scar/Simba Help' started by jaimefire2, Feb 23, 2008.

  1. jaimefire2

    jaimefire2 Forum Addict

    Joined:
    Feb 19, 2008
    Posts:
    401
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please

    I've read many guides and i still not very fond of scripting. I think i get the basic concept but it get mixed up with the variables and procedures. Here is my first ever script its not even close to done, but i think im at the part where i should put the variables but im not sure how to do it. So i would appreciate your help and i would give you credit for the script. Thanks:)

    Code:
    Program autotalker;
    Begin

    Writeln('Plese Report problems')
    end;

    Const

    Msg = Hey;// write what you want to say here

    Msg2 = sup;// write the second thing you want to say here

    Eff1 = wave2;// what effect you want to do

    Eff2 = flash2;// what effevt you want for message 2

    Msginterval = 5000;// how long before each message

    loops = 100;// how many times you want to say the message.

    lastcall = 1// 1 if you want the autoer to say last call after all the loops.
    //0 if you want it to execute

    Logout = 1// if you want to log out and say too late when done with the loops.








    var

    a, x, y: integers;

    a:=0;

    x:= lastcall;

    y:= logout;
     
  2. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please

    If you wanna autotalk, instead of "Msg1 = Hey;" put " Msg1 = 'Hey'; cuz "hey" is a word not a number so it must be in strings.The same for the effects and msgs.
     
  3. jaimefire2

    jaimefire2 Forum Addict

    Joined:
    Feb 19, 2008
    Posts:
    401
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please


    so just change msg to msg1 and it becomes a string?:confused:
     
  4. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please

    no, Put 'hey' instead of hey
     
  5. jaimefire2

    jaimefire2 Forum Addict

    Joined:
    Feb 19, 2008
    Posts:
    401
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please

    okay so even with the effects i put 'wave2';?
    and if so how do i do the parts with the variables.
    sorry im asking so much but i really want to learn how to script
     
  6. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please

    Yes with effects too. You can dont need vars. const can be used without vars, the script should be something like this:
     
  7. jaimefire2

    jaimefire2 Forum Addict

    Joined:
    Feb 19, 2008
    Posts:
    401
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please

    thats where you lost me, where do you learn all the commands and stuff? im really sorry im asking you alot but i had not past experience with scripting at all:eek:
     
  8. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    First Script need help please

    Go to www.srl-forums.com there are a lot of tuts there
     
< Weird scar error plz help | Greets >


 
 
Adblock breaks this site