|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
|
I was trying to make a new currency, that i could use on a vendor stone, and i was trying to make it stackable at the same time..now when i tried to compile i got this error:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 3140.39861
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 64-bit processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Warnings:
+
Errors:
+ Customs/Items/Reward_Ticket_Items/RewardTicket.cs:
CS1501: Line 17: No overload for method 'Item' takes '2' arguments
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Code:
/*
* Coded by Sir Notez
*/
using System;
using Server;
using Server.Items;
namespace Server.Items
{
public class RewardTickets : Item
{
public RewardTickets()
: this(1)
{
}
[Constructable]
public RewardTickets( int amount )
: base(0x1F35, amount )
{
Name = "Reward Ticket";
Hue = 1288;
Weight = 3.0;
LootType = LootType.Blessed;
}
public RewardTickets(Serial serial)
: base(serial)
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)1); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}
__________________
[CENTERIMG]http://i520.photobucket.com/albums/w326/AnthonyNM12690/WarcryBanner.jpg[/IMG][/center] |
|
|
|
|
|
#2 (permalink) |
|
Forum Novice
Join Date: Dec 2005
Posts: 608
|
Code:
[Constructable]
public RewardTickets( int amount )
: base(0x1F35, amount )
{
Name = "Reward Ticket";
Hue = 1288;
Weight = 3.0;
LootType = LootType.Blessed;
}
Code:
[Constructable]
public RewardTickets( int amount )
: base(0x1F35)
{
Name = "Reward Ticket";
Hue = 1288;
Weight = 3.0;
LootType = LootType.Blessed;
Amount = amount;
}
__________________
Add your scripts! Script Library for custom RunUO scripts >> sunny-productions.eu |
|
|
|
|
|
#3 (permalink) | |
|
Newbie
|
Quote:
Awsome, thanks alot...i knew i was missing something heh
__________________
[CENTERIMG]http://i520.photobucket.com/albums/w326/AnthonyNM12690/WarcryBanner.jpg[/IMG][/center] |
|
|
|
|
|
|
#5 (permalink) | |
|
Newbie
Join Date: Feb 2007
Posts: 69
|
Quote:
Currently that is your issue, if you don't understand what I just said, I would advise some research into the subject. What your trying to is very simple and your on the right track, if you were to use a different parent class. |
|
|
|
|
|
|
#6 (permalink) | |
|
Forum Novice
Join Date: Dec 2005
Posts: 608
|
Quote:
__________________
Add your scripts! Script Library for custom RunUO scripts >> sunny-productions.eu |
|
|
|
|
|
|
#8 (permalink) | |
|
Forum Novice
Join Date: Sep 2007
Posts: 367
|
Quote:
search the the documentation files... i.e. item.html Alternatively, since I believe item.cs is a core file, download the core files from runuo/dowloads and just look at the script |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|