RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0 RC1] Lucid Nagual's <<_All Spells System_>>

madron

Wanderer
Lucid Nagual;665759 said:
Yes you are correct:
Code:
public virtual void OnHit( Mobile attacker, Mobile defender, double damageBonus )
{

the DamageBonus needs to be added to the NoxBow OnHit method.

BTW: I am in the process of updating this for SVN. We are all aware of the spell issues that RC1 has.

I did not see your post, my apologies, we may have been posting simultaneously he he. I can wait for your updates. I think this system is awesome, and exactly what my players and staff have been asking for, for weeks, but I just found yours :)

Thank you, it is nice to know when I get one right he he
 
madron;665763 said:
I did not see your post, my apologies, we may have been posting simultaneously he he. I can wait for your updates. I think this system is awesome, and exactly what my players and staff have been asking for, for weeks, but I just found yours :)

Thank you, it is nice to know when I get one right he he


If you have alreay transfered many files left me know I might be able to use them. I hope to have the SVN up and running soon.
 

madron

Wanderer
The only mod I have installed with this, is Knives townhouses. I have modded all the SVN 159 files that are in the instructions, for your script, and your welcome to them if it will help you, yes.

Let me know how to send them to you, I am happy to help :)
 

madron

Wanderer
Here are the 4 files I modified, I did not realize I had privies to upload. Seriously I have been at this too long today LOL

Hope it helps :)

If you would like the SVN compiled, I can provide that as well, just let me know.

Edited to add, I do have XML installed in this SVN version, sorry about this oversight.

Added Mod baseweapon.cs corrected
 

Attachments

  • Lucids Mod scripts.rar
    43.1 KB · Views: 52

steven73

Traveler
hi nice system if only i could get it to work i installed all teh files and edited all the distos but get this error when loading server



Errors:
+ custom scripts/PlayerMobile.cs:
CS0104: Line 111: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 111: No overload for method 'ClassGump' takes '1' arguments
+ custom scripts/ClassGump.cs:
CS0117: Line 449: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetFreeSkills'
CS0117: Line 568: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetSkinHues'
CS0117: Line 571: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
CS0117: Line 574: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
+ custom scripts/MagicsTrainer.cs:
CS0104: Line 57: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 57: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 159: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 159: No overload for method 'ClassGump' takes '1' arguments
+ Spells/Base/Restrictions.cs:
CS0104: Line 52: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 52: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 192: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 192: No overload for method 'ClassGump' takes '1' arguments
+ Spells/@@Other Shit/-=+ Full Spellbook +=-/Full Spellbook/TomeOfKnowledge.cs:

CS0104: Line 370: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 370: No overload for method 'ClassGump' takes '1' arguments
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

madron

Wanderer
steven73;666207 said:
hi nice system if only i could get it to work i installed all teh files and edited all the distos but get this error when loading server



Errors:
+ custom scripts/PlayerMobile.cs:
CS0104: Line 111: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 111: No overload for method 'ClassGump' takes '1' arguments
+ custom scripts/ClassGump.cs:
CS0117: Line 449: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetFreeSkills'
CS0117: Line 568: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetSkinHues'
CS0117: Line 571: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
CS0117: Line 574: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
+ custom scripts/MagicsTrainer.cs:
CS0104: Line 57: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 57: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 159: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 159: No overload for method 'ClassGump' takes '1' arguments
+ Spells/Base/Restrictions.cs:
CS0104: Line 52: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 52: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 192: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 192: No overload for method 'ClassGump' takes '1' arguments
+ Spells/@@Other Shit/-=+ Full Spellbook +=-/Full Spellbook/TomeOfKnowledge.cs:

CS0104: Line 370: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 370: No overload for method 'ClassGump' takes '1' arguments
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

At the top of the playermobile.cs did you add

//Customs
using Server.ACC.CM;
using Server.LucidNagual;
//Customs

Just curious as I got this error when I first installed. The scripts are huge so it is easy to miss a step or two.
 
steven73;666207 said:
hi nice system if only i could get it to work i installed all teh files and edited all the distos but get this error when loading server



