Serenity 3 submitted a new resource:
WoodSwap - Swaps wood for Charcoal with one command
Read more about this resource...
WoodSwap
Swaps wood for charcoal with one command
Total Downloads: 182 - First Release: Mar 4, 2017 - Last Update: Mar 4, 2017
- 5/5, 2 likes
-
-
hey, i have the permissions of the plugin and i use /swapwood <amount>. But my charcoal doesnt appear! in RCON i get the following message:
"Creating item with less than 1 amount! (Charcoal)"
The wood disapear but there is no charcoal in my inventory.
any idea? -
So I am trying to set it to a 1:1 ratio but when I set "Charcoaltowood": 1 it says in console: Creating item with less than 1 amount! (Charcoal). Works just fine at 2 or above, but not at 1. Any chance this can be fixed?
edit
Actually I have noticed, if you edit the config file and change the default value in anyway at, then reload the plugin, it will say Creating item with less than 1 amount! (Charcoal)
However when I edited the .cs file and changed it to 1, it worked.Last edited by a moderator: Mar 23, 2017 -
installed configured error: console: Creating item with less than 1 amount! (Charcoal).
Wood gone no Charc. -
Didn't change anything.
And a few hours later it stopped working again, haven't done anything.
This one is alive I guess lol.Last edited by a moderator: Apr 15, 2017 -
I have been on Hiatus for a while but I'm back now.
-
Change the last piece of code in the fileWoodSwap.cs - (will be one to one)
Code:if (amount > charcwood) { player.ChatMessage(lang.GetMessage("NotEnoughWood", this, player.UserIDString)); return; }
-
-
A server I write plugins for wanted a working version of this for VIPs, so I fixed it, basically it needs a call to LoadVariables() from Init() to register the config change, I also added a check to verify the config had changed to be on the safe side.
@Serenity 3 I can send you this if you want, I will not post it here because @Wulf frowns on us posting full plugins -
Wulf Community Admin
-
It seems the author left again. -
That plugin uses the hardcoded IDs, so its not working after update.
-
Code:
const int Wood = -151838493; const int Charcoal = -1938052175;
[DOUBLEPOST=1529249700][/DOUBLEPOST]