RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Doom Rare System

nitewender

Wanderer
ok i feel stupid for not getting this off the bat...

the error is caused by an item weighing 0 stones. So if you get this find whatever you have added that weighs 0 and change it to 0.1 or something nominal.
 

xRiddlerx

Wanderer
i typed in [raregen and it added the rares to doom but there not stealable? im not sure if this was posted b4 or not but help would be great on how to fix this
 

Erica

Knight
xRiddlerx said:
i typed in [raregen and it added the rares to doom but there not stealable? im not sure if this was posted b4 or not but help would be great on how to fix this
what program you running runuo rco 1.0 or the new version 1.0.0
 

milva

Sorceror
Replaced Stealing.cs script with the one in zip- getting 2 error
Now my playerMobile script was changed a bit- is this in reference to that script?
Any help would be much appreciated. Thanks!

Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
- Error: Scripts\Mobiles\PlayerMobile.cs: CS0234: (line 1263, column 9) The typ
e or namespace name 'StolenItem' does not exist in the class or namespace 'Serve
r.SkillHandlers' (are you missing an assembly reference?)
- Error: Scripts\Mobiles\PlayerMobile.cs: CS0234: (line 1533, column 4) The typ
e or namespace name 'StolenItem' does not exist in the class or namespace 'Serve
r.SkillHandlers' (are you missing an assembly reference?)
 

hollysong

Wanderer
milva said:
Replaced Stealing.cs script with the one in zip- getting 2 error
Now my playerMobile script was changed a bit- is this in reference to that script?
Any help would be much appreciated. Thanks!

Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
- Error: Scripts\Mobiles\PlayerMobile.cs: CS0234: (line 1263, column 9) The typ
e or namespace name 'StolenItem' does not exist in the class or namespace 'Serve
r.SkillHandlers' (are you missing an assembly reference?)
- Error: Scripts\Mobiles\PlayerMobile.cs: CS0234: (line 1533, column 4) The typ
e or namespace name 'StolenItem' does not exist in the class or namespace 'Serve
r.SkillHandlers' (are you missing an assembly reference?)

same errors on me please help....
 

Nikia

Wanderer
Not Stealable!?

I'm having the same problem xRiddlerx posted. Script worked great getting the rares to generate. However, I can't steal them!? :confused:

I have RunUO 1.0 Can someone please help me out with this?

Thanks.
 

Trippinx

Wanderer
Hey Im trying to set this up on my shard. I took the stealing.cs given in FS Doom Rare System folder and I put it in my skills folder. Now w/e I try to run my server I get these errors.

Anyone have any suggestions?

 

Autolycas

Wanderer
Script fix for StolenItem

Hi everyone,

This isn't my script, but since the original author hasn't replied yet I'll tell you the fix for it. Basically he just left out the class required to flag an item as stolen and start the 2 minute timer. I've attached a working stealing.cs which fixes that problem and should make everything stealable and no compile errors during startup.

Remember tho, this isn't my script it's just a fixed version of the original author's script. And I hope he'll add it into the next version since this is a good set of scripts for Doom rare system.
 

Attachments

  • Stealing.zip
    3.3 KB · Views: 90

cisopz

Wanderer
2 Problems Solved but 1 created

Well mate you fixed the StolenItem problems. But now I'm getting

- Error: Scripts\Skills\Stealing.cs: CS0101: (line 11, column 18) The namespace 'Server.SkillHandlers' already contains a definition for 'Stealing'

Would really appriciate it if we could resolve that one :)

Here's the corrections that were made for the StolenItem

// Added for StolenItem namespace
public class StolenItem
{
public static readonly TimeSpan StealTime = TimeSpan.FromMinutes( 2.0 );

private Item m_Stolen;
private Mobile m_Thief;
private Mobile m_Victim;
private DateTime m_Expires;

public Item Stolen{ get{ return m_Stolen; } }
public Mobile Thief{ get{ return m_Thief; } }
public Mobile Victim{ get{ return m_Victim; } }
public DateTime Expires{ get{ return m_Expires; } }

public bool IsExpired{ get{ return ( DateTime.Now >= m_Expires ); } }

public StolenItem( Item stolen, Mobile thief, Mobile victim )
{
m_Stolen = stolen;
m_Thief = thief;
m_Victim = victim;

m_Expires = DateTime.Now + StealTime;
}

private static Queue m_Queue = new Queue();

public static void Add( Item item, Mobile thief, Mobile victim )
{
Clean();

m_Queue.Enqueue( new StolenItem( item, thief, victim ) );
}

public static bool IsStolen( Item item )
{
Mobile victim = null;

return IsStolen( item, ref victim );
}

public static bool IsStolen( Item item, ref Mobile victim )
{
Clean();

foreach ( StolenItem si in m_Queue )
{
if ( si.m_Stolen == item )
{
victim = si.m_Victim;
return true;
}
}

return false;
}

public static void ReturnOnDeath( Mobile killed, Container corpse )
{
Clean();

foreach ( StolenItem si in m_Queue )
{
if ( si.m_Stolen.RootParent == corpse && si.m_Victim != null )
{
if ( si.m_Victim.AddToBackpack( si.m_Stolen ) )
si.m_Victim.SendLocalizedMessage( 1010464 ); // the item that was stolen is returned to you.
else
si.m_Victim.SendLocalizedMessage( 1010463 ); // the item that was stolen from you falls to the ground.

si.m_Expires = DateTime.Now; // such a hack
}
}
}

public static void Clean()
{
while ( m_Queue.Count > 0 )
{
StolenItem si = (StolenItem) m_Queue.Peek();

if ( si.IsExpired )
m_Queue.Dequeue();
else
break;
}
}
}
}
 