Errors:
+ custom scripts/PlayerMobile.cs:
CS0104: Line 111: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 111: No overload for method 'ClassGump' takes '1' arguments
+ custom scripts/ClassGump.cs:
CS0117: Line 449: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetFreeSkills'
CS0117: Line 568: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetSkinHues'
CS0117: Line 571: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
CS0117: Line 574: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
+ custom scripts/MagicsTrainer.cs:
CS0104: Line 57: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 57: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 159: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 159: No overload for method 'ClassGump' takes '1' arguments
+ Spells/Base/Restrictions.cs:
CS0104: Line 52: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 52: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 192: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 192: No overload for method 'ClassGump' takes '1' arguments
+ Spells/@@Other Shit/-=+ Full Spellbook +=-/Full Spellbook/TomeOfKnowledge.cs:

CS0104: Line 370: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 370: No overload for method 'ClassGump' takes '1' arguments
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

I looked at the package and those things are outdated. Please redownload the new one in post #1.
 

steven73

Traveler
ya i added the edits to playermoblie.cs and i got those from the first page but ill try again ;) and is there a way to turn off class restrections?
 
steven73;666321 said:
ya i added the edits to playermoblie.cs and i got those from the first page but ill try again ;) and is there a way to turn off class restrections?

Use the control center to turn it off.
 

steven73

Traveler
ok when i get it to compile right ill trun it off if i dont like but im getting those errors still




Errors:
+ custom scripts/PlayerMobile.cs:
CS0104: Line 111: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 111: No overload for method 'ClassGump' takes '1' arguments
+ custom scripts/BaseTalisman.cs:
CS0122: Line 903: 'Server.Spells.Fifth.MagicReflectSpell.m_Table' is inacces
sible due to its protection level
CS0122: Line 922: 'Server.Spells.First.ReactiveArmorSpell.m_Table' is inacce
ssible due to its protection level
CS0122: Line 941: 'Server.Spells.Second.ProtectionSpell.m_Table' is inaccess
ible due to its protection level
+ Spells/Base/Restrictions.cs:
CS0104: Line 52: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 52: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 192: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 192: No overload for method 'ClassGump' takes '1' arguments
+ Spells/@@Other Shit/-=+ Full Spellbook +=-/Full Spellbook/TomeOfKnowledge.cs:

CS0104: Line 370: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 370: No overload for method 'ClassGump' takes '1' arguments
+ Spells/@@Other Shit/MagicsTrainer.cs:
CS0104: Line 57: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 57: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 159: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 159: No overload for method 'ClassGump' takes '1' arguments
+ Spells/Characterization System/ClassGump.cs:
CS0117: Line 449: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetFreeSkills'
CS0117: Line 568: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetSkinHues'
CS0117: Line 571: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
CS0117: Line 574: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


i can fix the spell protection levels its the other im clueless lol
 
steven73;666336 said:
ok when i get it to compile right ill trun it off if i dont like but im getting those errors still




Errors:
+ custom scripts/PlayerMobile.cs:
CS0104: Line 111: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 111: No overload for method 'ClassGump' takes '1' arguments
+ custom scripts/BaseTalisman.cs:
CS0122: Line 903: 'Server.Spells.Fifth.MagicReflectSpell.m_Table' is inacces
sible due to its protection level
CS0122: Line 922: 'Server.Spells.First.ReactiveArmorSpell.m_Table' is inacce
ssible due to its protection level
CS0122: Line 941: 'Server.Spells.Second.ProtectionSpell.m_Table' is inaccess
ible due to its protection level
+ Spells/Base/Restrictions.cs:
CS0104: Line 52: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 52: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 192: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 192: No overload for method 'ClassGump' takes '1' arguments
+ Spells/@@Other Shit/-=+ Full Spellbook +=-/Full Spellbook/TomeOfKnowledge.cs:

