Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 09-18-2003, 10:15 AM   #1 (permalink)
 
Join Date: Apr 2003
Location: ohio
Posts: 349
Send a message via Yahoo to vladimir
Default help?

any one know where i can get a race script ???.....ive seen them all over search i just cant get them to work ......and i was wanting tyo ask ...can some buddy tell me how to make it where myplayerscan butmy static houses and live in them ???.....plz & ty
vladimir is offline   Reply With Quote
Old 09-18-2003, 11:15 AM   #2 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

for race scripts look at this thread
http://www.runuo.com/forum/viewtopic.php?t=18485&highlight=combination
and do a search for statichousing there a nice system for making houses in town player ownable
Tru is offline   Reply With Quote
Old 09-18-2003, 11:21 AM   #3 (permalink)
 
Join Date: Apr 2003
Location: ohio
Posts: 349
Send a message via Yahoo to vladimir
Default ty

hey ty ...can i ask ya how to fic the AR on armor so it goes over 70 ...i know its in playermobiles......( i think )....just not sure what line to fix ???or how ??
vladimir is offline   Reply With Quote
Old 09-18-2003, 11:25 AM   #4 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

one piece,a whole suit, every suit?
no not playermobile look at your armor scripts..basearmor.cs and such
Tru is offline   Reply With Quote
Old 09-18-2003, 12:09 PM   #5 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

if you are talking about resistances and stuff, I believe that there is a topic about that on FAQ.
Nagash is offline   Reply With Quote
Old 09-18-2003, 12:13 PM   #6 (permalink)
 
Join Date: Apr 2003
Location: ohio
Posts: 349
Send a message via Yahoo to vladimir
Default hmm

talking about leting ppl wear armor that has a ar of 90....it only goes to 70....and that race stone didnt work for me...?????..i did what it told me to but when i go to put a race it makes my server crash???....and hey thanks for the help
vladimir is offline   Reply With Quote
Old 09-18-2003, 12:27 PM   #7 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

as to the crash you have to use a character made after your modifications (or you didnt set it up right)
Tru is offline   Reply With Quote
Old 09-18-2003, 12:38 PM   #8 (permalink)
 
Join Date: Apr 2003
Location: ohio
Posts: 349
Send a message via Yahoo to vladimir
Default lol thats ok i removed it

thats ok i removed it any way .....not the right race thing imlooking for ...and how would i go about making the ar for my armors to go over 70 ??...cuz im thinking about puting ELven armor in game andi want it to be 90 ar ...i tryed fixing the armors ar but when i get in game it still stays at 70 ??
vladimir is offline   Reply With Quote
Old 09-18-2003, 01:08 PM   #9 (permalink)
 
Join Date: Nov 2002
Posts: 636
Default

Probably, what you are looking for is

public double ArmorRating [ get] method which is in Mobile Class.

you have to override:

public override double ArmorRating
{
get { return 100; }
}

add these lines to your custom player scripts..
Ceday is offline   Reply With Quote
Old 09-18-2003, 01:34 PM   #10 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

I dont want to look as a complete idiot but...should I add it as a new cs custom file or in some file which I just cant find?
Nagash is offline   Reply With Quote
Old 09-18-2003, 01:46 PM   #11 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default Re: ty

Quote:
Originally Posted by vladimir
hey ty ...can i ask ya how to fic the AR on armor so it goes over 70 ...i know its in playermobiles......( i think )....just not sure what line to fix ???or how ??
There is a static Mobile Property called Mobile.MaxPlayerResistance which takes an integer value.

You set this for all mobiles by doing the following in any class, everyone else suggestion most likely won't work talking about Ceday's suggestion modifying ArmorRating :-)

[code:1]public static void Initialize()
{
Mobile.MaxPlayerResistance = 71;
}[/code:1]
Phantom is offline   Reply With Quote
Old 09-18-2003, 01:56 PM   #12 (permalink)
 
Join Date: Nov 2002
Posts: 636
Default

Nagash, if you want to edit original files, you can add it to PlayerMobile.cs
Alternatively, you can write a custom player script and convert players.
Ceday is offline   Reply With Quote
Old 09-18-2003, 02:28 PM   #13 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

I already did that before, but thought I was wrong cause I was getting the following error:

