Jump to content

Sindelia

Members
  • Posts

    422
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Sindelia

  1. *Bumer* Yes, sorry I was a lil' bit in a hurry because I wanted to share :P
  2. I'm afraid yes :P I had the idea when I didn't know much from coding and today I thought "Why don't I give it a try?", I first used the code without "if (npcId == "npcid")" and every NPC had the same dialogue that I defined in the code. Then I asked Intrepid how to fix it and he told me to use the ""if (npcId == "npcid")" and...I've fixed it :)
  3. Hello Maxcheaters ;), Today I've finally achieved what I couldn't do before (I didn't have very good knowledge on how to compile e.t.c)...I've made my Npc's dialogue say my character's name and I thought I'd share :D! Here you go: Description: I really wanted my server NPC to come 'closer' to the players so , I wanted to make them say the player name on their dialogue, here's a pic of what we're gonna do: Let's start: Copy this code: if (npcId == yournpcid) html.setFile("data/html/(path)/(filename).htm"); html.replace("%objectId%", String.valueOf(getObjectId())); player.sendPacket(html); Then, open up Eclipse and go to : L2_Gameserver/java/net/sf/l2j/gameserver/model/actor/L2Npc.java open it, press Ctrl+F and find this : // Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance Make sure that what you've found looks like this: // Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(filename); Next, copy the code and paste it under the one you've found so it'll look like this: // Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(filename); if (npcId == yournpcid) html.setFile("data/html/(path)/(filename).htm"); html.replace("%playername%", player.getName()); player.sendPacket(html); Now, you must change the following: yournpcid (path)/(filename) Here's what I've changed and what you should change: // Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(filename); if (npcId == 10) html.setFile("data/html/default/10.htm"); html.replace("%playername%", player.getName()); player.sendPacket(html); If your NPC's ID is e.x: 77710 then it should be "if (npcId == 77710)" and "html.setFile("data/html/default/77710.htm");" 'default' is the folder that my html file is located, if your npc is a shop then you should replace "/(path)/" with "/merchant/" The last step is to write in your NPC's html "%playername%" (without brackets). Also , if you want to have it in many .htm files then you simply paste the code again and change the NPC ID and the path. ;) I hope it helps! Credits: pokiokio - Idea Ashitaka - Code Intrepid - Final touch to the code Thank you Ashitaka and Intrepid ! I couldn't have made it without you :) P.S.: You might think the code is no big deal, but for me , a person new to l2j it's quite an achievement!
  4. I know that I have to change some things :P But , I need some help :S
  5. Eh...none of them is compatible with Gracia Final... Here's an example of the error I get : @@ 568,7 > 568,15 @@ Only that kind of erros I get.. How do I fix it? Thank you
  6. Nothing happens , lol... Look..NOT everybody has a CTF.java file on his/her core..(you MUST uplaod it so they can have it)the .py says " import sys from net.sf.l2j.gameserver.model.entity.events import CTF" Which means , import the file CTF from net.sf.l2j.gameserver.model.entity.events" I have a CTF there but, nothing! It doesn't start with what you say on your guide. Also , commands! Where are the commands? Look what you have to do: 1)Upload the CTF.java 2)Make commands and upload them Your guide is incomplete.
  7. I think the guide is incomplete.. "from net.sf.l2j.gameserver.model.entity.events import CTF". You don't supply a CTF.java file on your post..
  8. Egw eixa provlhmata me to na metakinoume mesa , dld proxorousa kai htan san na kanw diadromo , na proxwraw kai na me paei pisw :P
  9. Telika to dokimasa kai pragmatika yparxei! Den to hksera oti yphrxe tetoio room!
  10. Egw pistevw oti einai custom map.. O l2gold exei kanei mod ta client mexri ahdias :S
  11. Ξέρεις το wallshooting? E..τα geodata + pathnodes tτο αποτρέπουν αυτό :) Τα ποιό καλά είναι του L2JFree , καλύπτουν όλες τις περιοχές εώς Gracia Pt 2 , δεν υπάρχουν Gracia Final δυστυχώς :( Link για τα L2JFree Geodata : http://svn.l2jfree.com/svn/geodata/trunk Και guide για εγκατάσταση : http://www.maxcheaters.com/forum/index.php?topic=71645.0 Υ.Γ.: Επίσης αποτρέπουν το να κολάς σε τοίχους κ.τ.λ
  12. Το κατάλαβα , προσπάθησε να κάνεις αυτο που λέει το share δηλαδή να εγκαταστήσεις και να τρέξεις τον Inter. gameserver άσχετα αν είναι διαφορετικά... ::)
  13. Δοκίμασες να κάνεις αυτό που λέει το share που σου έδωσε ο Imortal?
  14. Efxaristw POLY pou apanthses..exw dokimasei ta panta , oute auto leitourgei :(
  15. Heh , np :P Although, Gracia Epilogue (a.k.a Gracia Plus) will be soon on PTS so I suggest w8ing for the PTS 'stead of downloading the Korean one :S
  16. If u w8 a bit or refresh the page a pic under the "Korean Client:" will appear and that will direct you to the download but , if you have problems , here's the link :) : http://www.4shared.com/file/140915250/149612c8/_2__Lineage2_Gracia_Plus_kor.html
  17. I seem to have problems...I made a char and the hp/mp/cp values were empty on the db also , I couldn't log in... I got a char socket error , I manually changed the socket to 1 but nothing :S
  18. *bump* Πολλες μέρες πέρασαν...
  19. Imo attacking servers is not the best idea. Owners could have problems and even go to jail as Seamless mentioned above. So , I think attacking servers is not the best idea. If you want to destroy a server , make a char with infinite stats and kill 'em all , then ppl will leave..*rolls eyes*
  20. 1)Legetai spawn protect , einai sta config tou gameserver. Sto general nomizw. 2)Tha mporouses na ton kaneis na mhn einai aggro.
  21. Επίσης μου είπαν οτι άμα είναι handled ήδη να βάλω μόνο αυτό : html.replace("%playername%", player.getName()); Κατάφερες τίποτα Krash?
×
×
  • 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