Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 11-07-2005, 12:53 AM   #1 (permalink)
Account Terminated
 
Join Date: Sep 2004
Location: westvirginia
Age: 30
Posts: 535
Send a message via AIM to masternightmage Send a message via MSN to masternightmage Send a message via Yahoo to masternightmage
Default Reward Stone!

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!
Attached Files
File Type: rar RewardStone.rar (11.6 KB, 492 views)
masternightmage is offline  
Old 11-14-2005, 10:31 PM   #2 (permalink)
 
Join Date: Jan 2004
Posts: 17
Thumbs up Coolness

i like it good job my player love it keep up the good work
moongrowler is offline  
Old 02-10-2006, 12:44 AM   #3 (permalink)
 
Join Date: Feb 2006
Posts: 9
Default

I put it into my custom file and log in but there is no reward stone.... any ideas?
Draggonslayer is offline  
Old 02-10-2006, 02:49 AM   #4 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

Did you try [add rewardstone? If you did...what did it do when you tried?
__________________


UO Art
Come visit us! It's all about the artwork.
Tannis is offline  
Old 02-10-2006, 07:15 AM   #5 (permalink)
Newbie
 
Sleepy Char's Avatar
 
Join Date: Jan 2005
Age: 22
Posts: 69
Default

Quote:
Originally Posted by masternightmage
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!
It's a great script, but there's no need to be so aggressive.
Sleepy Char is offline  
Old 02-10-2006, 07:30 AM   #6 (permalink)
 
Join Date: Sep 2005
Location: Roxboro, NC, USA
Age: 32
Posts: 139
Default

LMAO total pawnage never heard that one before. Nice script though. keep up the good work.
dashiznit_76 is offline  
Old 02-10-2006, 06:03 PM   #7 (permalink)
 
Join Date: Feb 2006
Posts: 9
Default

I type the [add rewardstone comes up with the menu and says, "nothing matched your search terms."
Draggonslayer is offline  
Old 02-10-2006, 07:52 PM   #8 (permalink)
Forum Novice
 
zachseitz's Avatar
 
Join Date: Dec 2004
Location: Middle of nowhere
Posts: 632
Default

Quote:
Originally Posted by Draggonslayer
I type the [add rewardstone comes up with the menu and says, "nothing matched your search terms."
Did you Extract the .rar file? It will not add if you don't Extract it. Simply right click the .rar file and click Extract Here
__________________
sigtoobig
Achilles Kingdom, Fun PvP/RP shard waiting for players.IP: 24.19.230.74, Port: 2593
zachseitz is offline  
Old 02-11-2006, 04:02 AM   #9 (permalink)
Forum Expert
 
Join Date: Jul 2004
Location: Calgary Alberta Canada
Age: 46
Posts: 360
Send a message via ICQ to Crowley62 Send a message via MSN to Crowley62
Default

just wondering how you guys distribute the tokens on your servers. Would be alot of work to add to every script THX
Crowley62 is offline  
Old 02-13-2006, 01:37 PM   #10 (permalink)
Forum Newbie
 
Join Date: Feb 2006
Posts: 6
Default any ideas?

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.
alexiusvlad is offline  
Old 03-29-2006, 12:56 AM   #11 (permalink)
Grom09
Guest
 
Posts: n/a
Default

i have the same problem as this guy, y ain't noone helping him
 
Old 03-29-2006, 12:59 AM   #12 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default whats wrong?

what do you need help with grom?
Holstis is offline  
Old 03-29-2006, 01:03 AM   #13 (permalink)
Grom09
Guest
 
Posts: n/a
Default

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.<<
 
Old 03-29-2006, 01:04 AM   #14 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default show me the code

show me the code...
Holstis is offline  
Old 03-29-2006, 01:10 AM   #15 (permalink)
Grom09
Guest
 
Posts: n/a
Default

---------------------------------------------------
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
 
Old 03-29-2006, 01:14 AM   #16 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default hehe here you go

Code:
using System;
using Server;

namespace Server.Items
{
public class CFire : BaseBodyPart
{
[Constructable]
public CFire() : base( AccessLevel.GameMaster )
Should Be

Code:
using System;
using Server;

namespace Server.Items
{
public class CFire : Item
{
[Constructable]
public CFire() : base( AccessLevel.GameMaster )
Holstis is offline  
Old 03-29-2006, 01:15 AM   #17 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default see

the reason why it messed up is because you most likely do not have a basebodypart script...
Holstis is offline  
Old 03-29-2006, 01:19 AM   #18 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default master

master night mage you need to add your BaseBodyPart Script in otherwise it will give errors to everyone without it.
Holstis is offline  
Old 03-29-2006, 01:31 AM   #19 (permalink)
Grom09
Guest
 
Posts: n/a
Default

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.
 
Old 03-29-2006, 01:37 AM   #20 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default hmmm

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; } }
After
Code:
public override BaseAddon{ get{ return null; } }

Last edited by Holstis; 03-29-2006 at 01:41 AM.
Holstis is offline  
Old 03-29-2006, 01:46 AM   #21 (permalink)
Grom09
Guest
 
Posts: n/a
Default

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.
 
Old 03-29-2006, 01:54 AM   #22 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default hmm

it seems like you are having a little trouble
how about i re code this jokes script for you
Holstis is offline  
Old 03-29-2006, 01:55 AM   #23 (permalink)
Grom09
Guest
 
Posts: n/a
Default

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();
}
}
}
}
}
 
Old 03-29-2006, 02:01 AM   #24 (permalink)
Newbie
 
Join Date: Dec 2003
Location: Indiana
Age: 23
Posts: 84
Default just use this :)

Reward Stone
Holstis is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5