[code:1]
Error: Scripts\Custom\NewMine\customPlayerMobile.cs: CS0506: <line 19, column1> īServer.Mobile.ArmorRating.getī because it is not marked virtual, abstract or override
[/code:1]
and this is my code:
[code:1]
using System;
using System.IO;
using System.Collections;
using Server;
using Server.Misc;
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.Network;
using Server.Mobiles;

namespace Server.Mobiles
{
public class customPlayerMobile : PlayerMobile
{
public override double ArmorRating
{
get { return 99; }
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int)2 );//version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
[/code:1]

Can anyone help me with this?
Nagash is offline   Reply With Quote
Old 09-18-2003, 02:40 PM   #14 (permalink)
 
Join Date: Nov 2002
Posts: 636
Default

you are trying to inherit customPM from original PlayerMobile script.
but to override, it should have modifers like override, abstract or virtual in the base class..

In PlayerMobile, there is not..

If you want to write a custom script. C/P PlayerMobile to customPM and change class name. (Remove the enums part)
After that you can add the code lines, I suggested..
Ceday is offline   Reply With Quote
Old 09-18-2003, 03:01 PM   #15 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

I already posted what your suppose to do to change the total amount of AR on a Mobile.

Its not armor rating I will tell you that, thats not correct.
Phantom is offline   Reply With Quote
Old 09-18-2003, 03:06 PM   #16 (permalink)
 
Join Date: Nov 2002
Posts: 636
Default

what is AR supposed to mean? MagicResistance?
Ceday is offline   Reply With Quote
Old 09-18-2003, 03:08 PM   #17 (permalink)
 
Join Date: Apr 2003
Location: ohio
Posts: 349
Send a message via Yahoo to vladimir
Default hmmm

hmmm.....i dont know whatthe other guys wanting but ...i did what you told me to and itsthe mobile ...i was wanting to know how to fix it where my new armor i made goes over 70 ar .....i want it to be 90......
vladimir is offline   Reply With Quote
Old 09-18-2003, 03:10 PM   #18 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Right you have to adjust the MaxPlayerResistance otherwise no matter what you set the ar for it will only use 70 total AR.
Phantom is offline   Reply With Quote
Old 09-18-2003, 03:14 PM   #19 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

Phantom: I already did changed the maxresistances, thats why I was asking now about the AR.
Nagash is offline   Reply With Quote
Old 09-18-2003, 03:17 PM   #20 (permalink)
 
Join Date: Nov 2002
Posts: 636
Default

OK, then you can use:

public override int MaxPlayerResistance
{
get { return 90; }
set { MaxPlayerResistance=value; }
}


you can also do with Phantom code, but then, it changes for all Mobiles not for just Players. If it is OK with you, you can use it too..
Ceday is offline   Reply With Quote
Old 09-18-2003, 04:09 PM   #21 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

hmmmm

never seen to change that static property in that matter.
Phantom is offline   Reply With Quote
Old 09-18-2003, 05:16 PM   #22 (permalink)
 
Join Date: Nov 2002
Posts: 636
Default

public int MaxPlayerResistance
{
get { return 90; }
set { MaxPlayerResistance=value; }
}

this works fine with me..it doesnt give any error.
but it doesnt override, because it need abstract, virtual or override modifiers. The function in the base class doesnt have any of those.
Ceday is offline   Reply With Quote
Old 09-18-2003, 05:29 PM   #23 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

I was going to say :-)

Its a static method, you can't override static properties :-)
Phantom is offline   Reply With Quote
Old 09-18-2003, 06:00 PM   #24 (permalink)
 
Join Date: Nov 2002
Posts: 636
Default

btw, the code above doesnt work..(someone says in another thread)

so you have to do Mobile.MaxPlayerResistance..

but I am confused at a point.
I am using VS.NET 2K2 and in the object browser it says
public int MaxPlayerResistance [ get, set ]

but in the documents which RunUO includes:

(static) int MaxPlayerResistance( get; set; )

that is interesting
Ceday is offline   Reply With Quote
Old 09-18-2003, 06:00 PM   #25 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

then I could do:
[code:1]
using System;
using System.IO;
using System.Collections;
using Server;
using Server.Misc;
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.Network;
using Server.Mobiles;

public class customPlayerMobile : PlayerMobile
{

public customPlayerMobile()
{
}

public customPlayerMobile( Serial s ) : base( s )
{
}
public double ArmorRating
{
get { return 99; }
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
int version = writer.ReadInt();
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
[/code:1]
???
Nagash is offline   Reply With Quote
Reply

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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5