Okay, I have had this old quest for a long time, FS Grave Digger Quest, I just just cant seem to understand this problem. I have gone from 300 and something errors down to 11 and I'm just stuck. Matbe I'm thinking about it to much and its right in front of me?
Heres the error
+ Custom/Quests/FS Grave Digger Quest/Grave Digging System/Quest/TheGraveDigger/Mobiles/Yoshimitsu.cs:
CS1501: Line 82: No overload for method 'GetLootingRights' takes 2 arguments
So I am wondering if looting right got rewritten?
and here is the code, just read this is servuo 54.
Any help appreciated.
Heres the error
+ Custom/Quests/FS Grave Digger Quest/Grave Digging System/Quest/TheGraveDigger/Mobiles/Yoshimitsu.cs:
CS1501: Line 82: No overload for method 'GetLootingRights' takes 2 arguments
So I am wondering if looting right got rewritten?
and here is the code, just read this is servuo 54.
C#:
public void CheckQuest()
{
This line--> List<DamageStore> rights = BaseCreature.GetLootingRights( this.DamageEntries, this.HitsMax );
ArrayList mobile = new ArrayList();
for ( int i = rights.Count - 1; i >= 0; --i )
{
DamageStore ds = (DamageStore)rights[i];
if ( ds.m_HasRight )
{
if ( ds.m_Mobile is PlayerMobile )
{
PlayerMobile pm = (PlayerMobile)ds.m_Mobile;
QuestSystem qs = pm.Quest;
if ( qs is TheGraveDiggerQuest )
{
mobile.Add( ds.m_Mobile );
}
}
}
}
for ( int i = 0; i < mobile.Count; ++i )
{
PlayerMobile pm = (PlayerMobile)mobile[i % mobile.Count];
QuestSystem qs = pm.Quest;
QuestObjective obj = qs.FindObjective( typeof( FindAsianOilObjective ) );
if ( obj != null && !obj.Completed )
{
Item oil = new AsianOil();
if ( !pm.PlaceInBackpack( oil ) )
{
oil.Delete();
pm.SendLocalizedMessage( 1046260 ); // You need to clear some space in your inventory to continue with the quest. Come back here when you have more space in your inventory.
}
else
{
obj.Complete();
pm.SendMessage( "You loot the oils off the ninja's corpse." );
}
}
}
}
Any help appreciated.