Just to go over some basic changes that can be done to LOTF easily, but improve the gaming experience.
I was going to make an NPC guide to start, but... Then I figured, if you can't make an NPC, you're not gonna manage anything else. ><
So I'll begin with something simple. Let's say you suddenly decided to add Mobs to Metzone, what aspects of metzone do we need to account for?
-Higher Meteor drop rates.
-No using city gates.
-Reviving outside of metzone after death.
Just basic idea's, can't think of anything else right now. So first, we want the Meteors to drop more then everywhere else.
In Entities.cs, search for...
scroll down the code from there, and you'll see code similar to...
Then below it add something like...
Now for making sure people don't scroll out of Metzone. Not a complicated procedure, just an annoying one.
In Character.cs, search for...
You'll want to make the CityGate so it's only usable in specific maps. Here's an exmple.
For every map you want the scroll to be usable, simply add...
onto the
And this way if your on a map which doesn't have it's ID specified in the city gates right click function, it will just remove the scroll, leaving you sitting in the same spot. ><
Note: You can also add right click options for other items in this section. Use your imagination, it's not difficult. But if you really can't figure it out, let me know and I'll give you some examples. -_-"
Now we want to make it so when someone dies... they don't revive in the exact same spot they're dead.
In DataBase.cs, go To...
Now every time you add a revive map option here, you need to increase the blue number by 1.
Then scroll to the bottom of the list and add... (for this example, we'll make you revive in twin city after death.)
-----------------------------------------------------------------------
I know, it's nothing special, but I got bored, and there are bound to be people who don't have a clue how to do this, and will eventually ask.
I was going to make an NPC guide to start, but... Then I figured, if you can't make an NPC, you're not gonna manage anything else. ><
So I'll begin with something simple. Let's say you suddenly decided to add Mobs to Metzone, what aspects of metzone do we need to account for?
-Higher Meteor drop rates.
-No using city gates.
-Reviving outside of metzone after death.
Just basic idea's, can't think of anything else right now. So first, we want the Meteors to drop more then everywhere else.
In Entities.cs, search for...
Code:
uint MoneyDrops = 0;
Code:
{
if (Other.ChanceSuccess(1))
{
string Item = "1060101-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
}
}
Code:
if (Name == "[COLOR="blue"]TreasureBird[/COLOR]")//reads MySql Database for monster name, that way only that monster drops the item at the new drop rate.
{
if (Other.ChanceSuccess([COLOR="blue"]5[/COLOR]))//the blue number is the drop rate.
{
string Item = "[COLOR="blue"]1088001[/COLOR]-0-0-0-0-0";//the blue number is the itemUID
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
}
}
In Character.cs, search for...
Code:
else if (ItemParts[0] == "1060020")
{
Teleport(1002, 429, 378);
RemoveItem(ItemUID);
}
Code:
else if (ItemParts[0] == "1060020")
{
[COLOR="Red"]if (LocMap == 1002 || LocMap == 1005)[/COLOR]
Teleport(1002, 429, 378);
RemoveItem(ItemUID);
}
Code:
|| LocMap == MapID
Code:
if (LocMap == 1002 || LocMap == 1005)
Note: You can also add right click options for other items in this section. Use your imagination, it's not difficult. But if you really can't figure it out, let me know and I'll give you some examples. -_-"
Now we want to make it so when someone dies... they don't revive in the exact same spot they're dead.
In DataBase.cs, go To...
Code:
public static void LoadRevPoints()
Code:
RevPoints = new ushort[[COLOR="blue"]26[/COLOR]][];
Code:
RevPoints[23] = new ushort[4] { [COLOR="Red"]1210[/COLOR], [COLOR="SeaGreen"]1002[/COLOR], [COLOR="Blue"]430[/COLOR], [COLOR="Blue"]380[/COLOR] };//Red is the map you're on. Green is the map you'll revive on. Blue are the coordinates.
I know, it's nothing special, but I got bored, and there are bound to be people who don't have a clue how to do this, and will eventually ask.