janiko
Members-
Posts
205 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by janiko
-
StressWeb 8 News Engine in PhP
janiko replied to janiko's topic in Server Development Discussion [L2J]
Updated -
How to protect .jar file
janiko replied to janiko's question in Request Server Development Help [L2J]
if you encrypt you can also decrypt but obfusicator allows you to not open in decompilation, you need to hack it with hexid to ediit :) and encrypt decrypt is really easy -
how to protect .jar file from decompielation? i know that i need obsfucator but it hass erros, if anyone can help i will be glad.
-
Add News Edit News Delete News Functions included in. To config on your database go to engine/functions.php and there you will see connect function and edit it To remove succsesfully connected open function.php and remove from there http://wuuwza.com/en/file/628450/news-system.rar.html http://www.4shared.com/rar/hQ62Fbod/News_System.html Hope it will be useful for someone http://b.pix.ge/g/4wrqx.png[/img] http://b.pix.ge/c/qm3i0.png[/img] http://a.pix.ge/e/6paqv.png[/img]
-
[Re-Share]Account Manager With Admin Panel
janiko replied to Pauler's topic in Server Development Discussion [L2J]
thanks for share and waiting for new acm :* -
[HELP]Antharas isnt working
janiko replied to Kamira's question in Request Server Development Help [L2J]
try to reinstall db -
Hope someone can help I wrote script to restore buffs here is the function. the problem is that it restores only first buff from sql record Example of Sql Record -- ---------------------------- -- Table structure for `community_skillsave` -- ---------------------------- DROP TABLE IF EXISTS `community_skillsave`; CREATE TABLE `community_skillsave` ( `charId` int(10) DEFAULT NULL, `skills` text, `pet` text ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of community_skillsave -- ---------------------------- INSERT INTO `community_skillsave` VALUES ('268480452', '1240;1048;', null); Restore Java Script private void RESTOR(L2PcInstance activeChar) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement stat = con.prepareStatement("SELECT * FROM community_skillsave WHERE charId=?;"); stat.setInt(1, activeChar.getObjectId()); ResultSet rset = stat.executeQuery(); rset.next(); String allskills = rset.getString(2); StringTokenizer stBuff = new StringTokenizer(allskills, ";"); while (stBuff.hasMoreTokens()) { int skilltoresatore = Integer.parseInt(stBuff.nextToken()); int skilllevel = SkillTable.getInstance().getMaxLevel(skilltoresatore); L2Skill skill = SkillTable.getInstance().getInfo(skilltoresatore, skilllevel); PreparedStatement st = con.prepareStatement("SELECT COUNT(*) FROM community_skillsave WHERE skills=?;"); st.setInt(1, skilltoresatore); ResultSet rs = st.executeQuery(); rs.next(); if (rs.getInt(1) != 0) { skill.getEffects(activeChar, activeChar); } else { activeChar.sendMessage("Buff: " + skill.getName() + " (" + skill.getId() + "), can't be restored!"); } rs.close(); st.close(); } rset.close(); stat.close(); } catch (SQLException e) { } finally { L2DatabaseFactory.close(con); } } thanks to everyone
-
[REQUEST} Navicat for my SQL spawnlist script/command
janiko replied to Kwlotoumpas's question in Request Server Development Help [L2J]
for SQL commands to learn use GUIDE: http://www.w3schools.com/sql/ -
Please check message in pm
-
www.dragoneyecms.com and access download section. It's 100% free i cant register on that web
-
[REQUEST} Navicat for my SQL spawnlist script/command
janiko replied to Kwlotoumpas's question in Request Server Development Help [L2J]
UPDATE spawnlist set respawn_delay='your time' WHERE npc_templateid='NpcId'; -
and does tvt run?
-
Hi, i was writing Seven Signs quest but onFirstTalk function i stuck. when i talk to npc example : npcId == WestTeleportControlDevice it shows me exact html what is written onFirstTalk function but, when i press to teleport button it has no reaction. Bypass of html <a action="bypass -h Quest ToTheMonastery TeleWest">Move to West Watcher's Room</a> i have written TeleWest function to teleport on exact cordinates, but no reaction, hope mxc will help @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { int npcId = npc.getNpcId(); if(npcId == WestTeleportControlDevice) return "32816-01.htm"; else if(npcId == NorthTeleportControlDevice) return "32817-01.htm"; else if(npcId == EastTeleportControlDevice) return "32818-01.htm"; else if(npcId == SouthTeleportControlDevice) return "32819-01.htm"; for(int[] d : desks) if(Util.ArrayContains(d, npcId)) { if(npcId == d[0]) return npcId + "-01.htm"; else return "empty_desk.htm"; } return null; }
-
How to transferr Little Py Script to java
janiko replied to janiko's question in Request Server Development Help [L2J]
I'm Transferring all py files to .java i use l2jserver H5 pack Actually now i am working on Quests -
How to transferr Little Py Script to java
janiko posted a question in Request Server Development Help [L2J]
Hi everybody i'm trying to convert all l2j .py quests to .java and while i rewrited it into java i had a little misunderstanding. This script is in .py elif event[0:7] == "correct" : st.set("pass",str(st.getInt("pass")+1)) // I dont Know how to transferr it in java. htmltext = event[8:] if htmltext == "32367-07.htm": if st.getInt("pass") == 4 : st.set("step","3") self.cancelQuestTimer("1",npc,player) self.cancelQuestTimer("2",npc,player) self.cancelQuestTimer("3",npc,player) self.cancelQuestTimer("4",npc,player) st.unset("pass") npc.deleteMe() else : htmltext == "32367-06.htm" ______________ Error Screen ______________ Thanks for help -
Anyone can help? I cant Compile Russian Texts in Source. While compiling russian texts are ????? ??? < Like this. Can someone help?
-
Hi EveryOne. I tried to rewrite Quest 551_OlympiadStarter from l2rebellion to L2jserver. I need help from users because i have some misunderstanding. The Problem is that i cant remake st.setState(2); st.setState(3); st.setState(1); Sorry Maby its wrong dissision. L2Rebellion Quest Script package l2r.scripts.quests; import l2r.extensions.scripts.ScriptFile; import l2r.gameserver.model.L2Player; import l2r.gameserver.model.L2SubClass; import l2r.gameserver.model.entity.olympiad.Olympiad; import l2r.gameserver.model.instances.L2NpcInstance; import l2r.gameserver.model.quest.Quest; import l2r.gameserver.model.quest.QuestState; public class _551_OlympiadStarter extends Quest implements ScriptFile { private static final int _npc = 31688; private static final int _olymp3 = 17238; private static final int _olymp5 = 17239; private static final int _olymp10 = 17240; private static final int _olympChest = 17169; public _551_OlympiadStarter() { super(false); addStartNpc(31688); addTalkId(new int[] { 31688 }); addQuestItem(new int[] { 17169 }); addQuestItem(new int[] { 17240 }); addQuestItem(new int[] { 17239 }); addQuestItem(new int[] { 17238 }); } public String onEvent(String paramString, QuestState paramQuestState, L2NpcInstance paramL2NpcInstance) { L2Player localL2Player = paramQuestState.getPlayer(); int i = paramQuestState.getCond(); String str = paramString; if (paramQuestState == null) return str; if (paramL2NpcInstance.getNpcId() == 31688) { if (i == 1) if (paramString.equals("31688-03.htm")) { paramQuestState.setState(2); paramQuestState.setCond(Olympiad.getCompetitionDone(localL2Player.getObjectId())); paramQuestState.setCond(1); paramQuestState.playSound(SOUND_ACCEPT); } else if (paramString.equals("exchange")) { if ((paramQuestState.getQuestItemsCount(17238) >= 1L) || (paramQuestState.getQuestItemsCount(17239) >= 1L) || (paramQuestState.getQuestItemsCount(17240) >= 1L)) { if ((i == 2) && (paramQuestState.getQuestItemsCount(17238) >= 1L)) { paramQuestState.giveItems(17169, 1L); paramQuestState.takeItems(17238, 1L); paramQuestState.playSound(SOUND_ITEMGET); } if ((i == 3) && (paramQuestState.getQuestItemsCount(17239) >= 1L)) { paramQuestState.giveItems(17169, 2L); paramQuestState.takeItems(17239, 1L); paramQuestState.playSound(SOUND_ITEMGET); } if ((i == 4) && (paramQuestState.getQuestItemsCount(17240) >= 1L)) { paramQuestState.giveItems(17169, 4L); paramQuestState.takeItems(17240, 1L); paramQuestState.playSound(SOUND_ITEMGET); paramQuestState.setState(3); paramQuestState.playSound(SOUND_FINISH); paramQuestState.exitCurrentQuest(false); } return "31688-06.htm"; } return "31688-07.htm"; } return "31688-05.htm"; } return str; } public String onTalk(L2NpcInstance paramL2NpcInstance, QuestState paramQuestState) { L2Player localL2Player = paramQuestState.getPlayer(); String str = "noquest"; if (paramQuestState == null) return str; if (Olympiad._inCompPeriod) { if ((localL2Player.getLevel() >= 75) && (localL2Player.getActiveClass().isBase()) && (localL2Player.isNoble())) { if (paramQuestState.getState() == 3) return "31688-01.htm"; return "31688-00.htm"; } return "31688-02.htm"; } return "31688-08.htm"; } } L2jServer Quest Script import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.base.SubClass; import com.l2jserver.gameserver.model.olympiad.Olympiad; import com.l2jserver.gameserver.model.actor.instance.L2NpcInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; public class Q551_OlympiadStarter extends Quest { private static final String qn = "Q551_OlympiadStarter"; //Npc private static final int OlyManager = 31688; //Items private static final int _olymp3 = 17238; private static final int _olymp5 = 17239; private static final int _olymp10 = 17240; private static final int _olympChest = 17169; public String onEvent(String event, QuestState st, L2PcInstance player, L2NpcInstance npc) { String htmltext = event; if (st == null) htmltext = getNoQuestMsg(player); if (npc.getNpcId() == 31688) { if (event.equals("31688-03.htm")) { st.setState(2); st.set("cond","Olympiad.getCompetitionDone(Player.getObjectId())"); st.set("cond", "1"); st.playSound("ItemSound.quest_accept"); } else if (event.equals("exchange")) { if ((st.getQuestItemsCount(17238) >= 1L) || (st.getQuestItemsCount(17239) >= 1L) || (st.getQuestItemsCount(17240) >= 1L)) { if ((i == 2) && (st.getQuestItemsCount(17238) >= 1L)) { st.giveItems(17169, 1L); st.takeItems(17238, 1L); st.playSound("ItemSound.quest_itemget"); } if ((i == 3) && (st.getQuestItemsCount(17239) >= 1L)) { st.giveItems(17169, 2L); st.takeItems(17239, 1L); st.playSound("ItemSound.quest_itemget"); } if ((i == 4) && (st.getQuestItemsCount(17240) >= 1L)) { st.giveItems(17169, 4L); st.takeItems(17240, 1L); st.playSound("ItemSound.quest_itemget"); st.setState(3); st.playSound("ItemSound.quest_finish"); st.exitQuest(false); } return "31688-06.htm"; } return "31688-07.htm"; } return "31688-05.htm"; } return htmltext; } public String onTalk(L2NpcInstance npc, L2PcInstance player) { String htmltext = getNoQuestMsg(player); QuestState st = player.getQuestState(qn); if (st == null) return htmltext; if (Olympiad._inCompPeriod) { if ((player.getLevel() >= 75) && (player.isNoble())) { if (st.getInt("cond") == 3) htmltext ="31688-01.htm"; else htmltext ="31688-00.htm"; } else htmltext ="31688-02.htm"; } else htmltext ="31688-08.htm"; return htmltext; } public Q551_OlympiadStarter(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(OlyManager); addTalkId(OlyManager); questItemIds = new int[] {_olymp3}; questItemIds = new int[] {_olymp5}; questItemIds = new int[] {_olymp10}; questItemIds = new int[] {_olympChest}; } public static void main(String[] args) { new Q551_OlympiadStarter(551, qn, "Olympiad Starter"); } } Html Files 31688-01.htm ____________ <html> <body> <font color="FFCC00">Менеджер великой олимпиады:</font><br> Данное задание выполняется раз в сутки, по таймеру. Каждое утро в 6:30 таймер сбрасывается<br> <br> </body> </html> ____________ 31688-02.htm ___________ <html> <body> <font color="FFCC00">Менеджер великой олимпиады:</font><br> Я немогу позволить тебе выполнить это задание!<br> (Этот квест могут выполнять только персонажи выше 75 уровня основным классом)<br> <br> </body> </html> ___________ 31688-03.htm ___________ <html> <body> <font color="FFCC00">Менеджер великой олимпиады:</font><br> Всё что тебе надо сделать - провести на олимпиаде 10 матчей. Мы не смотрим на исход, мы смотрим на твою смелость! Почему бы не подраться за хорошую награду?!<br> Награда:<br> Olympiad Match 3 Participation Certificate - за 3 проведенных матча.</br> Olympiad Match 5 Participation Certificate - за 5 проведенных матчей.</br> Olympiad Match 10 Participation Certificate- за 10 проведенных матчей.<br> <a action="bypass -h Quest _551_OlympiadStarter 31688-05.htm">Я согласен.</a><br> <br> </body> </html> ____________ 31688-05.htm ____________ <html> <body> <font color="FFCC00">Менеджер великой олимпиады:</font><br> Ты готов доказать свою смелость?<br> <a action="bypass -h Quest _551_OlympiadStarter exchange">Да</a><br> <br> </body> </html> ____________ 31688-06.htm ____________ <html> <body> <font color="FFCC00">Менеджер великой олимпиады:</font><br> Ты отлично справился, вот твоя награда!<br> <br> </body> </html> ___________ 31688-07.htm ___________ <html> <body> <font color="FFCC00">Менеджер великой олимпиады:</font><br> Тебе не обмануть меня!<br> (У вас недостаточно квестовых предметов) <br> </body> </html> ___________ 31688-08.htm ___________ <html> <body> <font color="FFCC00">Менеджер великой олимпиады:</font><br> Олимпиада ещё не началась!<br> <br> </body> </html>
-
when I enchant Skill: Curse of Fear on +cost skill chance is increased. What should I do? <skill id="1092" levels="19" name="Fear" enchantGroup1="1" enchantGroup2="1"> <table name="#enchantMagicLvl"> 76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 </table> <table name="#mpInitialConsume"> 3 4 5 6 6 7 8 9 10 11 11 11 12 12 13 13 13 14 14 </table> <table name="#mpConsume"> 12 16 18 21 24 28 31 35 38 41 43 44 46 48 49 51 52 53 55 </table> <table name="#magicLvl"> 14 20 25 30 35 40 44 48 52 56 58 60 62 64 66 68 70 72 74 </table> <table name="#ench1Power"> 41 42 44 45 46 48 49 50 52 53 54 56 57 58 60 61 62 64 65 66 68 69 70 72 73 74 76 77 78 80 </table> <table name="#ench2mpConsume"> 54 53 52 50 50 49 48 46 46 46 45 44 42 42 41 40 38 38 37 37 36 34 34 33 32 30 30 29 28 28 </table> <table name="#ench2mpInitialConsume"> 13 13 13 13 12 12 12 12 12 11 11 11 11 10 10 10 10 9 9 9 9 9 8 8 8 8 7 7 7 7 </table> <set name="mpInitialConsume" val="#mpInitialConsume" /> <set name="mpConsume" val="#mpConsume" /> <set name="lvlDepend" val="1" /> <set name="power" val="40" /> <!-- Base Land Rate --> <set name="saveVs" val="MEN" /> <set name="magicLvl" val="#magicLvl" /> <set name="target" val="TARGET_ONE" /> <set name="reuseDelay" val="5000" /> <set name="hitTime" val="4000" /> <set name="skillType" val="FEAR" /> <set name="isMagic" val="true" /> <set name="isDebuff" val="true" /> <set name="operateType" val="OP_ACTIVE" /> <set name="castRange" val="600" /> <set name="effectRange" val="1100" /> <set name="trait" val="DERANGEMENT" /> <enchant1 name="magicLvl" val="#enchantMagicLvl" /> <enchant1 name="power" val="#ench1Power" /> <enchant2 name="magicLvl" val="#enchantMagicLvl" /> <enchant2 name="mpConsume" val="#ench2mpConsume" /> <enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume" /> <for> <effect count="5" name="Fear" abnormalTime="2" val="0" abnormalLvl="1" abnormalType="turn_flee" /> </for> </skill>
-
Looking For Skills : Trick and Bluff fix on H5 (DP SIDE) Looking for skill balance : skill FEAR Cost CHance
-
No i tryed but no progress when skill is enchanted on COST it has no reaction on #ench1Power, its H5 skill system but i cant find where to change it ;(
-
Hi every Body I have H5 Server and i have got dissbalance for skill Fear. So when character enchants Skill On Cost it has more chance than When you enchant it on Chance. It needs to change stat from Java script but i don't know in which file is the code for it. Please Help to fix Skill Chance on Enchanting COST. It Is Skill stat but here is no chance for Cost Enchant <skill id="1092" levels="19" name="Fear" enchantGroup1="1" enchantGroup2="1"> <table name="#enchantMagicLvl"> 76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 </table> <table name="#mpInitialConsume"> 3 4 5 6 6 7 8 9 10 11 11 11 12 12 13 13 13 14 14 </table> <table name="#mpConsume"> 12 16 18 21 24 28 31 35 38 41 43 44 46 48 49 51 52 53 55 </table> <table name="#magicLvl"> 14 20 25 30 35 40 44 48 52 56 58 60 62 64 66 68 70 72 74 </table> <table name="#ench1Power"> 41 42 44 45 46 48 49 50 52 53 54 56 57 58 60 61 62 64 65 66 68 69 70 72 73 74 76 77 78 80 </table> <table name="#ench2mpConsume"> 54 53 52 50 50 49 48 46 46 46 45 44 42 42 41 40 38 38 37 37 36 34 34 33 32 30 30 29 28 28 </table> <table name="#ench2mpInitialConsume"> 13 13 13 13 12 12 12 12 12 11 11 11 11 10 10 10 10 9 9 9 9 9 8 8 8 8 7 7 7 7 </table> <set name="mpInitialConsume" val="#mpInitialConsume" /> <set name="mpConsume" val="#mpConsume" /> <set name="lvlDepend" val="1" /> <set name="power" val="40" /> <!-- Base Land Rate --> <set name="saveVs" val="MEN" /> <set name="magicLvl" val="#magicLvl" /> <set name="target" val="TARGET_ONE" /> <set name="reuseDelay" val="5000" /> <set name="hitTime" val="4000" /> <set name="skillType" val="FEAR" /> <set name="isMagic" val="true" /> <set name="isDebuff" val="true" /> <set name="operateType" val="OP_ACTIVE" /> <set name="castRange" val="600" /> <set name="effectRange" val="1100" /> <set name="trait" val="DERANGEMENT" /> <enchant1 name="magicLvl" val="#enchantMagicLvl" /> <enchant1 name="power" val="#ench1Power" /> <enchant2 name="magicLvl" val="#enchantMagicLvl" /> <enchant2 name="mpConsume" val="#ench2mpConsume" /> <enchant2 name="mpInitialConsume" val="#ench2mpInitialConsume" /> <for> <effect count="5" name="Fear" abnormalTime="2" val="0" abnormalLvl="1" abnormalType="turn_flee" /> </for> </skill> Thanks For Help.
-
l2equal Because it has lots of custom addons :)
-
Can ayone help to fix java code?
janiko replied to janiko's question in Request Server Development Help [L2J]
It's fixed, and this script is working but i need to fix parametrize this Map.Entry :) because i have too many Warnings ! :))) -
Can ayone help to fix java code?
janiko replied to janiko's question in Request Server Development Help [L2J]
thanks. -
Can anyone help to parametrize Map.Entry??