CS0104: Line 370: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 370: No overload for method 'ClassGump' takes '1' arguments
+ Spells/@@Other Shit/MagicsTrainer.cs:
CS0104: Line 57: 'ClassGump' is an ambiguous reference between 'Server.Items
.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 57: No overload for method 'ClassGump' takes '1' arguments
CS0104: Line 159: 'ClassGump' is an ambiguous reference between 'Server.Item
s.ClassGump' and 'Server.LucidNagual.ClassGump'
CS1501: Line 159: No overload for method 'ClassGump' takes '1' arguments
+ Spells/Characterization System/ClassGump.cs:
CS0117: Line 449: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetFreeSkills'
CS0117: Line 568: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetSkinHues'
CS0117: Line 571: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
CS0117: Line 574: 'Server.LucidNagual.ControlCenter' does not contain a defi
nition for 'SetGiveBooks'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


i can fix the spell protection levels its the other im clueless lol

You are still using my old classgump. Please replace it and we will move forward with your next issue. Thanks.
 

steven73

Traveler
can u give me your new classgump.cs i just downloaded the rar file today


so if its the old one its in the beta 8 rar which is what i downloaded today the 3/23/2007 at about 1:00 pm mountain time ;)
 
steven73;666339 said:
can u give me your new classgump.cs i just downloaded the rar file today


so if its the old one its in the beta 8 rar which is what i downloaded today the 3/23/2007 at about 1:00 pm mountain time ;)

Ok then if you have the proper system installed I would then say that you must have the old ClassGump in one of your script folders still. Find it and delete it. And we will go from there.
 

steven73

Traveler
i done a complete search for classgumb only casme up with one i removed it then none then unziped one from the beta8 arr still same errors?
 
steven73;666345 said:
i done a complete search for classgumb only casme up with one i removed it then none then unziped one from the beta8 arr still same errors?



Trust me. It is there somewhere. I am guessing that it used to be in the old Magics Trainer script. Which means what? It means you haven't replaced all the scripts I have provided you with. Please replace ALL of them.
 

steven73

Traveler
I have replaced all of them every sisngle one more then once ive gone thro all these post on this system also more then once





on playermoblie.cs

//Customs
using Server.ACC.CM;
using Server.LucidNagual;
//Customs


all i added was this

using Server.ACC.CM;
using Server.LucidNagual;

does this matter?
here is my classgumb.cs
/*
_________________________________
-=(_)_______________________________)=-
/ . . . ____ . ___ _/
/~ / / / / / / )2007 /
(~ (____(___/ (____ / /___/ (
\ ----------------------------- \
\ [email protected] \
\_ =================== \
\ -Owner of "The Conjuring"- \
\_ =================== ~\
) Lucid's Mega Pack )
/~ The Mother Load v1.1 _/
_/_______________________________/
-=(_)_______________________________)=-

*/
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using System.Collections;
using Server.Enums;
using Server.Messages;
using Server.ACC.CM;
using Server.LucidNagual;
using Server.Commands;


namespace Server.LucidNagual
{
public class ClassGump : Gump
{
private Mobile m_Mobile;

string c1 = "Nomad";
string c2 = "Cleric";
string c3 = "Druid";
string c4 = "Bard";
string c5 = "Ranger";
string c6 = "Rogue";
string c7 = "Paladin";
string c8 = "Mage";
string c9 = "Necromancer";
string c10 = "Tamer";
string c11 = "Farmer";
string c12 = "Crafter";
string c13 = "Ninja";
string c14 = "Samurai";
string c15 = "Arcanist";

string cmsg = "You are now a";
int bp = 5000; //Change spellbook prices here!
ushort sc = 100; //Skillcap setting.
ushort rc = 29; //Restricted cap.
ushort ms = 75; //Main skill setting.
ushort ss = 50; //Secondary skill setting.

public ClassGump( Mobile from ) : base( 0, 0 )
{
from.CloseGump( typeof ( ClassGump ) );
this.Closable=false;
this.Disposable=false;
this.Dragable=true;
this.Resizable=false;

//<<Page One>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
AddPage( 1 );
AddWindow();
//this.AddPage(0);

//--<<Title>>----------------------------------------------------------------------<>
this.AddLabel(180, 145, 1485, @"Choose Your Class");
//--<<Title>>----------------------------------------------------------------------<>

//--<<Class Menu>>-<<Page 1>>-------------------------------------------------<Start>
this.AddLabel(180, 175, 0, c1);
this.AddButton(145, 170, 2152, 2154, 1/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 205, 0, c2);
this.AddButton(145, 200, 2152, 2154, 2/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 235, 0, c3);
this.AddButton(145, 230, 2152, 2154, 3/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 264, 0, c4);
this.AddButton(145, 260, 2152, 2154, 4/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 295, 0, c5);
this.AddButton(145, 290, 2152, 2154, 5/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 325, 0, c6);
this.AddButton(145, 320, 2152, 2154, 6/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 355, 0, c7);
this.AddButton(145, 350, 2152, 2154, 7/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 385, 0, c8);
this.AddButton(145, 380, 2152, 2154, 8/*Button Number*/, GumpButtonType.Reply, 0);
//--<<Class Menu>>-<<Page 1>>---------------------------------------------------<End>

//--<<Turn Page Buttons>>-<<Page 1>>------------------------------------------<Start>
//Turn pages with these buttons:
this.AddButton(290, 415, 59, 2154, 0/*Page Number*/, GumpButtonType.Page, 2);
//this.AddButton(145, 415, 57, 2154, 0/*Page Number*/, GumpButtonType.Reply, 0);
//--<<Turn Page Buttons>>-<<Page 1>>--------------------------------------------<End>

//<<Page One>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


//<<Page Two>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
AddPage( 2 );
AddWindow();
//this.AddPage(0);

//--<<Title>>----------------------------------------------------------------------<>
this.AddLabel(180, 145, 1485, @"Choose Your Class");
//--<<Title>>----------------------------------------------------------------------<>

//--<<Class Menu>>-<<Page 2>>-------------------------------------------------<Start>
this.AddLabel(180, 175, 0, c9);
this.AddButton(145, 170, 2152, 2154, 9/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 205, 0, c10);
this.AddButton(145, 200, 2152, 2154, 10/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 235, 0, c11);
this.AddButton(145, 230, 2152, 2154, 11/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 265, 0, c12);
this.AddButton(145, 260, 2152, 2154, 12/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 295, 0, c13);
this.AddButton(145, 290, 2152, 2154, 13/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 325, 0, c14);
this.AddButton(145, 320, 2152, 2154, 14/*Button Number*/, GumpButtonType.Reply, 0);

this.AddLabel(180, 355, 0, c15);
this.AddButton(145, 350, 2152, 2154, 15/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 385, 0, c16);
//this.AddButton(145, 380, 2152, 2154, 16/*Button Number*/, GumpButtonType.Reply, 0);
//--<<Class Menu>>-<<Page 2>>---------------------------------------------------<End>

//--<<Turn Page Buttons>>-<<Page 2>>------------------------------------------<Start>
//Turn pages with these buttons:
//this.AddButton(290, 415, 59, 2154, 0/*Page Number*/, GumpButtonType.Page, 3);
this.AddButton(145, 415, 57, 2154, 0/*Page Number*/, GumpButtonType.Page, 1);
//--<<Turn Page Buttons>>-<<Page 2>>--------------------------------------------<End>
//<<Page Two>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


//<<Page Three>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//AddPage( 3 );
//AddWindow();
//this.AddPage(0);

//--<<Title>>----------------------------------------------------------------------<>
//this.AddLabel(180, 145, 1485, @"Choose Your Class");
//--<<Title>>----------------------------------------------------------------------<>

//--<<Class Menu>>-<<Page 3>>-------------------------------------------------<Start>
//this.AddLabel(180, 175, 0, c17);
//this.AddButton(145, 170, 2152, 2154, 17/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 205, 0, c18);
//this.AddButton(145, 200, 2152, 2154, 18/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 235, 0, c19);
//this.AddButton(145, 230, 2152, 2154, 19/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 265, 0, @"");
//this.AddButton(145, 260, 2152, 2154, 20/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 295, 0, @"");
//this.AddButton(145, 290, 2152, 2154, 21/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 325, 0, @"");
//this.AddButton(145, 320, 2152, 2154, 22/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 355, 0, @"");
//this.AddButton(145, 350, 2152, 2154, 23/*Button Number*/, GumpButtonType.Reply, 0);

//this.AddLabel(180, 385, 0, @"");
//this.AddButton(145, 380, 2152, 2154, 24/*Button Number*/, GumpButtonType.Reply, 0);
//--<<Class Menu>>-<<Page 3>>---------------------------------------------------<End>

//--<<Turn Page Buttons>>-<<Page 3>>------------------------------------------<Start>
//Turn pages with these buttons:
//this.AddButton(290, 415, 59, 2154, 0/*Page Number*/, GumpButtonType.Page, 2);
//this.AddButton(145, 415, 57, 2154, 0/*Page Number*/, GumpButtonType.Page, 2);
//--<<Turn Page Buttons>>-<<Page 3>>--------------------------------------------<End>
//<<Page Three>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
}

private void AddWindow()
{
this.AddBackground(124, 128, 219, 318, 9200);
this.AddImage(132, 138, 48);
this.AddImage(331, 406, 10464);
this.AddImage(141, 147, 1124);
this.AddImage(103, 65, 10463);
this.AddImage(233, 65, 10463);
this.AddImage(103, 136, 10464);
this.AddImage(103, 190, 10464);
this.AddImage(103, 244, 10464);
this.AddImage(103, 298, 10464);
this.AddImage(103, 352, 10464);
this.AddImage(103, 406, 10464);
this.AddImage(103, 440, 10463);
this.AddImage(331, 136, 10464);
this.AddImage(233, 440, 10463);
this.AddImage(331, 190, 10464);
this.AddImage(331, 244, 10464);
this.AddImage(331, 298, 10464);
this.AddImage(331, 352, 10464);
this.AddImage(199, 57, 9804);
this.AddImage(198, 425, 9000);
this.AddImage(295, 447, 5569);
this.AddImage(109, 447, 5567);
this.AddImage(295, 70, 5553);
this.AddImage(109, 70, 5549);
this.AddImage(201, 447, 112);
}

public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;

switch ( info.ButtonID )
{
case 0: //Close Gump
{
from.CloseGump( typeof ( ClassGump ) );
break;
}

case 1: //Nomad
{
HandOut( from, 1, true );
break;
}

case 2: //Cleric
{
HandOut( from, 2, true );
break;
}

case 3: //Druid
{
HandOut( from, 3, true );
break;
}

case 4: //Bard
{
HandOut( from, 4, true );
break;
}

case 5: //Ranger
{
HandOut( from, 5, true );
break;
}

case 6: //Rogue
{
HandOut( from, 6, true );
break;
}

case 7: //Paladin
{
HandOut( from, 7, false );
break;
}

case 8: //Mage
{
HandOut( from, 8, false );
break;
}

case 9: //Necromancer
{
HandOut( from, 9, false );
break;
}

case 10: //Tamer
{
HandOut( from, 10, true );
break;
}

case 11: //Farmer
{
HandOut( from, 11, true );
break;
}

case 12: //Crafter
{
HandOut( from, 12, true );
break;
}

case 13: //Ninja
{
HandOut( from, 13, false );
break;
}

case 14: //Samurai
{
HandOut( from, 14, false );
break;
}

case 15: //Arcanist
{
HandOut( from, 15, false );
break;
}
}
}

private void CSpellCaps( Mobile from )
{
from.Skills[SkillName.Magery].Cap = rc;
from.Skills[SkillName.Chivalry].Cap = rc;
from.Skills[SkillName.Necromancy].Cap = rc;
from.Skills[SkillName.Ninjitsu].Cap = rc;
from.Skills[SkillName.Bushido].Cap = rc;
}

private void SkinCheck( Mobile from, int code )
{
if ( code == 2 ) //Cleric
from.Hue = 1150;

else if ( code == 3 ) //Druid
from.Hue = 0x58B;

else if ( code == 4 ) //Bard
from.Hue = 0x96;

else if ( code == 5 ) //Ranger
from.Hue = 2001;

else if ( code == 6 ) //Rogue
from.Hue = 0x20;

else if ( code == 7 ) //Paladin
from.Hue = 1150;

else if ( code == 8 ) //Mage
from.Hue = 0x481;

else if ( code == 9 ) //Necromancer
from.Hue = 0x44;

else if ( code == 10 ) //Tamer
from.Hue = 0x58B;

else if ( code == 11 ) //Farmer
from.Hue = 0;

else if ( code == 12 ) //Crafter
from.Hue = 0;

else if ( code == 13 ) //Ninja
from.Hue = 16000;

else if ( code == 14 ) //Samurai
from.Hue = 32;

else if ( code == 15 ) //Arcanist
from.Hue = 0x58B;

else
return;
}

private void BookCheck( Mobile from, int code )
{
Container pack = from.Backpack;
from.SendMessage( MsgCenter.Msg[6].Text );

if ( code == 2 ) //Cleric
pack.DropItem( new BookOfChivalry() );

else if ( code == 3 ) //Druid
pack.DropItem( new DruidSpellbook() );

else if ( code == 4 ) //Bard
pack.DropItem( new SongBook() );

else if ( code == 5 ) //Ranger
pack.DropItem( new RangerSpellbook() );

else if ( code == 6 ) //Rogue
pack.DropItem( new RogueSpellbook() );

else if ( code == 7 ) //Paladin
pack.DropItem( new BookOfChivalry() );

else if ( code == 8 ) //Mage
pack.DropItem( new Spellbook() );

else if ( code == 9 ) //Necromancer
{
pack.DropItem( new NecromancerSpellbook() );
pack.DropItem( new UndeadSpellbook() );
}

else if ( code == 10 ) //Tamer
{
pack.DropItem( new SongBook() );
pack.DropItem( new DruidSpellbook() );
}

//else if ( code == 11 ) //Farmer
// pack.DropItem( new SongBook() );

//else if ( code == 12 ) //Crafter
// pack.DropItem( new SongBook() );

else if ( code == 13 ) //Ninja
pack.DropItem( new BookOfNinjitsu() );

else if ( code == 14 ) //Samurai
pack.DropItem( new BookOfBushido() );

//else if ( code == 15 ) //Arcanist
// pack.DropItem( new SongBook() );

else
return;
}

private void SetSkillCap( Mobile from, int code )
{
Container pack = from.Backpack;

if ( DataCenter.SetFreeSkills )
pack.DropItem( new WelcomeSkillBall() );

if ( code == 1 ) //Cleric
{
//for ( int i = 0; i < from.Skills.Length; ++i )
// from.Skills[from.Skills[ i ]].Cap = sc;
}

if ( code == 2 ) //Cleric
{
from.Skills[SkillName.Chivalry].Cap = sc;
from.Skills[SkillName.Focus].Cap = sc;
}

else if ( code == 3 ) //Druid
{
from.Skills[SkillName.AnimalTaming].Cap = sc;
from.Skills[SkillName.AnimalLore].Cap = sc;
}

else if ( code == 4 ) //Bard
{
from.Skills[SkillName.Musicianship].Cap = sc;
}

else if ( code == 5 ) //Ranger
{
from.Skills[SkillName.Archery].Cap = sc;
from.Skills[SkillName.Veterinary].Cap = sc;
}

else if ( code == 6 ) //Rogue
{
from.Skills[SkillName.Stealing].Cap = sc;
from.Skills[SkillName.Hiding].Cap = sc;
}

else if ( code == 7 ) //Paladin
{
from.Skills[SkillName.Chivalry].Cap = sc;
from.Skills[SkillName.Focus].Cap = sc;
}

else if ( code == 8 ) //Mage
{
from.Skills[SkillName.Magery].Cap = sc;
from.Skills[SkillName.Meditation].Cap = sc;
}

else if ( code == 9 ) //Necromancer
{
from.Skills[SkillName.Necromancy].Cap = sc;
from.Skills[SkillName.SpiritSpeak].Cap = sc;
}

else if ( code == 10 ) //Tamer
{
from.Skills[SkillName.AnimalLore].Cap = sc;
from.Skills[SkillName.AnimalTaming].Cap = sc;
from.Skills[SkillName.Musicianship].Cap = sc;
}

//else if ( code == 11 ) //Farmer
//{

//}

//else if ( code == 12 ) //Crafter
//{

//}

else if ( code == 13 ) //Ninja
{
from.Skills[SkillName.Ninjitsu].Cap = sc;
}

else if ( code == 14 ) //Samurai
{
from.Skills[SkillName.Bushido].Cap = sc;
}

//else if ( code == 15 ) //Arcanist
//{

//}

else
return;
}

private bool TryAgain( Mobile from, int code, bool custom )
{
HandOut( from, code, custom );

return true;
}

private void HandOut( Mobile from, int code, bool custom )
{
Container pack = from.Backpack;
BankBox Banker = from.BankBox;
PlayerModule player = ( PlayerModule )CentralMemory.GetModule( from.Serial, typeof( PlayerModule ) );

if ( from == null || pack == null || Banker == null ) return;

if ( player == null )
{
player = Server.LucidsCore.Engines.AssignPlayerModule( from );
TryAgain( from, code, custom );
}

if ( player == null )
{
from.SendMessage( MsgCenter.Msg[19].Text );
return;
}

if ( DataCenter.SetSkinHues )
SkinCheck( from, code );

if ( DataCenter.SetGiveBooks )
BookCheck( from, code );

if ( !DataCenter.SetGiveBooks )
from.SendMessage( MsgCenter.Msg[18].Text );

if ( !custom )
{
CSpellCaps( from );
}

SetSkillCap( from, code );
from.SendMessage( MsgCenter.Msg[8].Text );

if ( code == 1 ) //Nomad
{
player.PlayerClasses = PlayerClasses.Nomad;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c1 );
//from.SendMessage( "The Nomad has no boundaries, but cannot use powerscrolls. A Nomad has a limited skill cap of 100 in all skills." );
}
else if ( code == 2 ) //Cleric
{
player.PlayerClasses = PlayerClasses.Cleric;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c2 );
from.SendMessage( "Paladins are good fighters that look out for their fellow man." );
}
else if ( code == 3 )
{
player.PlayerClasses = PlayerClasses.Druid;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c3 );
from.SendMessage( "Druids are good tamers and are at one with nature." );
}
else if ( code == 4 )
{
player.PlayerClasses = PlayerClasses.Bard;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c4 );
from.SendMessage( "Bards make songs of power that are good for the soul." );
}
else if ( code == 5 )
{
player.PlayerClasses = PlayerClasses.Ranger;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c5 );
from.SendMessage( "Rangers are good with animals and know how to use a bow." );
}
else if ( code == 6 )
{
player.PlayerClasses = PlayerClasses.Rogue;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c6 );
from.SendMessage( "Rogues are dastardly beings who are good at stealing." );
}
else if ( code == 7 )
{
player.PlayerClasses = PlayerClasses.Paladin;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c7 );
}
else if ( code == 8 )
{
player.PlayerClasses = PlayerClasses.Mage;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c8 );
}

else if ( code == 9 )
{
player.PlayerClasses = PlayerClasses.Necromancer;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c9 );
}
else if ( code == 10 )
{
player.PlayerClasses = PlayerClasses.Tamer;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c10 );
from.SendMessage( "Tamers have druid and bard capabilities." );
}
else if ( code == 11 )
{
player.PlayerClasses = PlayerClasses.Farmer;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c11 );

}
else if ( code == 12 )
{
player.PlayerClasses = PlayerClasses.Crafter;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c12 );

}
else if ( code == 13 )
{
player.PlayerClasses = PlayerClasses.Ninja;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c13 );
from.SendMessage( "Ninjas ." );
}
else if ( code == 14 )
{
player.PlayerClasses = PlayerClasses.Samurai;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c14 );
from.SendMessage( "Samurais ." );
}
else if ( code == 15 )
{
player.PlayerClasses = PlayerClasses.Arcanist;
from.SendMessage( "{0}" + " {1}" + "!", cmsg, c15 );
}
else
return;
}
}
}
 
OK the other possiblity is that you have another ClassGump somewhere for another system. You will have to do a search and find it. Once you find it I don't really know what to do about it cause it would call for overhauling one of the systems.
 
Top