So I have a skillball and I would like it to force the gump on login. I have everything down to ONE error. I may be going about it all wrong. Any insight would be awesome!
This is the main code point.
and this is the last error
Ive tried a few different various of this to include m_ from ect ect
This is the main code point.
Code:
public static void Initialize()
{
EventSink.Login += new LoginEventHandler(EventSink_Login);
}
private static void EventSink_Login(LoginEventArgs e)
{
Timer.DelayCall(TimeSpan.FromSeconds(1.0), new TimerStateCallback(EventSink_Login_Callback), e.Mobile);
}
private static void EventSink_Login_Callback(object state)
{
Mobile m = (Mobile)state;
NetState ns = m.NetState;
if (ns == null)
return;
Container pack = m.Backpack;
if (pack != null)
{
Item deed = pack.FindItemByType(typeof(SkillBall), false);
if (deed != null)
{
m.SendGump(new SkilllimPickGump(this, m));
}
}
}
and this is the last error
Code:
--------------------------------------------------------------------------------
ServUO - [http://www.servuo.com] Version 0.5, Build 6040.18360
Publish 54
Core: Optimizing for 8 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 1 errors, 2 warnings
Warnings:
+ Gumps/Guilds/GuildGump.cs:
CS0168: Line 55: The variable 'fealtyName' is declared but never used
+ Items/Artifacts/Equipment/Jewelry/AnkhPendant.cs:
CS0162: Line 64: Unreachable code detected
Errors:
+ CUSTOM/STARTING GEAR/[ServUO.com]-[ServUO.com]-SkillBall.cs:
CS0026: Line 287: Keyword 'this' is not valid in a static property, static m
ethod, or static field initializer
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Ive tried a few different various of this to include m_ from ect ect