Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 10-18-2003, 10:03 AM   #1 (permalink)
 
Join Date: Jun 2003
Location: ENGERLANDISH
Age: 23
Posts: 145
Send a message via ICQ to Richarius Send a message via AIM to Richarius Send a message via MSN to Richarius Send a message via Yahoo to Richarius
Default Changing skills cap?

I want to make my shard so when the players enter they start with 100 max cap in each skill instead of 120, i was told i have to chnage this.....

Mobile.Skills[SkillName.Whatever].Cap = 100.0;

but i cant find this, someone help please , in which script would i find this?
Richarius is offline   Reply With Quote
Old 10-18-2003, 10:31 AM   #2 (permalink)
 
Join Date: Jan 2003
Posts: 152
Default

i think you must had it in CharacterCreation.cs.

Else, some things you can do if you don't wan't to change that file (it could be best when updating to another beta) :

If you use a race stone, add all the skills caps in the races scripts
Else, you can put a gate (in a closed room where you make the players begin) that add all the skills caps when a player enter in it.

don't forget, you need to do this for each skill

(sorry for bad english)

ps : i think that cap is 100 for each skill because you need a powerscroll to be able to have 120
cefyl is offline   Reply With Quote
Old 10-18-2003, 10:45 AM   #3 (permalink)
 
Join Date: Jun 2003
Location: ENGERLANDISH
Age: 23
Posts: 145
Send a message via ICQ to Richarius Send a message via AIM to Richarius Send a message via MSN to Richarius Send a message via Yahoo to Richarius
Default

no i mean they are all at 120 and i need to get them to 100, if the gate is the only way does anyone have one?
Richarius is offline   Reply With Quote
Old 10-18-2003, 11:09 AM   #4 (permalink)
 
Join Date: Oct 2003
Posts: 82
Default

first... change the char creation file so it dosnt increase there caps when they start, then do the gate and make all you current players go thru it
__________________
http://www.outwar.com/page.php?x=1565410 my out war link...
Iseador is offline   Reply With Quote
Old 10-18-2003, 11:09 AM   #5 (permalink)
 
Join Date: Jan 2003
Posts: 152
Default

help yourself with that :

http://www.runuo.com/forum/viewtopic...=mobile+skills

and that :

*edited, not working ops: ops: *
i'm not sure it work as i have no time to check it and i'm a newbie. But the idea is there
cefyl is offline   Reply With Quote
Old 10-18-2003, 11:19 AM   #6 (permalink)
 
Join Date: Jun 2003
Location: ENGERLANDISH
Age: 23
Posts: 145
Send a message via ICQ to Richarius Send a message via AIM to Richarius Send a message via MSN to Richarius Send a message via Yahoo to Richarius
Default

ahh thanks guys ur great, ill try it now
Richarius is offline   Reply With Quote
Old 10-18-2003, 11:26 AM   #7 (permalink)
 
Join Date: Jan 2003
Posts: 152
Default

huhu not working, i look why just now
cefyl is offline   Reply With Quote
Old 10-18-2003, 11:34 AM   #8 (permalink)
 
Join Date: Jan 2003
Posts: 152
Default

try that :

[code:1]using System;
using Server.Network;

namespace Server.Items
{
public class SkillGate : Item
{
[Constructable]
public SkillGate() : base( 0x108c )
{
Movable = false;
Name = "gate";
}

public SkillGate( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();
}

public override void OnDoubleClick( Mobile from )
{
if ( !from.InRange( GetWorldLocation(), 2 ) )
{
from.SendLocalizedMessage( 500446 ); // That is too far away.
}

else
{
from.Skills[0].Cap = 100;

}

}
}
}


[/code:1]
cefyl is offline   Reply With Quote
Old 10-18-2003, 12:17 PM   #9 (permalink)
Sno
Guest
 
Posts: n/a
Default

Word of warning... that code only sets the skill cap for Alchemy, and no other skill.
  Reply With Quote
Old 10-18-2003, 12:22 PM   #10 (permalink)
 
Join Date: Jan 2003
Posts: 152
Default

true , i let people do the extra work as soon as they understand now how it work

help yourself with : http://www.runuo.com/forum/viewtopic...=mobile+skills to complete the code
cefyl is offline   Reply With Quote
Old 10-21-2003, 06:08 PM   #11 (permalink)
sp000n
Guest
 
Posts: n/a
Default

so would the syntax for that one line be

from.Skills[i].Cap = 100;

so that it can loop through the skill array or does a line have to be added for each skill?
  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