I have a quest to get a set of started armor which is nice.
Unless you are a gargoyle starting out.
I Have tried several things and get an error message that an object reference is required for the non-static field.(Race/gargoyle)?
Code:
public PlayerTicketQuest() : base()
 { 
 AddObjective( new ObtainObjective( typeof( NewPlayerTicket ), "New Player Ticket", 1, 0x14EF ) );
 
 if( PlayerMobile.Race == Race.Gargoyle)<-----------------------THIS IS WHAT I CANT FIGURE OUT
 AddReward( new BaseReward( typeof( DashasSatchel2 ), "Dasha's Satchel" ) );
 else
 AddReward( new BaseReward( typeof( DashasSatchel ), "Dasha's Satchel" ) );
 }
I have tried a few things with race, no success.
Any thoughts on how to accomplish this?

**still testing things as I am typing.
 
Code:
public PlayerTicketQuest() : base()
 { 
 AddObjective( new ObtainObjective( typeof( NewPlayerTicket ), "New Player Ticket", 1, 0x14EF ) );
 
 PlayerMobile pm = pm is PlayerMobile;

 if (pm != null)
 {
 QuestSystem qs = pm.Quest;

 if (qs is PlayerTicketQuest)
 { 
 if( pm.Race == Race.Gargoyle)
 AddReward( new BaseReward( typeof( DashasSatchel2 ), "Dasha's Satchel" ) );
 else
 AddReward( new BaseReward( typeof( DashasSatchel ), "Dasha's Satchel" ) );
 }
 }
 }

The PlayerMobile pm I am stuck on how to implement that into that section, grrrrr~
 
Back