|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#29 (permalink) |
|
Newbie
|
i want 2 make everything on my shard levable even the armor u buy from the vendors it just lvls up you can add attributes as it lvls up thanks for all ur help
__________________
love me or hate me but u better love me cause im 270 lbs and 6' 6" |
|
|
|
|
|
#30 (permalink) |
|
Forum Expert
|
I am sure you can take the code from my BaseLevelxxx scripts and incorporate it into the corresponding Basexxx distro script (I.e from BaseLevelAxe.cs to BaseAxe.cs, BaseLevelShield to BaseShield.cs, etc.). I have not done this or tested it and it may take a bit of work, but it should work.
__________________
Dracana |
|
|
|
|
|
#31 (permalink) |
|
Newbie
Join Date: Mar 2006
Posts: 54
|
Could i ask, how to add Max Level Increase Deeds so i can add them to a Vendor Stone to sell. i cannot for the life of me figure it out. i have looked up the LevelUpScroll.cs script as well but ( LevelUpScroll ) wont add them either. Any pointers on this one i could get from somebody would be greatly appreciated.!!
Thanks Again Soultaker
__________________
I added a huge signature after it was removed,
I'm banned now... |
|
|
|
|
|
#32 (permalink) | |
|
Forum Expert
|
Quote:
To install, simply overwrite the old LevelUpScroll.cs under Levelable Items\Items, with this new script. Then restart shard. If you have any questions, please let me know. Dracana
__________________
Dracana |
|
|
|
|
|
|
#33 (permalink) |
|
Newbie
Join Date: Jan 2007
Age: 36
Posts: 85
|
hi,
my shard is on 1.0 and im a little new at the scripting stuff. I tried to make a levelable bow, but im running into this error: RunUO - [www.runuo.com] Version 1.0.0, Build 36918 Scripts: Compiling C# scripts...failed (1 errors, 0 warnings) - Error: Scripts\Customs\Levelable Items\Items\Levelbow.cs: CS0246: (line 12, c olumn 26) The type or namespace name 'bow' 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. this is my bow Code:
using System;
using System.Text;
using Server;
using Server.Mobiles;
using Server.ContextMenus;
using System.Collections;
using Server.Gumps;
namespace Server.Items
{
[FlipableAttribute( 0x13B2, 0x13B1 )]
public class Levelbow : bow, ILevelable // ILevelable is the interface that gives us all the leveling functionality
{
/* These private variables store the exp, level, and *
* points for the item */
private int m_Experience;
private int m_Level;
private int m_Points;
[Constructable]
public Levelbow() : base()
{
/* Invalidate the level and refresh the item props
* Extremely important to call this method */
LevelItemManager.InvalidateLevel( this );
}
public Levelbow( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
// DONT FORGET TO SERIALIZE LEVEL, EXPERIENCE, AND POINTS
writer.Write( m_Experience );
writer.Write( m_Level );
writer.Write( m_Points );
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
// DONT FORGET TO DESERIALIZE LEVEL, EXPERIENCE, AND POINTS
m_Experience = reader.ReadInt();
m_Level = reader.ReadInt();
m_Points = reader.ReadInt();
}
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties (list);
/* Display level in the properties context menu.
* Will display experience as well, if DisplayExpProp.
* is set to true in LevelItemManager.cs */
list.Add( 1060658, "Level\t{0}", m_Level );
if ( LevelItemManager.DisplayExpProp )
list.Add( 1060659, "Experience\t{0}", m_Experience );
}
public override void GetContextMenuEntries(Mobile from, ArrayList list)
{
base.GetContextMenuEntries (from, list);
/* Context Menu Entry to display the gump w/
* all info */
list.Add( new LevelInfoEntry( from, this, AttributeCategory.Melee ) );
}
// ILevelable Members that MUST be implemented
#region ILevelable Members
// This one will return our private m_Experience variable.
[CommandProperty( AccessLevel.GameMaster )]
public int Experience
{
get
{
return m_Experience;
}
set
{
m_Experience = value;
// This keeps gms from setting the level to an outrageous value
if ( m_Experience > LevelItemManager.ExpTable[LevelItemManager.Levels - 1] )
m_Experience = LevelItemManager.ExpTable[LevelItemManager.Levels - 1];
// Anytime exp is changed, call this method
LevelItemManager.InvalidateLevel( this );
}
}
// This one will return our private m_Level variable.
[CommandProperty( AccessLevel.GameMaster )]
public int Level
{
get
{
return m_Level;
}
set
{
// This keeps gms from setting the level to an outrageous value
if ( value > LevelItemManager.Levels )
value = LevelItemManager.Levels;
// This keeps gms from setting the level to 0 or a negative value
if ( value < 1 )
value = 1;
// Sets new level.
if ( m_Level != value )
{
m_Level = value;
}
}
}
// This one will return our private m_Points variable.
[CommandProperty( AccessLevel.GameMaster )]
public int Points
{
get
{
return m_Points;
}
set
{
//Sets new points.
m_Points = value;
}
}
#endregion
}
}
im very new at this so bear with me. Could you give us newer scripters a short little explanation on how to convert the items? thanks again for this script. It's incredible. I plan on using it on my shard. ps - i changed the one reference of melee up there with ranged. I also tried to change bow for baseranged but it didnt find that either. |
|
|
|
|
|
#34 (permalink) | |
|
Forum Expert
|
Quote:
This error can be fixed by changing bow to Bow in the following line (line 12)... Code:
public class Levelbow : bow, ILevelable // ILevelable is the interface that gives us all the leveling functionality If you have any other issues, let me know.
__________________
Dracana |
|
|
|
|
|
|
#36 (permalink) |
|
Newbie
|
public abstract class BaseLevelSword:BaseSword,ILevelable
in base sword tried changing it to all items levelable fixed all erros except here tells me basesword couldnt be found so i changed it to BaselevelSword gives me an error saying circular base class dependency involving server items to baselelevel sword and server items.baselevel sword so i am lost could ya help me?
__________________
Ride The World B4 It Rides You :eek: |
|
|
|
|
|
#37 (permalink) |
|
Forum Expert
|
everything works perfectly only one problem
the anceint smithy hard as heck but i like that. only when he dies client crashes. server don't just hte client. also it wont let that char log back in either! i was able to create a NEW char log in go to that spot and pick up the scrolls but what could be causing that char to ot be able to log in? could it be cause EVERYTHING he is wearing is levelable? every slot is full of levelable items all level 1 LMMFAO ok i figured out why it crashed. i forgot i deleted my char's backpack and when i killed the smithy it tried to put 2 scrolls into my pack which wasnt there lol
__________________
My online store - jdvaluestore.com A D&D shard - dodronline.com Last edited by drgsldr69; 11-08-2007 at 01:27 AM. |
|
|
|
|
|
#38 (permalink) |
|
Newbie
Join Date: Aug 2003
Posts: 15
|
Code:
Errors:
+ custum/level/Items/Armor/Artifacts/LevelInquisitorsResolution.cs:
CS0246: Line 6: The type or namespace name 'LevelPlateGloves' could not be f
ound (are you missing a using directive or an assembly reference?)
+ custum/level/Items/Jewels/Artifacts/LevelBraceletOfHealth.cs:
CS0246: Line 6: The type or namespace name 'LevelGoldBracelet' could not be
found (are you missing a using directive or an assembly reference?)
+ custum/level/Items/Shields/Artifacts/LevelAegis.cs:
CS0246: Line 6: The type or namespace name 'LevelHeaterShield' could not be
found (are you missing a using directive or an assembly reference?)
|
|
|
|
|
|
#41 (permalink) |
|
Newbie
|
umm dude there are 2 packages to download one contains normal system for leveling and other contains leveling system and all leveling items download the one the contains all and u wont have any trouble and knife etc should be found in weapons knives
__________________
Ride The World B4 It Rides You :eek: |
|
|
|
|
|
#44 (permalink) |
|
Lurker
Join Date: Jan 2006
Posts: 1
|
I test it and work great. Thank you!!
I was thinking the way to implement it in easy way and distribute it and i have one idea but i didnt have any time to make it yet, maybe could be good to make an scroll which transform normal basetype into level type. In this way you must only have need to sell this scrolls or give in quest like prize. thank's again |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|