Removed outdated clan trader conditions.
This commit is contained in:
@@ -19,7 +19,6 @@ package ai.others.ClanTrader;
|
|||||||
import org.l2jmobius.Config;
|
import org.l2jmobius.Config;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
|
|
||||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||||
|
|
||||||
@@ -108,16 +107,7 @@ public class ClanTrader extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onFirstTalk(Npc npc, Player player)
|
public String onFirstTalk(Npc npc, Player player)
|
||||||
{
|
{
|
||||||
String htmltext = null;
|
return npc.getId() + ".html";
|
||||||
if (player.getClanId() > 0)
|
|
||||||
{
|
|
||||||
htmltext = npc.getId() + ((player.isClanLeader() || player.hasClanPrivilege(ClanPrivilege.CL_SETTINGS)) ? ".html" : "-06.html");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
htmltext = npc.getId() + "-01.html";
|
|
||||||
}
|
|
||||||
return htmltext;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
|
Reference in New Issue
Block a user