Jump to content

lowrider88

Members
  • Posts

    76
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About lowrider88

Profile Information

  • Gender
    Not Telling

lowrider88's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. can u send me file to plz, i cant figure it out thanks
  2. Good Deal ill check it out thanks :P BTW: i am using latest l2j high five Thanks Again
  3. 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
  4. 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:
  5. 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
  6. omg yes, thanks so much this works now you are the best :D :D
  7. 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
  8. I tried it and i get this error on console
  9. 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
  10. 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
  11. [Hidden post: You need reply to this topic to see it.]
  12. 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
  13. 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
  14. 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
×
×
  • Create New...