Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 05-28-2005, 09:46 PM   #1 (permalink)
Forum Newbie
 
Join Date: Sep 2004
Location: Brasil - Rio de Janeiro
Age: 25
Posts: 64
Send a message via ICQ to tecnalta
Default Better way to implement array and how

Hi all,
In my class system I'm call this function in onSkillChange
but I don't know how implement this arraylist in C#

Code:
public void verifySkillLimit( SkillName skill, double oldBase )
{
        //if skill is in DeniedSkills(arraylist)
               //player.skill.value = oldBase; (don't allow gain)
}
------------
edit:

Can I set an cap for each skill??
m.Skills[SkillName.Alchemy].Cap = 80.0;
it is for each player??

thank you
tecnalta is offline   Reply With Quote
Old 05-29-2005, 07:35 AM   #2 (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

Quote:
In my class system I'm call this function in onSkillChange
I suggest you don't considering not all skills go through this method.
Phantom is offline   Reply With Quote
Old 06-01-2005, 04:43 PM   #3 (permalink)
 
Join Date: Jun 2005
Posts: 10
Send a message via ICQ to DungeonMaster
Default

yes, you can set skillcaps for playermobiles as you described.

___________________________
Noster Universitas(NUO) - custom Guild Warfare, Territorial/Political, and Economic systems!
DungeonMaster is offline   Reply With Quote
Old 06-01-2005, 09:35 PM   #4 (permalink)
Forum Newbie
 
Join Date: Sep 2004
Location: Brasil - Rio de Janeiro
Age: 25
Posts: 64
Send a message via ICQ to tecnalta
Default

I'm getting an error in Skills.Length
existis this vector Skills[i] ??
What I need to include to use it?
And in a loop how I get the skill name too?
tecnalta is offline   Reply With Quote
Old 06-03-2005, 06:34 PM   #5 (permalink)
Forum Expert
 
Join Date: Nov 2003
Posts: 561
Default

you might ask in the script support area. Sounds like you have some custom mods interfering.
ssalter 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