Gptaqbc new stuff 6 (#328)

* Some stuff on weight

Some stuff on weight

* Cleaned some code related to trading and fixed most likely the issue where the player stays busy and cant trade till relog

Cleaned some code related to trading and fixed most likely the issue where the player stays busy and cant trade till relog

* removed a shitload of '== true'

I did a search and replace but I manually checked the changes that were made so there shouldn't be any issue with that.

* Fixed drop issue

* Fixed duel arena, changed some chat message so they are all the same, changed Additem

Fixed duel arena:
> 98% completed duel (the winning duel sound is still missing)
> Added forfeiting
> Added checks to prevent tbing, teleothers, teleport and logout from duel
> Remove the check for same IP to disable duel

Item Assistant:
> Changed the AddItem method so it now drops items on the ground if inventory is full

Cleaned some stuff while I was at it...

* Update ItemAssistant.java

Oupsie

* Resolving my issues

* Allow walking during movement

* Why won't commit work

Co-authored-by: Gptaqbc <56596815+Gptaqbc@users.noreply.github.com>
This commit is contained in:
Daniel Ginovker
2019-12-26 00:33:18 -05:00
committed by GitHub
parent e8685c97d0
commit 43a0f3e9f1
32 changed files with 80 additions and 41 deletions
@@ -1352,6 +1352,11 @@ public class ClickingButtons implements PacketType {
"You won't be able to attack the player with the rules you have set.");
break;
}
if (player.duelRule[9]) {
player.getPacketSender()
.sendMessage(
"@red@You won't be able to attack if you don't have a fun weapon.");
}
player.duelStatus = 2;
if (player.duelStatus == 2) {
player.getPacketSender().sendFrame126(
@@ -1676,9 +1681,9 @@ public class ClickingButtons implements PacketType {
player.goodTrade = false;
ot.goodTrade = false;
player.getPacketSender().sendFrame126(
"Not enough inventory space...", 3431);
"Not enough space in your inventory.", 3431);
ot.getPacketSender().sendFrame126(
"Not enough inventory space...", 3431);
"Not enough space in your inventory.", 3431);
break;
} else {
player.getPacketSender().sendFrame126(