mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-16 10:32:58 +08:00
Fix drop command bug (#25)
Update coop command Add /killall to CustomCommands
This commit is contained in:
@@ -513,8 +513,16 @@ namespace GrasscutterTools
|
||||
{
|
||||
var id = name.Substring(0, name.IndexOf(':')).Trim();
|
||||
|
||||
SetCommand(ChkDrop.Checked ? "/drop" : "/give",
|
||||
$"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
|
||||
if (ChkDrop.Checked)
|
||||
{
|
||||
NUDGameItemLevel.Enabled = false;
|
||||
SetCommand("/drop", $"{id} {NUDGameItemAmout.Value}");
|
||||
}
|
||||
else
|
||||
{
|
||||
NUDGameItemLevel.Enabled = true;
|
||||
SetCommand("/give", $"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user