三九稀有游戏论坛

 找回密码
 立即注册

楼主: qq410328702
打印 上一主题 下一主题

黑色沙漠693151979洛奇英雄传488734697

[复制链接]

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
21#
 楼主| 发表于 2018-7-21 14:52:47 | 只看该作者
/*
* DISCORD: https://discord.gg/YYjjPMM
*
* Copyright (C) 2018 bdoEmu
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*/

package com.bdoemu.gameserver.model.pvp;

public enum ELocalWarStatusType {
    Waiting,
    Started,
    Ending;

    public boolean isStarted() {
        return this == ELocalWarStatusType.Started;
    }

    public boolean isEnding() {
        return this == ELocalWarStatusType.Ending;
    }

    public boolean isWaiting() {
        return this == ELocalWarStatusType.Waiting;
    }
}
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
22#
 楼主| 发表于 2018-7-22 05:00:37 | 只看该作者
啊实打实大苏打似的阿三啥的啥的阿三大厦大厦s
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
23#
 楼主| 发表于 2018-7-22 20:20:27 | 只看该作者
/*
* DISCORD: https://discord.gg/YYjjPMM
*
* Copyright (C) 2018 bdoEmu
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*/

package com.bdoemu.gameserver.scripts.commands;

import com.bdoemu.commons.model.enums.EAccessLevel;
import com.bdoemu.gameserver.model.chat.CommandHandler;
import com.bdoemu.gameserver.model.chat.CommandHandlerMethod;
import com.bdoemu.gameserver.model.creature.player.Player;
import com.bdoemu.gameserver.model.creature.player.itemPack.events.AddItemEvent;
import com.bdoemu.gameserver.worldInstance.World;
import org.apache.commons.lang3.text.StrBuilder;

@CommandHandler(prefix = "bag", accessLevel = EAccessLevel.MODERATOR)
public class BagCommandHandler extends AbstractCommandHandler {
    private static StrBuilder helpBuilder;

    static {
        (BagCommandHandler.helpBuilder = new StrBuilder()).appendln("Available commands:");
        BagCommandHandler.helpBuilder.appendln("add [itemId] [count] (Optional: [enchantLevel])");
        BagCommandHandler.helpBuilder.appendln("addtoplayer [playerName] [itemId] [count] (Optional: [enchantLevel])");
    }

    @CommandHandlerMethod
    public static Object[] index(final Player player, final String... params) {
        return AbstractCommandHandler.getAcceptResult(BagCommandHandler.helpBuilder.toString());
    }

    @CommandHandlerMethod
    public static Object[] add(final Player player, final String[] params) {
        int enchantLevel = 0;
        if (params.length < 2) {
            return index(player, params);
        }
        Integer itemId;
        Long count;
        try {
            itemId = Integer.parseInt(params[0]);
            count = Long.parseLong(params[1]);
            if (params.length >= 3) {
                enchantLevel = Integer.parseInt(params[2]);
            }
        } catch (NumberFormatException ex) {
            return AbstractCommandHandler.getRejectResult("Incorrect number format.");
        } catch (ArrayIndexOutOfBoundsException ex2) {
            return AbstractCommandHandler.getRejectResult("Incorrect parameters count.");
        }
        if (!player.getPlayerBag().onEvent(new AddItemEvent(player, itemId, enchantLevel, count))) {
            return AbstractCommandHandler.getRejectResult("Fail while executing add ItemEvent.");
        }
        return AbstractCommandHandler.getAcceptResult("Item successfully added.");
    }

    @CommandHandlerMethod(accessLevel = EAccessLevel.ADMIN)
    public static Object[] addtoplayer(final Player player, final String[] params) {
        int enchantLevel = 0;
        if (params.length < 3) {
            return index(player, params);
        }
        Player target;
        Integer itemId;
        Long count;
        try {
            target = World.getInstance().getPlayer(params[0]);
            if (target == null) {
                return AbstractCommandHandler.getRejectResult("Player " + params[3] + " doesn't exist in world!");
            }
            itemId = Integer.parseInt(params[1]);
            count = Long.parseLong(params[2]);
            if (params.length >= 4) {
                enchantLevel = Integer.parseInt(params[3]);
            }
        } catch (NumberFormatException ex) {
            return AbstractCommandHandler.getRejectResult("Incorrect number format.");
        } catch (ArrayIndexOutOfBoundsException ex2) {
            return AbstractCommandHandler.getRejectResult("Incorrect parameters count.");
        }
        if (!target.getPlayerBag().onEvent(new AddItemEvent(target, itemId, enchantLevel, count))) {
            return AbstractCommandHandler.getRejectResult("Fail while executing add ItemEvent.");
        }
        return AbstractCommandHandler.getAcceptResult("Item successfully added.");
    }
}
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
24#
 楼主| 发表于 2018-7-23 00:20:51 | 只看该作者


丨★丨经验倍率5000%,金币倍率5000%,AP倍率1000%,暴率5000%
丨★丨升级就送福利可得+15以上强化券,让升级不再无目的!
丨★丨进服送:60+10双附魔装备一套,告别新手无力期,进入即可开心的玩耍!
丨★丨进服送:30攻速和300幸运!告别低攻速时代!
丨★丨可领回归礼包,Q签名送宠物[自动拾取]
丨★丨升级就送福利可得+15以上强化券,让升级不再无目的!
丨★丨大幅度提升技能伤害、精通技能效果,体验游戏原汁原味的极致战斗
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
25#
 楼主| 发表于 2018-7-23 18:21:16 | 只看该作者
热微软微软微软微软微软微软微软为认为认为r
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
26#
 楼主| 发表于 2018-7-23 23:28:38 | 只看该作者
的撒大苏打阿三阿斯顿啊水水水水水水水水水水水水水水打算a's'd
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
27#
 楼主| 发表于 2018-7-24 13:53:00 | 只看该作者

大扎好,我四渣嘎班,喵喵洛奇完美11职业,介四里没有挽过的船新版本,挤需体验三番钟,里造会干我一样
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
28#
 楼主| 发表于 2018-7-24 18:15:23 | 只看该作者
打死大四打算打算发阿三打算大事发生的啊实打实的啊实打实
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
29#
 楼主| 发表于 2018-7-24 22:50:39 | 只看该作者
0%,金币倍率5000%,AP倍率1000%,暴率5000%
丨★丨升级就送福利可得+15以上强化券,让升级不再无目的!
丨★丨进服送:60+10双附魔装备一套,告别新手无力期,进入即可开心的玩耍!
丨★丨进服送:30攻速和300幸运!告别低攻速时代!
丨★丨可领回归礼包,Q签名送宠物[自动拾取]
丨★丨升级就送福利可得+15以上强化券,让升级不再无目的!
丨★丨大幅度提升技能伤害、精通技能
回复 支持 反对

使用道具 举报

2

主题

268

帖子

1051

积分

金牌会员

Rank: 6Rank: 6

积分
1051
30#
 楼主| 发表于 2018-7-25 14:11:37 | 只看该作者

链接:https://pan.baidu.com/s/11SJCh6nTmOmpP9kQnw7yag 密码:3kdi

百度云下载地址











黑色沙漠(贪玩黑纱)客户端快速下载指南
http://banzhangyouxi.top:8080/fo ... d=147&fromuid=1
(出处: 班长游戏平台喵喵洛奇英雄传)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表