Seven Sign Seal Of The Emperor
Не пускает меня Promise of mammon внутря, говорит не подхожу по мин требованиям..
квест:Развернуть ↓инстанс:Развернуть ↓инстанс хмл:Развернуть ↓инстанснейм хмл:Развернуть ↓что не так ? :cs: |
Re: Seven Sign Seal Of The Emperor
на питоне что ли, ну что ж
вот рабочий квест Цитата:
Цитата:
|
Re: Seven Sign Seal Of The Emperor
щас попробую ... я уже около 7-8 квестов перебрал ... и дажва и питон ...
|
Re: Seven Sign Seal Of The Emperor
Цитата:
|
Re: Seven Sign Seal Of The Emperor
а можно ещё и скрипт инстанса ?
Добавлено через 1 минуту в принципе не проблема прикрутить и джаву, главное чтобы работало, я не сторонник джавы или питона) я сторонник работоспособности) |
Re: Seven Sign Seal Of The Emperor
Цитата:
/* By knoxville OpenTeamFree 14.09.2010, Based on PTS Freya. TODO: Lilith and Anakim Attack. */ package l2.universe.scripts.instances; import l2.universe.gameserver.ai.CtrlIntention; import l2.universe.gameserver.instancemanager.InstanceManager; import l2.universe.gameserver.instancemanager.InstanceManager.InstanceWorld; import l2.universe.gameserver.model.L2World; import l2.universe.gameserver.model.actor.L2Npc; import l2.universe.gameserver.model.actor.instance.L2DoorInstance; import l2.universe.gameserver.model.actor.instance.L2PcInstance; import l2.universe.gameserver.model.quest.Quest; import l2.universe.gameserver.model.quest.QuestState; import l2.universe.gameserver.network.SystemMessageId; import l2.universe.gameserver.network.serverpackets.ExStartScenePlayer; import l2.universe.gameserver.network.serverpackets.SystemMessage; public class Disciple extends Quest { private class DiSWorld extends InstanceWorld { public long[] storeTime = {0,0}; public DiSWorld() { } } private static final String qn = "Disciple"; private static final int INSTANCEID = 112; private static final int PROMISE = 32585; private static final int LEON = 32587; private static final int DOOR = 17240111; private static final int GATEKEEPER = 32657; private class teleCoord {int instanceId; int x; int y; int z;} private void teleportplayer(L2PcInstance player, teleCoord teleto) { player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); player.setInstanceId(teleto.instanceId); player.teleToLocation(teleto.x, teleto.y, teleto.z); } protected void exitInstance(L2PcInstance player, teleCoord tele) { player.setInstanceId(0); player.teleToLocation(tele.x, tele.y, tele.z); } protected int enterInstance(L2PcInstance player, String template, teleCoord teleto) { int instanceId = 0; InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(player); if (world != null) { if (!(world instanceof DiSWorld)) { player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.ALREADY_ENTERED_ANOTHER_INSTANCE_CANT_ENTER)); return 0; } teleto.instanceId = world.instanceId; teleportplayer(player,teleto); return instanceId; } else { instanceId = InstanceManager.getInstance().createDynamicInstance(template); world = new DiSWorld(); world.instanceId = instanceId; world.templateId = INSTANCEID; world.status = 0; ((DiSWorld)world).storeTime[0] = System.currentTimeMillis(); InstanceManager.getInstance().addWorld(world); _log.info("Disciple started " + template + " Instance: " + instanceId + " created by player: " + player.getName()); teleto.instanceId = instanceId; teleportplayer(player,teleto); world.allowed.add(player.getObjectId()); return instanceId; } } protected void openDoor(int doorId,int instanceId) { for (L2DoorInstance door : InstanceManager.getInstance().getInstance(instanceId).getDoors()) { if (door.getDoorId() == doorId) door.openMe(); } } @Override public String onTalk ( L2Npc npc, L2PcInstance player) { QuestState st = player.getQuestState(qn); if (st == null) st = newQuestState(player); switch (npc.getNpcId()) { case PROMISE: teleCoord tele = new teleCoord(); tele.x = -89559; tele.y = 216030; tele.z = -7488; enterInstance(player, "Disciple.xml", tele); break; case LEON: InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(player); world.allowed.remove(world.allowed.indexOf(player.getObjectId())); tele = new teleCoord(); tele.instanceId = 0; tele.x = 171782; tele.y = -17612; tele.z = -4901; exitInstance(player,tele); break; case GATEKEEPER: final InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(npc.getInstanceId()); if (tmpworld instanceof DiSWorld) { world = (DiSWorld) tmpworld; openDoor(DOOR,world.instanceId); for (int objId : world.allowed) { final L2PcInstance pl = L2World.getInstance().getPlayer(objId); if (pl != null) pl.showQuestMovie(ExStartScenePlayer.SSQ_SEALING_EMPEROR_1ST); } } break; } return ""; } public Disciple(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(PROMISE); addTalkId(PROMISE); addTalkId(LEON); addTalkId(GATEKEEPER); } public static void main(String[] args) { new Disciple(-1, qn, "instances"); } }и вообще я спать потопал, качайте исходники инфинити, так проще:) |
Re: Seven Sign Seal Of The Emperor
Какой жуткий у вас код у всех. Просто отвратительный.
И проверять нужно не квест, а данж. |
Re: Seven Sign Seal Of The Emperor
эээ:Развернуть ↓это типа должно работать ? у меня не запускается дисцайпл ... куча ошибок....после удаления пробелов осталось 13 ошибок ...пошёл дальше капаться .... Добавлено через 4 минуты import ru.l2open.gameserver.instancemanager.InstanceMange r.InstanceWorld; на эту строчку ругаеццо , чо делать ? |
Re: Seven Sign Seal Of The Emperor
Выкладывайте код под:
PHP код:
Добавлено через 1 минуту Цитата:
|
Re: Seven Sign Seal Of The Emperor
ну правильно, вот в цитате я и заметил что там пробел , не получилось у меня это скомпилировать ...мызгаю другие скрипты ... охххх ....
Добавлено через 1 минуту блин, что я делаю не так ? до этого , у меня небыло в сборке этого квеста, я добавляю его руками, что я не сделал ? Добавлено через 18 минут нашёл в какой то сборке файлик сlass на сколько я понял нужно его запихнуть в папочку бин ? или как ? Код:
The packge instance.disciple collides with a type Добавлено через 21 час 6 минут чо делать с этим то ?:( обьясните как добавлять импорты пожалуйсто, и как впихивать невпихуемое ) тоесть есть такая тема как Код:
SystemMessageId.ALREADY_ENTERED_ANOTHER_INSTANCE_CANT_ENTER Код:
pl.showQuestMovie(ExStartScenePlayer.SSQ_SEALING_EMPEROR_1ST); |
Текущее время: 20:55. Часовой пояс GMT +3. |
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot