|
||
|
|||||||
| 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 |
|
|
#76 (permalink) |
|
Forum Newbie
Join Date: Dec 2006
Age: 17
Posts: 4
|
Hi Lucid. Your lvl system is best that i know. But maybe i found another mistake. My Acceslevel is owner and when i use a commands [myexp or [getexp i get a message "this is not a valid command". Is it mistake when you repair gumps showing level, exps, skillpts, ... or is there something bad in my runuo?ks
Thank you for advice. |
|
|
|
|
|
#77 (permalink) | |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
Quote:
Code:
public static void Initialize()
{
CommandSystem.Register( "GetInfo", AccessLevel.GameMaster, new CommandEventHandler( GetInfo_OnCommand ) );
CommandSystem.Register( "MyInfo", AccessLevel.Player, new CommandEventHandler( MyInfo_OnCommand ) );
CommandSystem.Register( "BODInfo", AccessLevel.Player, new CommandEventHandler( BODInfo_OnCommand ) );
}
Staff use the command: [GetInfo The GetInfo command brings up a properties menu allowing staff to change the module info on anyone they target.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment. Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse." My Customs:
|
|
|
|
|
|
|
#78 (permalink) |
|
Forum Newbie
Join Date: Dec 2006
Age: 17
Posts: 4
|
i found another mistake. "[getinfo" command shows me a target cursor and when i target a player a get a msg "that is to far away". when i am near the player it shows me gump to edit my module so i cant edit modules of other players.
Thanks for all your help. ![]() |
|
|
|
|
|
#83 (permalink) |
|
Newbie
|
In the Exptest.cs file add the Following:
The Basic setup at the Top.... Code:
//Mythic DEBUG
using Server.Network;
namespace Server.Mobiles
{
public class EXPValidate
{
//Mythic DEBUG Begin
public static void Initialize()
{
EventSink.Login += new LoginEventHandler(AgeTest_OnLogin);
}
private static void AgeTest_OnLogin(LoginEventArgs e)
{
Mobile from = e.Mobile;
if (from != null)
{
AgeTest(from);
}
}
Code:
//Mythic DEBUG Age System
//IF Null we let AllSpells Create it
//We only test this on each Login, NOT Every time we get experience
//
//Everyone starts at 18 for now...
//Later maybe we have different Starting Ages by Race
//Then every Interval their Age Incs a Year.
//Simple
public static void AgeTest(Mobile from)
{
Account acct = from.Account as Account;
if (acct != null)
{
PlayerModule module = (PlayerModule)CentralMemory.GetModule(from.Serial, typeof(PlayerModule)); //pm.PlayerModule;
if (module != null)
{
if (module.Age < 18)
{
module.Age = 18;
}
else
{
TimeSpan totalTime = (DateTime.Now - acct.Created);
int testAge = ((int)totalTime.TotalDays % (int)AgeInterval.TotalDays) + 18;
if( module.Age < testAge )
{
module.Age = testAge;
}
}
}
}
}
Excessive to check account age every time we award experience. Mythic Last edited by jpmythic; 06-10-2007 at 10:40 AM. |
|
|
|
|
|
#84 (permalink) |
|
Forum Newbie
Join Date: Jun 2007
Posts: 2
|
We installed the files and we think that we have them all here but errors keep popping up with the Player.mobile file. I would post the errors exactly but i don't see how to copy them in here. we are getting 5 different errors with the Scripts from the easy lvl system all concerning the server.mobiles.playermobiles does not contain a def'n for "playermodule"
we are at a complete loss as to what to do to fix it thanks in advance for your help |
|
|
|
|
|
#85 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
I have some similiar problems with the Central Memory in all of my systems. I am planning a major overhaul. I have recently started scripting on Second Life but plan on continuing my support here too. Second Life will be taking up a lot of my time. I am working with a team of people scripting motorcycles. I have sat back and wrote out how I can fix all these systems and what core changes need to take place. I am confident that these new changes will put me in the right direction. I ask for your patience and all ideas are always welcome. This is OUR script. Many thanks................Lucid Nagual.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment. Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse." My Customs:
|
|
|
|
|
|
#86 (permalink) |
|
Lurker
Join Date: Aug 2007
Age: 24
Posts: 6
|
1. install all follow this method and run sever no problem..
2. but [acc or [getexp not ..play and levelcontrolston click is sever crash what this problem .....? gump windows not appear.... only use [level or [qs please tell me ...who success svn + this script? |
|
|
|
|
|
#87 (permalink) |
|
Newbie
Join Date: Dec 2006
Posts: 15
|
ok i got everything to load in the server. its all there, but when i start a new character and kill a bunch of monsters, i dont get any exp, am i not doing something right?? do i have to state how much exp a monster gives? and if so could someone tell me how, also i tried killing things like rats and stuff, also i still gain skill like regular not like the system says, do i have to throw out the regular one?? and where is it located.
thanks |
|
|
|
|
|
#88 (permalink) | |
|
Forum Expert
|
Quote:
__________________
~Wanderer~ |
|
|
|
|
|
|
#89 (permalink) |
|
Lurker
Join Date: May 2007
Age: 17
Posts: 1
|
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (12 errors, 0 warnings) - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1001: (line 137, column 64) Identifier expected - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1519: (line 137, column 81) Invalid token '>' in class, struct, or interface member declara tion - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1519: (line 137, column 88) Invalid token ')' in class, struct, or interface member declara tion - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1520: (line 139, column 9) Class, struct, or interface method must have a return type - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1001: (line 139, column 36) Identifier expected - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1001: (line 139, column 43) Identifier expected - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1519: (line 140, column 29) Invalid token '(' in class, struct, or interface member declara tion - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1519: (line 140, column 35) Invalid token ',' in class, struct, or interface member declara tion - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1519: (line 140, column 48) Invalid token ')' in class, struct, or interface member declara tion - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1518: (line 144, column 19) Expected class, delegate, enum, interface, or struct - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1518: (line 153, column 19) Expected class, delegate, enum, interface, or struct - Error: c:\Documents and Settings\Jára\Plocha\e\Scripts\Nová sloka\Customs\Lu cid's Systems\Bacaw's Easy Level System\Reward Items\Sprinkler.cs: CS1022: (line 249, column 1) Type or namespace definition, or end-of-file expected Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. What about it? |
|
|
|
|
|
#90 (permalink) |
|
Forum Novice
|
Hey Lucid, just a quick question. When my players choose the weapon part, it gives them a brand new weapon with an attribute that they chose. How do I change it to where they can add 3 attributes to that one weapon without it giving them a brand new weapon each time with just one of those attributes? I looked through the scripts but I couldnt find anything about the weapon it gives part. Thanks hun. This is an awesome script btw. So thanks bunches to you and Bacaw.
|
|
|
|
|
|
#91 (permalink) |
|
Forum Novice
|
Not sure what is going on here. But.....
Code:
Errors:
+ Custom/Distro Mods/PlayerMobile.cs:
CS0117: Line 97: 'Server.Mobiles.PlayerMobile.CountAndTimeStamp' does not co
ntain a definition for 'Serial'
CS0117: Line 101: 'Server.Mobiles.PlayerMobile.CountAndTimeStamp' does not c
ontain a definition for 'Serial'
CS0117: Line 102: 'Server.Mobiles.PlayerMobile.CountAndTimeStamp' does not c
ontain a definition for 'Serial'
+ Custom/Systems/Bacaw's Easy Level System/Bacaw's Easy Level System/Gumps/Leve
landQSGumps.cs:
CS0117: Line 32: 'Server.Mobiles.PlayerMobile' does not contain a definition
for 'PlayerModule'
CS0117: Line 50: 'Server.Mobiles.PlayerMobile' does not contain a definition
for 'PlayerModule'
CS0117: Line 334: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
CS0117: Line 748: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
CS0117: Line 757: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
+ Custom/Systems/Bacaw's Easy Level System/Bacaw's Easy Level System/Gumps/Skil
lPointRewardGump.cs:
CS0117: Line 182: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
+ Custom/Systems/Bacaw's Easy Level System/Bacaw's Easy Level System/Gumps/WepU
pgradeGump.cs:
CS0117: Line 464: 'Server.Mobiles.PlayerMobile' does not contain a definitio
n for 'PlayerModule'
+ Custom/Systems/Bacaw's Easy Level System/Bacaw's Easy Level System/Reward Ite
ms/LevelRewardBall.cs:
CS0117: Line 33: 'Server.Mobiles.PlayerMobile' does not contain a definition
for 'PlayerModule'
+ Custom/Systems/Bacaw's Easy Level System/Bacaw's Easy Level System/EXPTest.cs
:
CS0117: Line 32: 'Server.Mobiles.PlayerMobile' does not contain a definition
for 'PlayerModule'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Misc;
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.ContextMenus;
using Server.Network;
using Server.Spells;
using Server.Spells.Fifth;
using Server.Spells.Sixth;
using Server.Spells.Seventh;
using Server.Spells.Necromancy;
using Server.Spells.Ninjitsu;
using Server.Spells.Bushido;
using Server.Targeting;
using Server.Engines.Quests;
using Server.Factions;
using Server.Regions;
using Server.Accounting;
using Server.Engines.CannedEvil;
using Server.Engines.Craft;
using Server.Spells.Spellweaving;
//Customs
using Server.ACC.CM;
using Server.LucidNagual;
//Customs
namespace Server.Mobiles
{
#region Enums
[Flags]
public enum PlayerFlag // First 16 bits are reserved for default-distro use, start custom flags at 0x00010000
{
None = 0x00000000,
Glassblowing = 0x00000001,
Masonry = 0x00000002,
SandMining = 0x00000004,
StoneMining = 0x00000008,
ToggleMiningStone = 0x00000010,
KarmaLocked = 0x00000020,
AutoRenewInsurance = 0x00000040,
UseOwnFilter = 0x00000080,
PublicMyRunUO = 0x00000100,
PagingSquelched = 0x00000200,
Young = 0x00000400,
AcceptGuildInvites = 0x00000800,
DisplayChampionTitle= 0x00001000,
#region Mondain's Legacy
Bedlam = 0x00010000,
LibraryFriend = 0x00020000,
Spellweaving = 0x00040000,
#endregion
}
public enum NpcGuild
{
None,
MagesGuild,
WarriorsGuild,
ThievesGuild,
RangersGuild,
HealersGuild,
MinersGuild,
MerchantsGuild,
TinkersGuild,
TailorsGuild,
FishermensGuild,
BardsGuild,
BlacksmithsGuild
}
public enum SolenFriendship
{
None,
Red,
Black
}
#endregion
public class PlayerMobile : Mobile, IHonorTarget
{
private class CountAndTimeStamp
{
////////PlayerModule edit.
private PlayerModule m_PlayerModule;
[CommandProperty( AccessLevel.GameMaster )]
public PlayerModule PlayerModule
{
get
{
PlayerModule existingModule = ( PlayerModule )CentralMemory.GetModule( this.Serial, typeof( PlayerModule ) );
if ( existingModule == null )
{
PlayerModule module = new PlayerModule( this.Serial );
CentralMemory.AppendModule( this.Serial, module, true );
return ( m_PlayerModule = module as PlayerModule );
}
else
{
if ( m_PlayerModule != null )
return m_PlayerModule;
return ( m_PlayerModule = existingModule as PlayerModule );
}
}
}
/////////PlayerModule edit.
private int m_Count;
private DateTime m_Stamp;
public CountAndTimeStamp()
{
}
What it is asking for is in playermobile so I dont understand the error. Thank you. I will take this out until its fixed...but I hate doing that because I have it on my current shard and its working perfectly. So was hoping to put it in my upgrade. Thanks to all. |
|
|
|
|
|
#92 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
Try moving this Code:
////////PlayerModule edit.
private PlayerModule m_PlayerModule;
[CommandProperty( AccessLevel.GameMaster )]
public PlayerModule PlayerModule
{
get
{
PlayerModule existingModule = ( PlayerModule )CentralMemory.GetModule( this.Serial, typeof( PlayerModule ) );
if ( existingModule == null )
{
PlayerModule module = new PlayerModule( this.Serial );
CentralMemory.AppendModule( this.Serial, module, true );
return ( m_PlayerModule = module as PlayerModule );
}
else
{
if ( m_PlayerModule != null )
return m_PlayerModule;
return ( m_PlayerModule = existingModule as PlayerModule );
}
}
}
/////////PlayerModule edit.
Code:
private class CountAndTimeStamp
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII Last edited by Tru; 11-16-2007 at 12:23 AM. |
|
|
|
|
|
|
#93 (permalink) |
|
Forum Novice
|
Ugg that was it. I swore I had it in the right place and it looked right to me everytime I looked at it. LOL. Thank you for having better eyes then me. Also I am on Q..just hidden. I will make it where you can see me whenever you are on. Thank you again hun. *hugs*
|
|
|
|
|
|
#94 (permalink) |
|
Lurker
Join Date: Jan 2006
Posts: 3
|
Heya Lucid, you've got a great level system, and I thoroughly enjoy all of the features it offers.Unfortunatly, I'm running into some problems. When I use this system, none of the commands work, like [getexp, etc, and when players try to craft weapons using the skillpoints, they can only add one attribute, and the weapon gump closes. I had found what I believe is an older system, the 3.0 version I think, and this fixed the weapon gump problem, but then I realized skillpoints were not randomly dropping like they should. I've been working on it for a good 3 hours now without a clue on what could be wrong. Skillpoints is set to true in the els settings, and the data center. Any advice on this situation would be greatly appreciated.
Edit: I reinstalled, and realized I was using the wrong command, so that parts fixed. But the weapon gump still closes when you try to add an attribute. I will continue to try to fix this issue, but I noticed Arwin was having an issue similar to this, but perhaps I read it wrong. Last edited by MetaPsychosis; 02-03-2008 at 02:22 AM. Reason: partial problem fixed. |
|
|
|
|
|
#96 (permalink) | |
|
Forum Novice
|
I have a quick question...To make it where other skills gain exp points like say carpentry or tailoring...I looked in basecreature and seen this line
Code:
////////////////////////BEGINLEVELSYSTEMUPDATE EXPValidate.EXPTest(ds.m_Mobile,this);//Mod for Level System ///////////////////////ENDLEVELSYSTEMUPDA
__________________
Quote:
|
|
|
|
|