Jump to content

lowrider88

Members
  • Posts

    76
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by lowrider88

  1. Good Deal ill check it out thanks :P BTW: i am using latest l2j high five Thanks Again
  2. ok guys i just wanted to know how i could do this, I want to make some custom starter skills but i am not sure on how to go about doing so, I know i have asked for alot of request and stuff and i have been helped alot but my problem is i have so many ideas that i would love to use, and to be honest i hate asking for help but i dont know how to make them lol, I am not against learning something i would actually perfer it but when i try to look at the codes to see how they work i get super overwhelmed and get frustrated lol. So i have this idea to add to my server some custom starter skills heres what i was wanting to do: Every class starts out with a +30 Group Buff but it only works with pve, does not work with PVP when you get 500 pvps, you get the same buff but it will work with pvp as well like i was saying i would love to learn how to code my self, so if some one could point me in the right direction that would be great, It looks complicated not sure is these codes are writen by hand or using a program it just seems like some codes are extremely long and would take forever.... So there is my idea for my buffs any help would be highly appreciated Thanks Alot again guys :D :D
  3. Fxied Problem by accident i deleted the + between getlastvotecount() + Config.votes for reward Now i have new error in server when it loads up: any ideas:
  4. Hi this is a nice share and i could really use it for my server, i put every thing in eclipse and every thing was fine but at the end i only have a 2 errors should be simple to fix i think but i have no idea what to change it to so mabey you guys will know, thanks :D
  5. omg yes, thanks so much this works now you are the best :D :D
  6. Ok so i edit it in eclipse and got the correct method, i dont get any error in game or in console but it still wont teleport me to beleth /* * 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 teleports.SteelCitadelTeleport; import com.l2jserver.Config; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.instancemanager.ZoneManager; import com.l2jserver.gameserver.model.L2CommandChannel; import com.l2jserver.gameserver.model.L2Party; 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.zone.type.L2BossZone; /** * @author GKR */ public class SteelCitadelTeleport extends Quest { private static final int BELETH = 29118; private static final int NAIA_CUBE = 32376; public SteelCitadelTeleport(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(NAIA_CUBE); addTalkId(NAIA_CUBE); } @Override public String onTalk(L2Npc npc, L2PcInstance player) { switch (npc.getNpcId()) { case NAIA_CUBE: if (GrandBossManager.getInstance().getBossStatus(BELETH) == 3) { return "32376-02.htm"; } final L2CommandChannel channel = player.getParty() == null ? null : player.getParty().getCommandChannel(); if ((channel != null && channel.getMemberCount() < Config.BELETH_MIN_PLAYERS) || (channel == null && player.getParty() != null && player.getParty().getPartyMembersCount() < Config.BELETH_MIN_PLAYERS) || (channel == null && player.getParty() == null)) { return "32376-02a.htm"; } if (GrandBossManager.getInstance().getBossStatus(BELETH) > 0) { return "32376-03.htm"; } final L2BossZone zone = (L2BossZone) ZoneManager.getInstance().getZoneById(12018); if (zone != null) { GrandBossManager.getInstance().setBossStatus(BELETH, 1); for (L2Party party : channel.getPartys()) { if (party == null) { continue; } for (L2PcInstance pl : party.getMembers()) { if (pl.isInsideRadius(npc.getX(), npc.getY(), npc.getZ(), 3000, true, false)) { zone.allowPlayerEntry(pl, 30); pl.teleToLocation(16342, 209557, -9352, true); } } } } } return null; } public static void main(String[] args) { new SteelCitadelTeleport(-1, "SteelCitadelTeleport", "teleports"); } } I also tried Tryskell method: so it looks like this /* * 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 teleports.SteelCitadelTeleport; import com.l2jserver.Config; import com.l2jserver.gameserver.instancemanager.GrandBossManager; import com.l2jserver.gameserver.instancemanager.ZoneManager; import com.l2jserver.gameserver.model.L2Party; 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.zone.type.L2BossZone; /** * @author GKR */ public class SteelCitadelTeleport extends Quest { private static final int BELETH = 29118; private static final int NAIA_CUBE = 32376; public SteelCitadelTeleport(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(NAIA_CUBE); addTalkId(NAIA_CUBE); } @Override public String onTalk(L2Npc npc, L2PcInstance player) { switch (npc.getNpcId()) { case NAIA_CUBE: if (GrandBossManager.getInstance().getBossStatus(BELETH) == 3) { return "32376-02.htm"; } if (GrandBossManager.getInstance().getBossStatus(BELETH) > 0) { return "32376-03.htm"; } final L2BossZone zone = (L2BossZone) ZoneManager.getInstance().getZoneById(12018); if (zone != null) { GrandBossManager.getInstance().setBossStatus(BELETH, 1); for (L2Party party : channel.getPartys()) { if (party == null) { continue; } for (L2PcInstance pl : party.getMembers()) { if (pl.isInsideRadius(npc.getX(), npc.getY(), npc.getZ(), 3000, true, false)) { zone.allowPlayerEntry(pl, 30); pl.teleToLocation(16342, 209557, -9352, true); } } } } } return null; } public static void main(String[] args) { new SteelCitadelTeleport(-1, "SteelCitadelTeleport", "teleports"); } } and i get this 1. ERROR in \SteelCitadelTeleport.java (at line 65) for (L2Party party : channel.getPartys()) ^^^^^^^ channel cannot be resolved ---------- 1 problem (1 error)channel cannot be resolved Failed executing script: C:\server\game\data\scripts\teleports\SteelCitadelTelep ort\SteelCitadelTeleport.java. See SteelCitadelTeleport.java.error.log for detai ls. lol so mabey instead of terying to make this work if i just teleport to beleth spawn will he just spawn like he normally would, thanks so much both of you
  7. hi i want to change the beleth script so you dont have to be in a command channel to enter, how can i make this code to where you only have to have x amount of people to enter, i set the configs to min players 1 but when i try to enter is says " A leader who can create a command channel of 36 or more should initiate the conversation " Thanks
  8. Hi i am trying to make this work for my server i am using Hi Five L2J and every thing i added i had no errors, but when i made the L2FamousPlayerInstance.java i pasted the codes and made it to work for my server, but i still have 26 errors: /* * 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.l2jserver.gameserver.model.actor.instance; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.List; import java.util.StringTokenizer; import javolution.util.FastList; import com.l2jserver.Config; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.Announcements; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate; /** * @author fanky * */ public class L2FamousPlayerInstance extends L2NpcInstance { /** * @param objectId * @param template */ public L2FamousPlayerInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } public void onByPassFeedBack(L2PcInstance player,String command) { if (command.startsWith("voteFamousPlayer")) { String val = command.substring(14); StringTokenizer st = new StringTokenizer(val); if(st.countTokens() != 1) { return; } if (player.getFamousPlayer() != null) { player.sendMessage("You have already voted for a player, "player.getFamousPlayer()"."); return; } if (player.isFamous()) { player.sendMessage("You are famous player,u cant vote"); return; } L2PcInstance target = L2World.getInstance().getPlayer(st.nextToken()); if (target == null) { player.sendMessage("There isn't such character"); return; } if (target.getAccessLevel() > 100) { player.sendMessage("Admins and gms don't need to become famous,they already are :P"); return; } if (target.getPvpKills() > Config.PVP_REQUIRED_TO_VOTE) { target.setFamousPlayerVotes(target.getFamousPlayerVotes()1); player.sendMessage("You have successfully voted for "target.getName()"."); target.sendMessage(player.getName()" has voted for you to be a famous player,you currently have "target.getFamousPlayerVotes()" votes"); if (target.getFamousPlayerVotes() == Config.VOTES_REQUIRED_TO_BECOME_FAMOUS) { target.setFamous(true); Announcements.getInstance().announceToAll(target.getName()" has become Famous Player because he reached "Config.VOTES_REQUIRED_TO_BECOME_FAMOUS" vote"); target.setFamousPlayerVotes(0); cleanDatabase(target.getName()); target.sendMessage("You've become Famous player."); } else { target.sendMessage("You need at least "Config.PVP_REQUIRED_TO_VOTE" pvp(s) in order to vote"); } } } } private void cleanDatabase(String pname) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement st = con.prepareStatement("UPDATE characters SET famousplayer=null WHERE famousplayer="pname); st.execute(); st.close(); } catch (SQLException sqle) { for (L2PcInstance gmchat : L2World.getInstance().getAllGMs()) { gmchat.sendMessage("There was a problem while updating database on famousplayer column,Noobs!"); } } finally { try { con.close(); } catch (SQLException sqle2) { } } } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) { pom = "" npcId; } else { pom = npcId "-" val; } return "data/html/famousplayer/" pom ".htm"; } } Here are the errors, what can i do to fix this thanks so much Description Resource Path Location Type Syntax error, insert ")" to complete MethodInvocation L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 62 Java Problem Syntax error, insert ";" to complete BlockStatements L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 62 Java Problem The operator > is undefined for the argument type(s) L2AccessLevel, int L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 77 Java Problem Syntax error on token "1", delete this token L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 85 Java Problem The method getFamousPlayer() in the type L2PcInstance is not applicable for the arguments (String) L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 62 Java Problem Syntax error on token ")", delete this token L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 62 Java Problem Syntax error on token "PVP_REQUIRED_TO_VOTE", ( expected after this token L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 98 Java Problem The method PVP_REQUIRED_TO_VOTE(String) is undefined for the type Config L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 98 Java Problem Syntax error on token "pname", delete this token L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 110 Java Problem Syntax error on token "npcId", delete this token L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 140 Java Problem Syntax error on token "" has become Famous Player because he reached "", [ expected L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 91 Java Problem Syntax error on token "" vote"", ] expected L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 91 Java Problem Syntax error, insert ")" to complete MethodInvocation L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 98 Java Problem Syntax error, insert ";" to complete BlockStatements L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 98 Java Problem The type of the expression must be an array type but it resolved to String L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 87 Java Problem Syntax error on token "" has voted for you to be a famous player,you currently have "", [ expected L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 87 Java Problem Syntax error on token "" votes"", ] expected L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 87 Java Problem The type of the expression must be an array type but it resolved to String L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 91 Java Problem Syntax error, insert ")" to complete MethodInvocation L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 86 Java Problem Syntax error, insert ";" to complete Statement L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 86 Java Problem The method getName() in the type L2Object is not applicable for the arguments (String) L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 86 Java Problem Syntax error on token ")", delete this token L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 86 Java Problem Syntax error on token ""-"", . expected L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 144 Java Problem The primitive type int of npcId does not have a field val L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 144 Java Problem Syntax error on token "pom", invalid AssignmentOperator L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 147 Java Problem The left-hand side of an assignment must be a variable L2FamousPlayerInstance.java /L2J_Server/java/com/l2jserver/gameserver/model/actor/instance line 147 Java Problem
  9. [Hidden post: You need reply to this topic to see it.]
  10. Hello, i want to remove some npcs from the spawnlist sql becuase when i update my server they all come back so i want to make a sql to run to delete the npcs from spawnlist, What is the code to remove a npc from spawnlist, I am using l2j high five thanks
  11. Hi i was just wondering if frintezza actualy works by now i know its been a few years, i dont see any options in grandboss config so i figures i would just ask, i am using latest hi five server, if you go to frintezza lair there is nothing there how does this work, i have seen a few videos that showed frintezza working so i was just wondering if he added to the server yet and if so how do you make him work, thanks
  12. I think this is what you wanted Character.properties # Allow player to sub-class without checking for unique quest items. # Default: False AltSubClassWithoutQuests = True # Allow player to add/change subclass at all village master # Default: False AltSubclassEverywhere = True
  13. Sorry i am still kinda confused on what to do with the config part, Do i add it into eclipse or after i compile my server i just make this a config file like Custom Level Zones.config and stick it in the config folder of my server, i am still learning :D Edit: I think i found where i put it, workspace\L2J_Server\dist\game\config\ Is that right ? IF so what do i name it, can i name it anything ?
  14. I wanted a AIO sublass manager, But there is config options to allow all subclass change at any grand master so i dont need anymore thanks for your help tho, sorry for wrong area thought it belonged under help Thanks again
  15. I have finaly figured out how to apply patches thanks all, I just had one more question i am using eclipse to compile my server, and i have not updated it sence last month, i have added alot of patches and i want to update the server and datapack to the latest version, How can i do this without erasing all my patches in eclipse, if i update it will it overwrite the files that i edited in eclipse...Thanks
  16. Hello, is there a way i can take the monster weapons and make them only PVE weapons so they only do damage to mobs and not players, is this possible thanks
  17. Hello, i have looked every where, even on google and other forums, I need a Hi Five SubClass Manager does anyone have one or know where i can get one thanks alot guys
  18. lol thank you so much, i must have missed that part to make an empty folder Working 100% now thanks so much great share :D
  19. How can i make this work for High Five, when i try to send report it says Something Went Wrong Try again
  20. is there a way to fix the black icons in game i am using Hi five, is that why ?
  21. how can i make this work with L2J High Five Thanks :D
  22. how can i make this work with L2J High Five Thanks :D
×
×
  • Create New...