Jump to content

SQL Developer

VIP Member
  • Posts

    727
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by SQL Developer

  1. Hello how i put specific cords on this? i want put x,y,z i try this +import com.l2jfrozen.gameserver.datatables.xml.zonedata; +((L2PcInstance) character).teleToLocation(zonedata.l2clanwarzone.zoneid); but id didnt work so i want change it to TeleToLocation(specific cords x,y,z) any help?
  2. Hello i have a private void showhtmlwindow who inside player choose from a var combobox Var=(name:Ammount) List=(10,20,30,40) I want while player choose option from Var List for example (10) player.sendMessage("You choose 10"); 1)I have to put the player.sendmessage inside showhtmlwindow or on bypassfeedback? 2)How exacly i type this? If (event == "10") { Player.send.Message("You choose 10"); } Is somethink like that? Thanks ..
  3. H apopsi mou einai pos ta 30-50 euro einai polu megali diafora,ean epithimei gia kathe komati na dosei +10,20 euro vgenoun pano apo 50 euro .. egw to paw oso poio oikonomika ginete ostoso ta pc specs sou dinoun afth thn dinatotita:
  4. Den gnwrizo gia ta sugkekrimena akoustika alla an doseis 15 euro parapano (eimai kata tou razer gia ton logo oti exoun akrives times gia kati pou den aksizoun) alla epidi mou ekanan doro afta ta akoustika exoun teleia hxeia kai mikrofono http://www.skroutz.gr/s/5271724/Razer-Kraken-USB.html
  5. 492 Euro CLICK ME p.s gia na apofugo arnitika sxolia den einai apla ena random build ston upologisti mou exw idio ssd,ram,gpu,cpu kai doulevei teleia ilikrina den kolaei oute defterolepto anoigei photoshop xalara,paizei lol se megisti analusi xoris na kolaei oute defterolepto .. apla polu kalo
  6. To mono pou tha voithisei tha einai ston xrono pou fortonei to gameserver?
  7. Kalhspera paides anarotieme ola ta packs periexoun kapoia standard features .. Ean egw loipon apo ola afta pou uparxoun sto database ston server mou thelw na valw ta 20 apo ta 100 kai diegrafa teleios ta 80 apo to database perilamvanomenon (quest,npc,merika weapon,merikes armors) --- katharismos pack apo html,xml ktlp .. Ean ta kanw ola afta tha leitourgei poio "elafria" kai kalutera o server?
  8. Well AcessDenied i never told i know how to code and also i never told i create this code i just fix the target compare the previus code and this one and see the difference.. Also you spam in my topic about my picture like i give you the right to talk about that .. no i am not a php,java or whatever you think developer i am just start do thinks with eclipse and until now i dont rly know many things but my skills while time past is better .. ok?
  9. Well i dont have any idea about which program i should use and which file i must open from client in order to do that .. :|
  10. Hello i need big rocks (if possible 3 sizes) for Interlude client wih edges not like eggs .. use will be for npc template Sizes : i need one like character size but x3 , one x6 and one big like x12 .. I dont know if this is easy or hard because i have no idea about client size development so ... thanks :D
  11. -AccessDenied i can make a version of it with 5 lines clean So when you have time to do that you can post it here to avoid 3252 .. or send me msg and i will update this one :) thanks ..
  12. there isnt any 1vs1 event arround here ... still searching,if anyone got idea topic still unsolved
  13. Hello i am looking a way to tag Event members in 1vs1 party's Main idea Event members:12 Event 1vs1 partys:6 "Tag" 2 random(shuffle) players as party 1 "Tag" 2 random(shuffle) players as party 2 etc.. Teleport Party 1 to loc . Somone can give a hand about how to tag event members to 1vs1 partys ?
  14. Hello i am re-sharing PSC donation instant npc (not because it not shared anymore) but because i "fix" the target problem. The original post i think is this(credits in the end of post) click me So.. 1)Create a new instant in head-src/com/l2jfrozen/gameserver/more/actor/instance with name L2PscDonateInstance.java and then paste the code inside (tip:you can edit your text just find in code the examples "text" "text1" "text2") (tip2:you can edit the location of the .txt file for example String fname = "data/donates/"+player.getName()+".txt";) * * 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.l2jfrozen.gameserver.model.actor.instance; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.Collection; import java.util.StringTokenizer; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.ai.CtrlIntention; import com.l2jfrozen.gameserver.network.serverpackets.MyTargetSelected; import com.l2jfrozen.gameserver.network.serverpackets.ValidateLocation; import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfrozen.gameserver.templates.L2NpcTemplate; import javolution.text.TextBuilder; /** * @author Autos! 1-0 * */ public class L2PscDonateInstance extends L2FolkInstance { public L2PscDonateInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public void onBypassFeedback(final L2PcInstance player, String command) { if(player == null) { return; } if(command.startsWith("donate")) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); String amount = null; int pin1 = 0; int pin2 = 0; int pin3 = 0; int pin4 = 0; String message = ""; try { amount = st.nextToken(); pin1 = Integer.parseInt(st.nextToken()); pin2 = Integer.parseInt(st.nextToken()); pin3 = Integer.parseInt(st.nextToken()); pin4 = Integer.parseInt(st.nextToken()); while(st.hasMoreTokens()) message = message + st.nextToken() + " "; String fname = "data/donates/"+player.getName()+".txt"; File file = new File(fname); boolean exist = file.createNewFile(); if(!exist) { player.sendMessage("This is the text which when a player have allready send a donation try to do again without admin check the first one"); return; } FileWriter fstream = new FileWriter(fname); BufferedWriter out = new BufferedWriter(fstream); out.write("Character Info: [Character: "+ player.getName() +"["+ player.getObjectId()+"] - Account: "+ player.getAccountName()+" - IP: "+player.getClient().getConnection().getInetAddress().getHostAddress()+"]\nMessage : donate "+ amount +" "+ message + " "+ pin1+ " "+ pin2+ " "+ pin3+ " "+ pin4); out.close(); player.sendMessage("Thank you for the donation<-This is while a player send a donation"); Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers(); for (L2PcInstance gms : pls) { if(gms.isGM()) gms.sendMessage(player.getName() +" sent a donation.<-This is when a player send a donation admin get a pm . "); } } catch(Exception e) { e.printStackTrace(); } } } @Override public void onAction(final L2PcInstance player) { if (!canTarget(player)) player.setLastFolkNPC(this); // Check if the L2PcInstance already target the L2NpcInstance if (this != player.getTarget()) { // Set the target of the L2PcInstance player player.setTarget(this); // Send a Server->Client packet MyTargetSelected to the L2PcInstance player MyTargetSelected my = new MyTargetSelected(getObjectId(), 0); player.sendPacket(my); my = null; // Send a Server->Client packet ValidateLocation to correct the L2NpcInstance position and heading on the client player.sendPacket(new ValidateLocation(this)); } else { // Calculate the distance between the L2PcInstance and the L2NpcInstance if (!canInteract(player)) { // Notify the L2PcInstance AI with AI_INTENTION_INTERACT player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this); showHtmlWindow(player); } showHtmlWindow(player); } // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet player.sendPacket(ActionFailed.STATIC_PACKET); } private void showHtmlWindow(L2PcInstance activeChar) { TextBuilder tb = new TextBuilder(); NpcHtmlMessage html = new NpcHtmlMessage(1); tb.append("<html><head><title>Instant Donation</title></head><body><center><table width=\"250\" bgcolor=\"000000\"><tr><td align=center><font color=\"6fd3d1\">Donate now online</font></td></tr></table>_______________________________________<br><br><table width=\"250\"><tr><td><font color=\"ddc16d\">Select Donation Amount:</font></td><td><combobox width=80 height=17 var=amount list=10-Euro;25-Euro;50-Euro;100-Euro;></td></tr></table><br><br><font color=\"ddc16d\">Paysafe Card Pin:</font><table width=\"250\"><tr><td><edit var=\"pin1\" width=50 height=12 type=number></td><td><edit var=\"pin2\" width=50 height=12 type=number></td><td><edit var=\"pin3\" width=50 height=12 type=number></td><td><edit var=\"pin4\" width=50 height=12 type=number></td></table><br><br><multiedit var=\"message\" width=240 height=40><br><br><button value=\"Donate!\" action=\"bypass -h npc_"+getObjectId()+"_donate $amount $pin1 $pin2 $pin3 $pin4 $message\" width=95 height=21 back=\"bigbutton_over\" fore=\"bigbutton\"><br></center></body></html>"); html.setHtml(tb.toString()); activeChar.sendPacket(html); } } Then go to your database,open custom_npc table create new line,put the npc_id who you prefer (but make sure to be type:L2PscDonate) Enjoy :D ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Credits:Ponyrides as the friend said below ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. Thank a lot both of you for your time and your mindwork i appreciate that,best regards and again thanks !
  16. Hello i know how to code but i dont know the conditions about l2j (frozen) I Want make somethink like If activechar 2nd class gladiator then give reward (itemid:=134) Equip~~ Else if activechar 2nd class warlord then etc etc etc... Any idea about that? i search a litlle bit the forum but the only think who i could find it was custom start up equip items .. maybe i should use this code and change the conditions from the startitems to 2nd class quest items reward ? ... Thank you ..
  17. Hello i have a custom zone L2etczone.java I want when player is on this specific location "to village" go him to a standard location in etczone who i will choose also i need to put additional option on death [To safe location] and move him also in a standard location in the case (village) Pack is L2jfrozen I have to put the code inside com.l2jfrozen.gameserver.network.clientpackets.Requestrestartpoint.java or i can edit it from this part of the code .. @Override protected void onExit(L2Character character) { if (character instanceof L2PcInstance) { ((L2PcInstance) character).setIsInsideEtczone(false); } } @Override public void onDieInside(L2Character character) { } @Override public void onReviveInside(L2Character character) { onEnter(character); } }
  18. Hello mates i (this is l2jfrozen pack) I got this code and i want to put an else if clan is allready level 8 on void but i dont know on this specific pack how to do it .. any idea? .. thanks public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(!(playable instanceof L2PcInstance)) return; if (item == null) { return; } L2PcInstance player = (L2PcInstance)playable; if (!player.isClanLeader()) { player.sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addItemName(item)); return; } else if (player.isInOlympiadMode()) { player.sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addItemName(item)); return; } else { if(player.destroyItem("Consume", item.getObjectId(), 1, null, false)) { if (Config.ALLOW_ITEM_SET_LEVEL) { player.getClan().changeLevel(Config.CLAN_ITEM_LEVEL); player.sendMessage((new StringBuilder()).append("Congratulations you now have your clan level ").append(Config.CLAN_ITEM_LEVEL).append(".").toString()); } if (Config.CLAN_TITLE) { player.setTitle(Config.ADD_CLAN_TITLE); } player.ClanItem(); } } }
  19. Thanks a lot both of you guys !! i was need that for real ... lock topic,and again thanks
  20. Nop didnt work i try it but it was like that: but i want it like that: (and put the text under all images and stay like that)
×
×
  • 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