mechwolf

Wanderer
Thanks for the stealing.cs fix Autolycus i was having the same problem and coulndt figure out where it needed to be fixed.:)
 

twellborn

Wanderer
help a poor noob

RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Skills\Stealing.cs: CS0101: (line 15, column 15) The namespace
'Server.SkillHandlers' already contains a definition for 'Stealing'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

not sure what i am doing wrong and i am sure its a noob error but i cant figure out what to do
 

Arvoreen

Sorceror
twellborn said:
not sure what i am doing wrong and i am sure its a noob error but i cant figure out what to do

You have 2 files that define the Stealing skill.

See if you have 2 Stealing.cs files, and I'm guessing remove the old one.
 

Heartless

Wanderer
okay... i droped everything in custom folder, and deleted old Stealing.cs, but now im gettin these errors :

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
 - Error: Scripts\CUSTOMS\Chocobo System\PlayerMobile.cs: CS0234: (line 1475, co
lumn 9) The type or namespace name 'StolenItem' does not exist in the class or n
amespace 'Server.SkillHandlers' (are you missing an assembly reference?)
 - Error: Scripts\CUSTOMS\Chocobo System\PlayerMobile.cs: CS0234: (line 1745, co
lumn 4) The type or namespace name 'StolenItem' does not exist in the class or n
amespace 'Server.SkillHandlers' (are you missing 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.
 

Arvoreen

Sorceror
Heartless said:
okay... i droped everything in custom folder, and deleted old Stealing.cs, but now im gettin these errors :

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
 - Error: Scripts\CUSTOMS\Chocobo System\PlayerMobile.cs: CS0234: (line 1475, co
lumn 9) The type or namespace name 'StolenItem' does not exist in the class or n
amespace 'Server.SkillHandlers' (are you missing an assembly reference?)
 - Error: Scripts\CUSTOMS\Chocobo System\PlayerMobile.cs: CS0234: (line 1745, co
lumn 4) The type or namespace name 'StolenItem' does not exist in the class or n
amespace 'Server.SkillHandlers' (are you missing 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 would suggest finding a script that does this same thing in the current Custom Script Release forum, instead of digging through the archives. . .chances are you'll get better support from a current script. :)
 
problem

I installed the file an reran the runuo. Now thisis what I got. Mind you I am a neb at this kinda stuff. Scripting isnt my thing. So can someone tell me what an where to fix this....

-Error:Scripts\Skills\Stealing.cs:CS0101: (line15, Colum15) the namesapce'server.skillhandlers'already contains a definition for 'stealing'




And I dont see 2 stealing.cs files only 1
 

Arvoreen

Sorceror
SuicideSolution said:
I installed the file an reran the runuo. Now thisis what I got. Mind you I am a neb at this kinda stuff. Scripting isnt my thing. So can someone tell me what an where to fix this....

-Error:Scripts\Skills\Stealing.cs:CS0101: (line15, Colum15) the namesapce'server.skillhandlers'already contains a definition for 'stealing'




And I dont see 2 stealing.cs files only 1

See my last post above yours. . .this is the archives, and (I believe) these scripts were created for an old version of RunUO.

Check the Script Submission forum (link in my signature) for an updated/supported script that does what you want.

Also. . .even if you have only 1 Stealing.cs, it is possible for 'stealing' to be defined in another file with another name. You would need to do a search for text within a file. . .
 

slithers

Sorceror
that error does in fact mean you have two stealing.cs probably one from this package in one in the folder containing the scripts for skills.
 
Top