Thread: xScript first script engine of RSPS

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 xScript first script engine of RSPS 
    Registered Member
    wizzyt21's Avatar
    Join Date
    Aug 2007
    Posts
    1,167
    Thanks given
    49
    Thanks received
    12
    Rep Power
    156
    This is xScript converted to 508 and my developing 521 with some new language improvements, anyways you judge it..

    Who do you think is better, effective and easier to use?

    Watch basic xScript v1
    Language definition(xscript v2 <-- the 317 version):
    Code:
    start/initialise:
    
    *wait* <-- used to wake up all other scripts which are being used and queue them after this script.
    
    var dBarTwo: (integer)playeritem/4151;<--- create new variable and take its place as the players whip(if they have one)
    
    var dBar: (integer)5; <--- create and initialise a variable
    
    if (var dBar) is *higher* or is *equal* to (var dBarTwo) <--- currently variables cannot have numbers in them or you get incompleteScriptException thrown..
    
    (*you can do more things from v1 xscript this is how you comment things out, currently one line*)
    an example script code of version 1.5<--- converted 508 version:
    Code:
    new frame:ded;
    *wait*
    additem:4151:1;
    *wait*
    end frame;
    
    
    new frame:ded2;
    *wait*
    sendmessage:im sorry u arent dead lololol;
    *wait*
    end frame;
    
    
    start:
    playergfx:43:100;
    new var hi:getfromrange:4:0;
    if(900 is lesserThan (getvar:hi)) goto frame ded;
    try else goto frame ded2;
    end;
    
    
    catch exceptions: 3:0:0:1;
    notify xscript run;
    end xscript(if poss);
    xScript snippets of code:
    Code:
    	protected HashMap<String, Integer> variables = new HashMap<String, Integer>();
    Used inside of frames and in the main start script..
    Code:
    	protected void newFrameCommand(String newCommand)
    	{
    		if (offset >= frameCommands.length) offset = frameCommands.length;
    		frameCommands[offset++] = newCommand;
    	}
    	public void fireCommands()
    	{
    		System.out.println("Firing commands for frame: "+frameName);
    		for (String w : frameCommand)
    How the frame's commands are fired out from the main start script

    Code:
    							if (integers[0] >= integers[1])
    							{
    								String frameName = getFrameName(533);
    								xFrame frame = xEngine.fullframe.get(frameName);
    								if (frame != null) frame.fireCommands();
    							}
    Part of the if statements in thProxy-Connection: keep-alive
    Cache-Control: max-age=0

    scripts..

    Code:
    					if (state[3].startsWith("(getvar:"))
    					{
    						String var = state[3].substring(state[3].indexOf(":") + 1, state[3].indexOf(")"));
    						Integer i = variables.get(var);
    						if (i != null) secondVariable = i;
    					}
    Self explanatory

    Code:
    	protected HashMap<String, xFrame> fullframe = new HashMap<String, xFrame>();
    All frames here..






     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Pretty cool

    Attached image

     

  3. #3  
    Registered Member
    wizzyt21's Avatar
    Join Date
    Aug 2007
    Posts
    1,167
    Thanks given
    49
    Thanks received
    12
    Rep Power
    156
    Lol thx, the biggest script on my 317 was 239kb for a quest..
    YOU JUST GOT KNOCKED THE F*CK UP.
     

  4. #4  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    Looks good, but i've seen others
     

  5. #5  
    Registered Member
    wizzyt21's Avatar
    Join Date
    Aug 2007
    Posts
    1,167
    Thanks given
    49
    Thanks received
    12
    Rep Power
    156
    Updated: converted v1.5 to my 508 base..
    YOU JUST GOT KNOCKED THE F*CK UP.
     

  6. #6  
    Banned

    Join Date
    Sep 2006
    Age
    31
    Posts
    3,019
    Thanks given
    22
    Thanks received
    420
    Rep Power
    0
    Good job

    Didn't know any 317s had a scripting engine
     

  7. #7  
    xema
    Guest
    why did u chng the code u didnt hv start or end; in ur old script!!!!

    o u chnd it on v1







    whn u relesin full shops???? btw ur vid link xpyrd for shops and trde on ur 508 ur goin good on ur 521 btw!!!!
     

  8. #8  
    Registered Member
    wizzyt21's Avatar
    Join Date
    Aug 2007
    Posts
    1,167
    Thanks given
    49
    Thanks received
    12
    Rep Power
    156
    Quote Originally Posted by xema View Post
    why did u chng the code u didnt hv start or end; in ur old script!!!!

    o u chnd it on v1







    whn u relesin full shops???? btw ur vid link xpyrd for shops and trde on ur 508 ur goin good on ur 521 btw!!!!
    Why do you seem to be stalking me? You even have a similar name of my server Xeta > Xema?
    And the video link expired because I made it expire there's a new version.. still need to get login correct for 521.
    YOU JUST GOT KNOCKED THE F*CK UP.
     

  9. #9  
    xema
    Guest
    Lol banned owned now u neva gnna get vet position!!!!!!!!!!!!
     

  10. #10  
    Renown Programmer
    veer's Avatar
    Join Date
    Nov 2007
    Posts
    3,746
    Thanks given
    354
    Thanks received
    1,370
    Rep Power
    3032
    i released a scripting engine months ago???? (as peehpee)

    how is this the first?
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

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