#W# Started work on guild rings.
This commit is contained in:
parent
000d16eab6
commit
6cb014d51c
7 changed files with 201 additions and 2 deletions
|
|
@ -196,7 +196,21 @@ namespace Server.Mobiles
|
|||
pm.NpcGuildJoinTime = DateTime.Now;
|
||||
pm.NpcGuildGameTime = pm.GameTime;
|
||||
pm.InvalidateProperties();
|
||||
// --- START GUILD REWARD LOGIC ---
|
||||
Item reward = null;
|
||||
|
||||
if ( this.NpcGuild == NpcGuild.BlacksmithsGuild )
|
||||
reward = new SmithsRing();
|
||||
else if ( this.NpcGuild == NpcGuild.TailorsGuild )
|
||||
reward = new TailorsRing();
|
||||
// Add more else ifs here as you make items for other guilds!
|
||||
|
||||
if ( reward != null )
|
||||
{
|
||||
pm.AddToBackpack( reward );
|
||||
from.SendMessage( "The guildmaster places a symbol of your new membership in your backpack." );
|
||||
}
|
||||
// --- END GUILD REWARD LOGIC ---
|
||||
dropped.Delete();
|
||||
return true;
|
||||
}
|
||||
|
|
@ -230,4 +244,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue