-
Posts
422 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Sindelia
-
[Share] Make an NPC dialogue say your character's name!
Sindelia replied to Sindelia's topic in Server Shares & Files [L2J]
*Bumer* Yes, sorry I was a lil' bit in a hurry because I wanted to share :P -
[Share] Make an NPC dialogue say your character's name!
Sindelia replied to Sindelia's topic in Server Shares & Files [L2J]
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 :) -
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!
-
I know that I have to change some things :P But , I need some help :S
-
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
-
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.
-
KK I'll do what u say on the guide..
-
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..
-
Egw eixa provlhmata me to na metakinoume mesa , dld proxorousa kai htan san na kanw diadromo , na proxwraw kai na me paei pisw :P
-
Telika to dokimasa kai pragmatika yparxei! Den to hksera oti yphrxe tetoio room!
-
Egw pistevw oti einai custom map.. O l2gold exei kanei mod ta client mexri ahdias :S
-
[Help] Geodata Pathnodes
Sindelia replied to Ceptimus's question in Request Server Development Help [Greek]
Ξέρεις το 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 Υ.Γ.: Επίσης αποτρέπουν το να κολάς σε τοίχους κ.τ.λ -
[Help] Με κώδικα.
Sindelia replied to Sindelia's question in Request Server Development Help [Greek]
*bump*... -
[Help] Mia Megali Aporia
Sindelia replied to ThugLord92's question in Request Server Development Help [Greek]
Το κατάλαβα , προσπάθησε να κάνεις αυτο που λέει το share δηλαδή να εγκαταστήσεις και να τρέξεις τον Inter. gameserver άσχετα αν είναι διαφορετικά... ::) -
[Help] Mia Megali Aporia
Sindelia replied to ThugLord92's question in Request Server Development Help [Greek]
Δοκίμασες να κάνεις αυτό που λέει το share που σου έδωσε ο Imortal? -
[Help] Με κώδικα.
Sindelia replied to Sindelia's question in Request Server Development Help [Greek]
Efxaristw POLY pou apanthses..exw dokimasei ta panta , oute auto leitourgei :( -
>>>Gracia Plus Server Pack<<<
Sindelia replied to pa40's topic in Server Development Discussion [L2J]
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 -
>>>Gracia Plus Server Pack<<<
Sindelia replied to pa40's topic in Server Development Discussion [L2J]
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 -
[Help] Με κώδικα.
Sindelia replied to Sindelia's question in Request Server Development Help [Greek]
*bump* Πολλες μέρες πέρασαν... -
[SHARE]Server Attacker V3 (Version 3)
Sindelia replied to DragonHunter's topic in Hacks & Cheats [English]
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* -
[Help] Με κώδικα.
Sindelia replied to Sindelia's question in Request Server Development Help [Greek]
*bump* (Άλλη 1 μέρα πέρασε) -
[Help] char spawn + Anti-pk Guard
Sindelia replied to DEMON16's question in Request Server Development Help [Greek]
1)Legetai spawn protect , einai sta config tou gameserver. Sto general nomizw. 2)Tha mporouses na ton kaneis na mhn einai aggro. -
[Help] Με κώδικα.
Sindelia replied to Sindelia's question in Request Server Development Help [Greek]
Επίσης μου είπαν οτι άμα είναι handled ήδη να βάλω μόνο αυτό : html.replace("%playername%", player.getName()); Κατάφερες τίποτα Krash? -
[Help] Με κώδικα.
Sindelia replied to Sindelia's question in Request Server Development Help [Greek]
Αυτό ακριβώς θέλω :)