|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Account Terminated
|
Ok This is my first real reward stone script with rares and tokens included!
You can change the rares if you like but dont take out my headers! There is a nice little gump and new rewardtokens that wont mess with any other token system you may have! I am using the tokens as rewards for events, everyone that joins the event gets 1-5 tokens and anyone that wins could get from 10-20 tokens, but you can hand out tokens how you see fit! This is what the stone, tokens, and gump looks like! ![]() Please post any errors or bugs so i may fix them! Installation is as follows! 1.) Download the .rar and unzip into your custom folder! 2.) Restart shard 3.) Use command [add rewardstone and [add rewardtoken 4.) Have Fun! If you get the error stating that the namespace already containes a dif or something like that look for 2 of the same file in your custom folder, Some of you may already have these rares but i made a few of these so i know you wont have 2. This is based off the EtherealStone but so you all know i made this and ust used the same consept I did not use anything from the EtherealStone exept the idea! If you try and flame me saying I stole this script you better back it up or I will stomp you to the ground!! I do not take to lightly to being flamed and i will pawn anyone that does so! |
|
|
|
|
#5 (permalink) | |
|
Newbie
Join Date: Jan 2005
Age: 22
Posts: 69
|
Quote:
|
|
|
|
|
|
#8 (permalink) | |
|
Forum Novice
Join Date: Dec 2004
Location: Middle of nowhere
Posts: 632
|
Quote:
__________________
sigtoobig Achilles Kingdom, Fun PvP/RP shard waiting for players.IP: 24.19.230.74, Port: 2593 |
|
|
|
|
|
#10 (permalink) |
|
Forum Newbie
Join Date: Feb 2006
Posts: 6
|
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings) - Error: Scripts\Customs\RewardStone\rares\CFire.cs: CS0246: (line 6, column 23 ) The type or namespace name 'BaseBodyPart' could not be found (are you missing a using directive or an assembly reference?) Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. |
|
|
|
|
#13 (permalink) |
|
Guest
Posts: n/a
|
the before msg.
------------------------------------------------- RunUO - [www.runuo.com] Version 1.0.0, Build 36918 Scripts: Compiling C# scripts...failed (1 errors, 0 warnings) - Error: Scripts\RewardStone\rares\CFire.cs: CS0246: (line 6, column 23) The ty pe or namespace name 'BaseBodyPart' could not be found (are you missing a using directive or an assembly reference?) Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. -------------------------------------------------- i dont have basebodypart anywhere else.. duno what to do >>Here it is.<< |
|
|
#15 (permalink) |
|
Guest
Posts: n/a
|
---------------------------------------------------
using System; using Server; namespace Server.Items { public class CFire : BaseBodyPart { [Constructable] public CFire() : base( AccessLevel.GameMaster ) { ItemID = 3555; } public CFire( 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(); } } } ------------------------------------------------------- i'l prolly change the rewards anyways, but just to see |
|
|
#16 (permalink) |
|
Newbie
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
|
Code:
using System;
using Server;
namespace Server.Items
{
public class CFire : BaseBodyPart
{
[Constructable]
public CFire() : base( AccessLevel.GameMaster )
Code:
using System;
using Server;
namespace Server.Items
{
public class CFire : Item
{
[Constructable]
public CFire() : base( AccessLevel.GameMaster )
|
|
|
|
|
#19 (permalink) |
|
Guest
Posts: n/a
|
sry, way too many errors in here
after you change that, you must change Carpet for the same thing and then this -------------------------------------------------------- Scripts: Compiling C# scripts...failed (1 errors, 0 warnings) - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS0115: (line 13, column 24) 'Server.Items.CarpetAddonDeed.Addon': no suitable method found to override Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. --------------------------------------------------------- after changing baseAddon to itemAddon also man, will this ever end *edit* ---------------------------------------------- public class CarpetAddonDeed : Item { public override Item Addon{ get{ return null; } } -------------------------------------------------- Last edited by Grom09; 03-29-2006 at 01:35 AM. |
|
|
#20 (permalink) |
|
Newbie
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
|
what that means is that you dont have a carpet addon deed... this guy did a horrible job with this....
*edit* sorry didnt read right.... Take off that extra addon Before Code:
public override BaseAddon Addon{ get{ return null; } }
Code:
public override BaseAddon{ get{ return null; } }
Last edited by Holstis; 03-29-2006 at 01:41 AM. |
|
|
|
|
#21 (permalink) |
|
Guest
Posts: n/a
|
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (8 errors, 0 warnings) - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1519: (line 13, column 28) Invalid token '{' in class, struct, or interface member declaration - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1519: (line 13, column 33) Invalid token '{' in class, struct, or interface member declaration - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1518: (line 16, column 10) Expected class, delegate, enum, interface, or struct - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1518: (line 21, column 10) Expected class, delegate, enum, interface, or struct - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1518: (line 25, column 19) Expected class, delegate, enum, interface, or struct - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1518: (line 50, column 19) Expected class, delegate, enum, interface, or struct - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1518: (line 57, column 19) Expected class, delegate, enum, interface, or struct - Error: Scripts\RewardStone\rares\CarpetAddonDeed.cs: CS1022: (line 63, column 2) Type or namespace definition, or end-of-file expected Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. ------------------------------------ please rewrite with errors? ![]() i need a normal reward stone. |
|
|
#23 (permalink) |
|
Guest
Posts: n/a
|
using System;
using System.Collections; using Server; using Server.Gumps; using Server.Items; using Server.Network; using Server.Targeting; namespace Server.Items { public class CarpetAddonDeed : Item { public override BaseAddon{ get{ return null; } } [Constructable] public CarpetAddonDeed() { Name = "carpet"; } public CarpetAddonDeed( Serial serial ) : base( serial ) { } public override void OnDoubleClick( Mobile from ) { if ( IsChildOf( from.Backpack ) ) BoundingBoxPicker.Begin( from, new BoundingBoxCallback( BoundingBox_Callback ), null ); else from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it. } private void BoundingBox_Callback( Mobile from, Map map, Point3D start, Point3D end, object state ) { IPoint3D p = start as IPoint3D; if ( p == null || map == null ) return; int width = (end.X - start.X), height = (end.Y - start.Y); if ( width < 2 || height < 2 ) from.SendMessage( "The bounding targets must be at least a 3x3 box." ); else if ( IsChildOf( from.Backpack ) ) from.SendGump( new CarpetGump( this, p, map, width, height ) ); else from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it. } 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(); } } } namespace Server.Gumps { public class CarpetGump : Gump { private const int EntryCount = 3; private BaseAddonDeed m_Deed; private IPoint3D m_P3D; private Map m_Map; private int m_Width; private int m_Height; public CarpetGump( BaseAddonDeed deed, IPoint3D p, Map map, int width, int height ) : base( 30, 30 ) { m_Deed = deed; m_P3D = p; m_Map = map; m_Width = width; m_Height = height; AddPage( 0 ); AddBackground( 0, 0, 450, 180, 9200 ); AddAlphaRegion( 12, 12, 381, 22 ); AddHtml( 13, 13, 379, 20, "<BASEFONT COLOR=WHITE>Choose a carpet type</BASEFONT>", false, false ); AddAlphaRegion( 398, 12, 40, 22 ); AddAlphaRegion( 12, 39, 426, 129 ); AddImage( 400, 16, 9766 ); AddImage( 420, 16, 9762 ); AddPage( 1 ); int page = 1; for ( int i = 0, index = 0; i < CarpetInfo.Infos.Length; ++i, ++index ) { if ( index >= EntryCount ) { if ( (EntryCount * page) == EntryCount ) AddImage( 400, 16, 0x2626 ); AddButton( 420, 16, 0x15E1, 0x15E5, 0, GumpButtonType.Page, page + 1 ); ++page; index = 0; AddPage( page ); AddButton( 400, 16, 0x15E3, 0x15E7, 0, GumpButtonType.Page, page - 1 ); if ( (CarpetInfo.Infos.Length - (EntryCount * page)) < EntryCount ) AddImage( 420, 16, 0x2622 ); } CarpetInfo info = CarpetInfo.GetInfo( i ); for ( int j = 0; j < info.Entries.Length; ++j ) AddItem( 20 + (index * 140 ) + info.Entries[j].OffsetX, 46 + info.Entries[j].OffsetY, info.Entries[j].ItemID ); AddButton( 20 + (index * 140 ), 46, 1209, 1210, i+1, GumpButtonType.Reply, 0); } } public override void OnResponse( NetState sender, RelayInfo info ) { Mobile from = sender.Mobile; if ( info.ButtonID >= 1 ) { BaseAddon addon = new CarpetAddon( info.ButtonID-1, m_Width, m_Height ); Server.Spells.SpellHelper.GetSurfaceTop( ref m_P3D ); ArrayList houses = null; AddonFitResult res = addon.CouldFit( m_P3D, m_Map, from, ref houses ); if ( res == AddonFitResult.Valid ) addon.MoveToWorld( new Point3D( m_P3D ), m_Map ); else if ( res == AddonFitResult.Blocked ) from.SendLocalizedMessage( 500269 ); // You cannot build that there. else if ( res == AddonFitResult.NotInHouse ) from.SendLocalizedMessage( 500274 ); // You can only place this in a house that you own! else if ( res == AddonFitResult.DoorsNotClosed ) from.SendMessage( "You must close all house doors before placing this." ); if ( res == AddonFitResult.Valid ) { m_Deed.Delete(); if ( houses != null ) { foreach ( Server.Multis.BaseHouse h in houses ) h.Addons.Add( addon ); } } else { addon.Delete(); } } } } } |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|