|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Oct 2003
Posts: 38
|
a floating sphere ,that when clicked will summon a deathwyrm as a pet.long time since ive added any scripts .since the idols. just drop in customs and restart server .injoy let me know how you guys like them.just drop files in customs and restart server.
Last edited by roughhouse; 02-24-2006 at 12:34 AM. |
|
|
|
|
#3 (permalink) |
|
Forum Expert
|
To "work" a *.cs script, you simply need to put the *.cs files into your scripts directory in the RunUO directory. A lot of people have a custom folder inside their main scripts folder for scripts that they download from the runuo forums.
Check HERE for more information on where scripts go.
__________________
In some cases stupid makes you win-Radwen |
|
|
|
|
#4 (permalink) |
|
Join Date: Feb 2006
Posts: 12
|
GAHHHHHH... I knew I should of been born a blonde an not a blackie... This is how it came out.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace AncientSummonSphere.cs using System; using Server.Items; using Server.Mobiles; using Server.Network; namespace Server.Items { public class Ancientsummonsphere : Item { [Constructable] public Ancientsummonsphere() : base( 14265 ) { Movable = true; Name = "a ancient summon sphere"; LootType=LootType.Blessed; } public override void OnDoubleClick( Mobile from ) { PlayerMobile pm = from as PlayerMobile; if ( !IsChildOf( from.Backpack ) ) { from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it. } else if( from.InRange( this.GetWorldLocation(), 1 ) ) { from.FixedParticles( 0x373A, 10, 15, 5036, EffectLayer.Head ); from.PlaySound( 521 ); deathwyrm deathwyrm = new deathwyrm(); deathwyrm.Controled = true; deathwyrm.ControlMaster = from; deathwyrm.IsBonded = false; deathwyrm.Location = from.Location; deathwyrm.Map = from.Map; World.AddMobile( deathwyrm ); from.SendMessage( "You Summon a DEATHWYRM." ); this.Delete(); } else { from.SendLocalizedMessage( 500446 ); // That is too far away. } } public Ancientsummonsphere( Serial serial ) : base( serial ) { } public override void Serialize( GenericWriter writer ) { base.Serialize( writer ); writer.Write( (int) 0 ); // version } public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); } } } |
|
|
|
|
#5 (permalink) |
|
Forum Expert
|
Ahhh, yeah that would be hard to read through. I believe there is a post in the FAQ forum about scripts looking weird through notepad. Should be the first or second thread in the FAQ forum.
http://www.runuo.com/forums/faq-forum/
__________________
In some cases stupid makes you win-Radwen |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|