Sven's UO Scripts

Sven's UO Scripts

 

 

Sven's Scripts

Site Navigation    


 Home

 Scripts

 Scripting

 Links

 Guestbook

 
 
 

what you need to know to script

When you're scripting something simple like Items and Mobiles the best skills you can have is using GM commands.

Its easier to make a script when you have pandoras box or Inside UO because they have the list of Static IDs, Hues, Mobiles, ect.

What you need

  • RunUO
  • Notepad

What you need to know about c#

  • // - Does not read anything after that point until you move onto another line.
  • { - Start of a section
  • } - End of section
  • = - Sets a property, used more for things like Hue, Name, and most other stuff you can find in the props menu.
  • ( ) - Place in a amount or setting.
  • {0}!! - Name of player's character.

other stuff

  • To set stats you put in Set/stat name in short from/( /#/, /#/ ); you can do the same for hits and damage EX: SetInt( 50, 80 );
  • When a prop is a text like name or anything else that gives a title to something, you have to but "name" EX: Name = "Village Idoit";

Commands

  • To set the access level is easy, you just look for the part that says it Server.Commands.Register( ", new CommandEventHandler( _OnCommand ) );
  • Commands are really easy; just download the shrink stuff, copy and edit another command script it with a new name, then copy the fuction from a diffent script.

 

 

Create a free website at Webs.com 

Sven's Scripts