Full Version : guild allies
xmlspawner >>Scripting Support >>guild allies
<< Prev | Next >>
ArteGordon- 02-07-2006
You are referring to something called GuildListGump and it doesnt exist.
The script that you posted defines a class called ArgaGuildListGump. I assume that you changed the name from GuildListGump which would cause your errors.
darkwinters- 02-07-2006
here is the codes about line 212

CODE
Mobile m = (Mobile)m_Mobiles[index]; AddImageTiled( x, y, EntryWidth, EntryHeight, EntryGumpID ); string name = m.Name; if(owner.Guild is Guild && ((Guild)(owner.Guild)).IsAlly(m.Guild as Guild)) name += " (Ally)" AddLabelCropped( x + TextOffsetX, y, EntryWidth - TextOffsetX, EntryHeight, GetHueFor( m ), m.Deleted ? "(deleted)" : name );
x += EntryWidth + OffsetSize;
if ( SetGumpID != 0 )
AddImageTiled( x, y, SetWidth, EntryHeight, SetGumpID );

ArteGordon- 02-07-2006
basically exactly what the error message said. You are missing a semicolon at the end of the line

CODE
if(owner.Guild is Guild && ((Guild)(owner.Guild)).IsAlly(m.Guild as Guild)) name += " (Ally)"

darkwinters- 02-07-2006
i added ";" but it gives errors again my system got mixed
- Error: Scripts\Custom\GListGump.cs: CS0246: (line 216, column 4) The type or
namespace name 'owner' could not be found (are you missing a using directive or
an assembly reference?)
ArteGordon- 02-07-2006
change it to m_Owner
if(m_Owner != null && m_Owner.Guild is Guild && ((Guild)(m_Owner.Guild)).IsAlly(m.Guild as Guild)) name += " (Ally)";
darkwinters- 02-07-2006

CODE
- Error: Scripts\Custom\GListGump.cs: CS0246: (line 140, column 76) The type or namespace name 'Guild' could not be found (are you missing a using directive or an assembly reference?) - Error: Scripts\Custom\GListGump.cs: CS0246: (line 216, column 40) The type or
namespace name 'Guild' could not be found (are you missing a using directive or
an assembly reference?)

ArteGordon- 02-07-2006
you need to add a 'using' statement to the beginning of your gump script that refers to the namespace of the new guild system that you added, which would be in Server.Guilds
darkwinters- 02-07-2006
using Server.Guilds;
?
darkwinters- 02-07-2006
ohh yesss now the system workss great!!thank you very much artegordon. i am going to release this guild ally system with this chat and list modifies.thank you very mucj artegordon!