//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);
}
}
//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;
}
}
}
}
}
Enigma-Doom;706965 said: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
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.
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()
{
}
Arwen_NightHawk;724239 said: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.
I put the 2 lines in playermobile like I was suppose to:
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() { }
And not sure if this has anything to do with it...but I am using SVN 264
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.
////////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 class CountAndTimeStamp
////////////////////////BEGINLEVELSYSTEMUPDATE
EXPValidate.EXPTest(ds.m_Mobile,this);//Mod for Level System
///////////////////////ENDLEVELSYSTEMUPDA
Arwen_NightHawk;741630 said: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
Now if I add that line to say defcarpentry or deftailoring, would that make them gain exp points making those items?
drgsldr69;750381 said:is there a way to edit how much a player gains in experience from a monster? i want certain creatures to give a certain amount of xp. but i cant find where it tells the system how many exp to give a player.