GatherPlus

Approved GatherPlus 4.2.3

No permission to download

chaochaoq9

Member
Member
Jul 27, 2014
102
4
16
Feedback BUG:
  1. BUG when the backpack with the same items!
  2. /boodrate Unable to set
10times



Magma Code in the:

function On_PlayerGathering(Player, GatherEvent) {
if (Player.Inventory.FreeSlots == 1) {
Player.InventoryNotice("Your inventory is full!");
Player.Inventory.DropItem(35);
}
}


This code has failed in Fougerite.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Feedback BUG:
  1. BUG when the backpack with the same items!
  2. /boodrate Unable to set
10times



Magma Code in the:

function On_PlayerGathering(Player, GatherEvent) {
if (Player.Inventory.FreeSlots == 1) {
Player.InventoryNotice("Your inventory is full!");
Player.Inventory.DropItem(35);
}
}


This code has failed in Fougerite.
Thanks, Should be an easy fix! Update soon! :)
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Feedback BUG:
  1. BUG when the backpack with the same items!
  2. /boodrate Unable to set
10times



Magma Code in the:

function On_PlayerGathering(Player, GatherEvent) {
if (Player.Inventory.FreeSlots == 1) {
Player.InventoryNotice("Your inventory is full!");
Player.Inventory.DropItem(35);
}
}


This code has failed in Fougerite.
If my inventory is full it doesn't give out any items, I am using Fougerite MC4.
Also /bloodrate works for me, I even downloaded to make sure.
 

chaochaoq9

Member
Member
Jul 27, 2014
102
4
16
Oh okay, So you don't want it to display how much you gathered when inventory is full?
Would lead to such a BUG unlimited resources, increasing the burden of the server. Deposit libraries have no spaces, suggesting cleanup backpack and fell out items. Prevent the use of BUG.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Jakkee updated GatherRate with a new update entry:

V4.0.5 - Infinte gather glitch fix

Fixed Infinite gather.

Say you have your gather rate set to 5 but your inventory is full and you hit it, it will say "Inventory full" but it will double the gather rate. E.g 5, 10, 15, 20.
So without this version you can pretty much get a full inventory of wood in 1 hit.
This version does not stop the doubling of the gather rate but it does stop having the inventory filled with wood in one hit.

E.x: GatherRate is set at 5 and you have a full inventory and you hit a wood pile 20-30...
Read the rest of this update entry...
 

chaochaoq9

Member
Member
Jul 27, 2014
102
4
16
O I see! Jez thats going to be a problem.
I'm not even sure how to go about this, I'm going to have to play around for a bit.
I use a translator, translation in English, I'm glad you can understand the problem ..;)
 

chaochaoq9

Member
Member
Jul 27, 2014
102
4
16
Nice !;) Fougerite.1.0.3G The work,But can not be set / boodrate Fougerite.1.0.3G Does not work ,Why??
MC4 I would not use ...
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Nice !;) Fougerite.1.0.3G The work,But can not be set / boodrate Fougerite.1.0.3G Does not work ,Why??
MC4 I would not use ...
I just quickly changed my server to 1.0.3G and loaded my plugin.

This was the code I used to show that DEBUG stuff.
JavaScript:
case "bloodrate":
            if (Player.Admin){
                if(args.Length != 1) {
                    Player.Message("You can not use spaces! Help: /gatherhelp");
                    return;
                }
                var Name8 = args[0];
                var iniCfg = Plugin.GetIni("Settings");
                Player.Message("--DEBUG--");//1
                Player.Message("Got Settings");//2
                iniCfg.AddSetting("Config", "Blood", Name8);
                Player.Message("Added Setting");//3
                iniCfg.Save();
                Player.Message("Ini saved");//4
                DataStore.Add("GatherRate", "Blood", parseFloat(iniCfg.GetSetting("Config", "Blood")));
                Player.Message("Added to DataStore");//5
                Player.Message("--END OF DEBUG--");//6
                Player.Message(Name8 + " is the new gather rate for Blood Bags!");
            }else{
                Player.MessageFrom("GatherRate", "You can not use that command!")
            }   
        break;
So what exactly doesn't work, The command? or actually gathering.
 

chaochaoq9

Member
Member
Jul 27, 2014
102
4
16
/boodrate command doesn't work...Another command will work...
 
Last edited:

chaochaoq9

Member
Member
Jul 27, 2014
102
4
16
Any errors in console? (Have Debug turned on in Fougerite.cfg)
case "bloodrate":
if (Player.Admin){
if(args.Length != 1) {
Player.Message("You can not use spaces! Help: /gatherhelp");
return;
}
var Name8 = args[0];
var iniCfg = Plugin.GetIni("Settings");
iniCfg.AddSetting("Config", "Blood", Name8);
iniCfg.Save();
DataStore.Add("GatherRate", "Blood", parseFloat(iniCfg.GetSetting("Config", "Blood")));
Player.Message(Name8 + " is the new gather rate for Blood Bags!");
}else{
Player.MessageFrom("GatherRate", "You can not use that command!")
}
break;
case "gatherhelp":
if (Player.Admin){
Player.Message("Useage, E.G: /woodrate [Enter whole number, 1=Default]");
Player.Message("Commands;");
Player.Message("/woodrate, /sulfurrate, /stonesrate,");
Player.Message("/leatherrate, /clothrate, /chickenrate,");
Player.Message("/boodrate, /fatrate, /metalrate");

ok.. I know where the wrong. case "bloodrate". I use /gatherhelp /boodrate ...:p
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
case "bloodrate":
if (Player.Admin){
if(args.Length != 1) {
Player.Message("You can not use spaces! Help: /gatherhelp");
return;
}
var Name8 = args[0];
var iniCfg = Plugin.GetIni("Settings");
iniCfg.AddSetting("Config", "Blood", Name8);
iniCfg.Save();
DataStore.Add("GatherRate", "Blood", parseFloat(iniCfg.GetSetting("Config", "Blood")));
Player.Message(Name8 + " is the new gather rate for Blood Bags!");
}else{
Player.MessageFrom("GatherRate", "You can not use that command!")
}
break;
case "gatherhelp":
if (Player.Admin){
Player.Message("Useage, E.G: /woodrate [Enter whole number, 1=Default]");
Player.Message("Commands;");
Player.Message("/woodrate, /sulfurrate, /stonesrate,");
Player.Message("/leatherrate, /clothrate, /chickenrate,");
Player.Message("/boodrate, /fatrate, /metalrate");

ok.. I know where the wrong. case "bloodrate". I use /gatherhelp /boodrate ...:p
ahhhh, Whoops! haha.
Updating now