Jump to content

Digitalic

Members
  • Posts

    216
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Digitalic

  1. ta centos einai polu pio dynamika kai aksiopista... ostoso ta debian einai gia arxarious.. enw ta centos einai pio pro...
  2. centos ftw auta exw egw ston server mou megale... se proeidopoiw exei provlhma stous java servers. oxi tpt spoudaio alla an kaneis RR san admin mesa apo to game tha prepei prwta na exeis kanei kill sto box ton gameserver. dld kill -9 pid alliws tha sou kolaei.
  3. paidia kalhspera. shmera allakse o mhnas kalo mhna kiolas. teliwsan oi olympiades. pote vgainoun ta hero? pou mporw na dw ti wra allazei to status twn player pou eixan pontous gia na vgoun hero?
  4. hello paides... yparxei tropos na allaksw to alliance na xwraei 4 clan anti gia 3 pou einai to normal? kserei kaneis?
  5. h sketo dungeon...
  6. gameserver/data/instances prepei na legetai CastleDungeon.xml to exeis na me swseis?
  7. exw pack l2j free freya.
  8. paidia kalhspera exw ena thema ston server mou exw 400 atoma... alla den douleuei to Castle Dungeon exei kaneis to code xml na me help?
  9. kalhspera paidia pws mporw na kanw to giran na mhn poulane opou na nai? opws skalia px
  10. Kalhspera paides... Yparxei kapoio post sxetiko me to community tou server? pataw Alt B kai mou vgazei diafora. alla px ta links Events news rulles den douleuoun apo pou ta settarw auta. kapoio help? thnx.
  11. paides exw kapoia retails events. ta retails omws ksekinane mona tous. emena mou ta exei se enan fakelo events to java kai ta htm tous. edw einai o java tou heavymedal event. ti prepei na kanw gia na ksekinhsei? package events.HeavyMedal; import com.l2jserver.gameserver.instancemanager.QuestManager; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; import com.l2jserver.util.Rnd; /** ** @author Gnacik ** ** Retail Event : 'Heavy Medals' */ public class HeavyMedal extends Quest { private final static int CAT_ROY = 31228; private final static int CAT_WINNIE = 31229; private final static int GLITTERING_MEDAL = 6393; private final static int WIN_CHANCE = 50; private final static int[] MEDALS = { 5,10,20,40 }; private final static int[] BADGES = { 6399,6400,6401,6402 }; public HeavyMedal(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(CAT_ROY); addStartNpc(CAT_WINNIE); addTalkId(CAT_ROY); addTalkId(CAT_WINNIE); addFirstTalkId(CAT_ROY); addFirstTalkId(CAT_WINNIE); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmltext = ""; QuestState st = player.getQuestState(getName()); htmltext = event; int level = checkLevel(st); if (event.equalsIgnoreCase("game")) { if (st.getQuestItemsCount(GLITTERING_MEDAL) < MEDALS[level]) return "31229-no.htm"; else return "31229-game.htm"; } else if (event.equalsIgnoreCase("heads") || event.equalsIgnoreCase("tails")) { if (st.getQuestItemsCount(GLITTERING_MEDAL) < MEDALS[level]) return "31229-"+event.toLowerCase()+"-10.htm"; st.takeItems(GLITTERING_MEDAL, MEDALS[level]); if(Rnd.get(100) > WIN_CHANCE) { level = 0; } else { if (level>0) st.takeItems(BADGES[level-1], -1); st.giveItems(BADGES[level], 1); st.playSound("Itemsound.quest_itemget"); level++; } return "31229-"+event.toLowerCase()+"-"+String.valueOf(level)+".htm"; } else if (event.equalsIgnoreCase("talk")) { return String.valueOf(npc.getNpcId())+ "-lvl-"+String.valueOf(level)+".htm"; } return htmltext; } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { QuestState st = player.getQuestState(getName()); if (st == null) { Quest q = QuestManager.getInstance().getQuest(getName()); st = q.newQuestState(player); } return npc.getNpcId()+".htm"; } public int checkLevel(QuestState st) { int _lev = 0; if(st == null) return 0; else if (st.getQuestItemsCount(6402) > 0) _lev = 4; else if (st.getQuestItemsCount(6401) > 0) _lev = 3; else if (st.getQuestItemsCount(6400) > 0) _lev = 2; else if (st.getQuestItemsCount(6399) > 0) _lev = 1; return _lev; } public static void main(String[] args) { new HeavyMedal(-1, "HeavyMedal", "events"); } }
  12. kalhspera epsaxna ta post alla den me help kai polu den katalava :/ to thema mou einai oti thelw na allaksw to gmspeed edw einai o kwdikas tou. <skill id="7029" levels="4" name="Super Haste"> <!-- GM Skill --> <table name="#pAtkSpd"> 2 3 3 2 </table> <table name="#runSpd"> 2 3 3 1 </table> <table name="#mAtkSpd"> 2 3 3 2 </table> <table name="#pAtk"> 1 1 10000 1 </table> <table name="#reuse"> 0.01 0.01 0.01 1 </table> <table name="#amount"> 1 1 1 2 </table> <set name="aggroPoints" val="1" /> <set name="operateType" val="OP_ACTIVE" /> <set name="skillType" val="BUFF" /> <set name="target" val="TARGET_SELF" /> <for> <effect name="Buff" time="1200" val="0" stackOrder="99" stackType="attack_time_down"> <mul order="0x30" stat="pAtkSpd" val="#pAtkSpd" /> <mul order="0x30" stat="runSpd" val="#runSpd" /> <mul order="0x30" stat="mAtkSpd" val="#mAtkSpd" /> <mul order="0x30" stat="pAtk" val="#pAtk" /> <mul order="0x30" stat="pReuse" val="#reuse" /> <mul order="0x30" stat="mReuse" val="#reuse" /> <mul order="0x30" stat="regMp" val="#amount" /> <mul order="0x30" stat="regMp" val="#amount" /> <mul order="0x30" stat="maxMp" val="#amount" /> <mul order="0x30" stat="maxLoad" val="#amount" /> </effect> </for> </skill> ti allazw gia na to anevasw h na to katevasw? px an thelw na exei 220 speed kai 980 att. speed? ti prepei na kanw? ena help kai gratz se olous pou voithate emas tous neous.
  13. den isxiei den douleuei molis to kanw "OP_PASSIVE"
  14. paidia kalhspera pws mporw na kanw to super haste passive?
  15. kalhspera paidia apo pou mporw na allaksw to eikonidio tou super haste kai na tou valw allo onoma?
  16. se sygkekrimeno paixth ginetai na dwsw?na tou anevasw to att speed px?
  17. kalhmera paidia... pws mporw na anevasw sygkrekimena stats se sygkekrimeno player?
  18. Linux gia na mhn niwthei tpt...
  19. hellranger uparxei sto freya pack ena folder pou legetai faenor ekei zipareis xml kwdikes pou theleis na kanoun start. me to swsto code to event ksekinaei mono tou thn hmeromhnia pou tou dineis. Fanky paw na to dw re trele.
  20. /* * 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 events.GiftOfVitality; import com.l2jserver.gameserver.datatables.SkillTable; import com.l2jserver.gameserver.instancemanager.QuestManager; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.instance.L2SummonInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; import com.l2jserver.gameserver.model.quest.State; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.SystemMessage; /** ** @author Gnacik ** ** Retail Event : 'Gift of Vitality' */ public class GiftOfVitality extends Quest { // Reuse between buffs private static final int _hours = 5; private static final int _jack = 4306; private static final int[][] _spawns = { { 82766, 149438, -3464, 33865 }, { 82286, 53291, -1488, 15250 }, { 147060, 25943, -2008, 18774 }, { 148096, -55466, -2728, 40541 }, { 87116, -141332, -1336, 52193 }, { 43521, -47542, -792, 31655 }, { 17203, 144949, -3024, 18166 }, { 111164, 221062, -3544, 2714 }, { -13869, 122063, -2984, 18270 }, { -83161, 150915, -3120, 17311 }, { 45402, 48355, -3056, 49153 }, { 115616, -177941, -896, 30708 }, { -44928, -113608, -192, 30212 }, { -84037, 243194, -3728, 8992 }, {-119690, 44583, 360, 29289 }, { 12084, 16576, -4584, 57345 } }; public GiftOfVitality(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(_jack); addFirstTalkId(_jack); addTalkId(_jack); for(int[] _spawn : _spawns) addSpawn(_jack, _spawn[0], _spawn[1], _spawn[2], _spawn[3], false, 0); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmltext = ""; QuestState st = player.getQuestState(getName()); htmltext = event; if (event.equalsIgnoreCase("vitality")) { long _reuse = 0; String _streuse = st.get("reuse"); if(_streuse != null) _reuse = Long.parseLong(_streuse); if(_reuse > System.currentTimeMillis()) { long remainingTime = (_reuse - System.currentTimeMillis()) / 1000; int hours = (int) (remainingTime / 3600); int minutes = (int) ((remainingTime%3600) / 60); SystemMessage sm = new SystemMessage(SystemMessageId.AVAILABLE_AFTER_S1_S2_HOURS_S3_MINUTES); sm.addSkillName(23179); sm.addNumber(hours); sm.addNumber(minutes); player.sendPacket(sm); htmltext = "4306-notime.htm"; } else { npc.setTarget(player); npc.doCast(SkillTable.getInstance().getInfo(23179,1)); // Gift of Vitality st.setState(State.STARTED); st.set("reuse", String.valueOf(System.currentTimeMillis() + _hours*60*60*1000)); htmltext = "4306-okvitality.htm"; } } else if (event.equalsIgnoreCase("memories_player")) { if (player.getLevel() < 76) { htmltext = "4306-nolevel.htm"; } else { if (player.isMageClass()) { npc.setTarget(player); npc.doCast(SkillTable.getInstance().getInfo(5627,1)); // Wind Walk npc.doCast(SkillTable.getInstance().getInfo(5628,1)); // Shield npc.doCast(SkillTable.getInstance().getInfo(5637,1)); // Magic Barrier npc.doCast(SkillTable.getInstance().getInfo(5633,1)); // Bless the Soul npc.doCast(SkillTable.getInstance().getInfo(5634,1)); // Acumen npc.doCast(SkillTable.getInstance().getInfo(5635,1)); // Concentration npc.doCast(SkillTable.getInstance().getInfo(5636,1)); // Empower } else { npc.setTarget(player); npc.doCast(SkillTable.getInstance().getInfo(5627,1)); // Wind Walk npc.doCast(SkillTable.getInstance().getInfo(5628,1)); // Shield npc.doCast(SkillTable.getInstance().getInfo(5637,1)); // Magic Barrier npc.doCast(SkillTable.getInstance().getInfo(5629,1)); // Bless the Body npc.doCast(SkillTable.getInstance().getInfo(5630,1)); // Vampiric Rage npc.doCast(SkillTable.getInstance().getInfo(5631,1)); // Regeneration npc.doCast(SkillTable.getInstance().getInfo(5632,1)); // Haste } htmltext = "4306-okbuff.htm"; } } else if (event.equalsIgnoreCase("memories_summon")) { if (player.getLevel() < 76) { htmltext = "4306-nolevel.htm"; } else if (player.getPet() == null || !(player.getPet() instanceof L2SummonInstance)) { htmltext = "4306-nosummon.htm"; } else { npc.setTarget(player.getPet()); npc.doCast(SkillTable.getInstance().getInfo(5627,1)); // Wind Walk npc.doCast(SkillTable.getInstance().getInfo(5628,1)); // Shield npc.doCast(SkillTable.getInstance().getInfo(5637,1)); // Magic Barrier npc.doCast(SkillTable.getInstance().getInfo(5629,1)); // Bless the Body npc.doCast(SkillTable.getInstance().getInfo(5633,1)); // Bless the Soul npc.doCast(SkillTable.getInstance().getInfo(5630,1)); // Vampiric Rage npc.doCast(SkillTable.getInstance().getInfo(5634,1)); // Acumen npc.doCast(SkillTable.getInstance().getInfo(5631,1)); // Regeneration npc.doCast(SkillTable.getInstance().getInfo(5635,1)); // Concentration npc.doCast(SkillTable.getInstance().getInfo(5632,1)); // Haste npc.doCast(SkillTable.getInstance().getInfo(5636,1)); // Empower htmltext = "4306-okbuff.htm"; } } return htmltext; } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { QuestState st = player.getQuestState(getName()); if (st == null) { Quest q = QuestManager.getInstance().getQuest(getName()); st = q.newQuestState(player); } return "4306.htm"; } public static void main(String[] args) { new GiftOfVitality(-1, "GiftOfVitality", "events"); } }
  21. nop sta configs den uparxei. Mono ston fakelo events ta vlepw. exei 5-6 diaforetika events. To thema einai pws ta ksekinaw... to giftofvitality as poume? mesa ston fakelo tou exei ta html kai to java. prepei na kanw egw kapoio import h apla pataw kapoia entolh gia na kanei start?
  22. paides kalhspera exw auton ton kwdika... o kwdikas autos einai egrafo xml. ton Ziparw px medals.zip to petaw mesa sto fakelo pou prepei kai meta to RR prepei na ksekinaei. vlepei kaneis kana lathos? giati den ksekinaei? <Event ID="Medals Event" Active="11 Jen 2011-7 Jen 2012"> <Droplist> <AllDrop Items="6392" Count="1,1" Chance="10%"> </AllDrop> </Droplist> <Message Type="OnJoin" Msg="Its Event Medal Time Collect The Medals and Take Presents From Queen Freya at Giran Town"> </Message> </EventEnd> </Event>
  23. paides geia kai pali. mporei na pw mlkia alla exw ena event pou legetai gift of vitality. kserei kaneis pws to vazw se leitourgeia?h leitourgei se kapoion na mas pei ti kanei?
  24. nai :D apo pou allazei auto?
  25. kalhspera se olous paidia pou allazw to Rate ton Ancient Adena?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock