Perfect EA Simulation

Post your Custom Scripts or Packages.
Post Reply
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Perfect EA Simulation

Post by runtest »

Hey I made a script that will emulate EA perfectly.

Code: Select all

use uo;
use os;
use util;

program textcmd_lagtest( who )
	var counts := 0;
	While(counts <= 120)
		foreach charonline in EnumerateOnlineCharacters()
			MoveCharacterToLocation(charonline, charonline.x+1, charonline.y+1, charonline.z, MOVECHAR_FORCELOCATION);
		endforeach
		counts := counts + 1;
		SendSysMessage(who, "Complete: " + counts + " / 120" , color := 65 );
		Sleepms( RandomInt(1000) );
		foreach charonline in EnumerateOnlineCharacters()
			MoveCharacterToLocation(charonline, charonline.x-1, charonline.y-1, charonline.z, MOVECHAR_FORCELOCATION);
			SendSysMessage(charonline, "Complete: " + counts + " / 120" , color := 65 );
		endforeach
	endwhile
endprogram
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

A better approach is a 2 script method

Annoy.src

Code: Select all

program LagPlayer(data)
   var mobile := data[1]; // mobile
   var position := data[2]; // struct

   while ( mobile.online )
       MoveObjectToLocation(mobile, position.x, position.y, position.z, mobile.realm, MOVEOBJECT_FORCELOCATION);
        SleepMS(RandomInt(10)+1);
    endwhile

    return 1;
endprogram
StartAnnoyance.src

Code: Select all

program AnnoyThemToDeath()
     foreach mobile in ( EnumerateOnlineCharacters() )
          var pos := struct;
          pos.+x := mobile.x;
          pos.+y := mobile.y;
          pos.+z := mobile.z;
          Start_Script("Annoy", array{mobile, pos});
          SleepMS(2);
     endforeach
     return 1;
endprogram
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm

Post by Justae »

*chokes with laughter*

Man oh man, when I saw these scripts, I had real tears in my eyes, laughed so hard my Wife thought I was watching monkey pr0n.

Hehe, thanks for the chuckles, Austin. Devious tho, April 1st is a long way off for my players, but still.....

Cheers
Justae
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post by runtest »

Pfhhh Showoff. ROFL
Post Reply