[FSOD] Need help with code...
I tried to add my own 'task system' as in realm resolution source and I wrote some code where if you have the required item, it give you the reward and replaces the 'task tablet' with the next 'task tablet'.
What's the problem with this? Every time I use it, the reward works but the task tablet doesn't change.
P.S How to put this in 'code' thing again :P ?
Thanks in Advance!
Code:
case ActivateEffects.Task1:
{
for (int i = 0; i < Inventory.Length; i++)
if (Inventory[i].ObjectId == "Dragon Pearl")
{
{
if (Inventory[i] == null) continue;
if (Inventory[i].ObjectId == "Dragon Pearl") ;true; }
{
Inventory[i] = Manager.GameData.Items[0x108e];
UpdateCount++;
SaveToCharacter();
SendInfo("You have completed the task!");
return true;
};
if (Inventory[i].ObjectId == "Task Tablet 1")
{
Inventory[i] = Manager.GameData.Items[0x42c9];
UpdateCount++;
SaveToCharacter();
return true;
}
}
};
};
break;
P.S How to put this in 'code' thing again :P ?
Thanks in Advance!


