Need a hand with 2 things ive been tryin to work out but not had much luck so far.
1:Took this example from mining which sets the specific map, But how can you set multiple coords on the map so the action can only been done when standing in those coords rather then the entire map?
2: Below is the basic code for selecting if someone has a certain amount of a specific item in there bag and there removing them, How would you go about checking if they had multiple different items between a certain item number range, Say between item numbers 10000 and 10010 but which ever they had as long as there combined amount = say 10 u would remove them from there inventory?
For Example you could have:
10000 x3
10003 x4
10009 x3
or
10001 x2
10003 x6
10007 x3
1:Took this example from mining which sets the specific map, But how can you set multiple coords on the map so the action can only been done when standing in those coords rather then the entire map?
Code:
switch (client.Entity.MapID)
{
case 1002:
{
Mine(700011, 700001, 700021, 700071, 1072010, 1072050, 1072031, 0, client);
break;
}
default:
{
client.Send(new Message("You cannot mine here. You must go inside a mine.", System.Drawing.Color.Red, Message.TopLeft));
client.Mining = false;
break;
}
2: Below is the basic code for selecting if someone has a certain amount of a specific item in there bag and there removing them, How would you go about checking if they had multiple different items between a certain item number range, Say between item numbers 10000 and 10010 but which ever they had as long as there combined amount = say 10 u would remove them from there inventory?
For Example you could have:
10000 x3
10003 x4
10009 x3
or
10001 x2
10003 x6
10007 x3
Code:
if (client.Inventory.Contains(723467, 10))
{
client.Inventory.Remove(723467, 10);