Jump to content

*][Sl4v3][*

Members
  • Posts

    47
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by *][Sl4v3][*

  1. After you learn how to make 1 NPC it is very easy to do it without this guide the next time. Just follow these steps. You can ONLY make your custom NPC look like differant NPC in the game. You cannot make your own Template.. 1. Go to your L2j Database. 2. Go to your NPC Table 3. Go to Search 4. Get the ID of the NPC You want to make your Custom NPC look like. 5. After you get the ID of the NPC, You can now close out of Lineage, you wont need it anymore. 6. Search the ID in the NPC Section of your database and open up 2 windows one with the NPC you are copying and now with that other window, Click "Insert" 7. Now find a free ID in your database and use that. 8. Use the same "Collision Radius and height and Template ID" Do NOT change that. 9. Now just fill in the rest of the fields how you want. 10. Make sure you fill in all your fields and use the same Template ID, after you use the same template ID, Collision Radius and height you can now restart your server and spawn the NPC you made. Finito..
  2. Step 1) Find an NPC that you like and you want your NPC to look like, i chosed an "Golden Pig" - ID = 13035. I always just take the easy way and go to DataBase and then just find a strange name and try it out. You need to take the "idTemplate" - that is the look of the NPC. You also need to take the "class" from it. In this case it is "NPC2.E_pig_ball" you also need the "type" "L2Merchant" Step 2) Now make a new row in the NPC table at database. Type in the ID you want. Eg. "99999" And then at "idTemplate" put in our Golden pig idTemplate (13035) + our "class" id "NPC2.E_pig_ball". I allways type in "L2Merchant" at "type" - because then you can keep all the NPC files at one folder "html/merchant" but thats just me. Anyway. Now just fill out the rest of the rows as it is in the golden pig row. Change the title and such things to what you want. Step 3) Ok now the Database part is done. Go to your "data/html/merchant" folder. make a new HTML file named the id as we said above "99999". In the HTML file put in this text: <html><body> <table width=200> <tr><td><center>Welcome to my server</center></td></tr> </table> </body></html> Save it as a ".htm" file. Step 4) Now you are actuly done. Start server and go ingame and type: //spawn 99999 And wupti you have a golden pig with that text :) If you want a GM shop its almost that, then you just need to add an ".xml"
  3. I Will UpDate It Soon!!!! =======[EDIT]========= I Have Already Scanned It !
  4. Sorry i didnot saw again this topic..i am new here :P
  5. 1. You need the cordinates of the location you want the entire class to spawn 2. Write it down. 3. Log out. 4. Go to your database and into your char_templates.sql and click human fighter. *TIP* Only change the starting classes Human fighter, Human mystic, elf mage, elf fighter... etc. 5. The cordinates you had are in this order " X " " Y " " Z " There are 3 fields you need to fill in, x y and z fill those in. 6. Save and restart the server.
  6. Okay.. we are going to learn how to make our own NPC Buffer, you can add the buff you want, superhaste, chants, dances, hero buffs, noblesse buffs, songs, hierophant buffs, souls, etc... etc... I have noted that all people is allways searching for a NPC Buffer, but the true is that you will never find a perfect one so that's the reason I'm making this guide for you. First of all you need to be patient, this is not an easy guide, but if you follow everything I type, I know you will understand and you will get the skill to create your own First of all, If you have an HTML editor like dreamweaver, use it, if not, use notepad, if you don't like notepad, download the notepad++ Is pretty cool, Don't know where to get it?? just click this link:http://notepad-plus.sourceforge.net/uk/download.php If you want to make your own new NPC follow this little guide below, If you want to use an existing one just skip this step, but you have to enter the game and shift click the npc you wanna edit and see it's ID, then write it on a paper or in a place you will remember STEP ONE:. CREATING THE NEW NPC Enter Lineage II game, find a NPC you like, I don't know which, you can chose a granite golem. Antharas, Valakas, Baium, Gremlin, etc... etc.., in a few words just chose your favirite NPC template Press the Shift key and click on it, there you will see the NPC ID like in image Enter your MySQL Database and create a new row there you put in the column ID the number you want but make sure is not in use, try using some number like 99999 The other columns just copy them from the original NPC, but make sure the aggro colunm is 0 and the type must be "L2Npc" In name and tittle just put what you want In serversidename and serversidetittle put 1 Save your database and that's all STEP TWO:. EDITING YOUR NPC HTML (THE TEXT IT SAYS) Open your HTML editor or the notepad, and paste this code Code: <html> <body> <center> <tr><td><font color="FF44FF">L2 Antorni Buffer</font></tr></td><br> <br> Welcome <br> I can buff you <br> <button value="Buff Me please" action="bypass -h npc_%objectId%_Quest 9999_NPCBuffer" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </body> </html> go to menu file/save as.. name it as "ID of your npc".html for example 1234.html Don't forget the .html, is very important YOU MUST SAVE THE FILE INSITDE THE FOLDER \GAMESERVER\DATA\HTML\DEFAULT\ Explanation of the code, "<html>" & "</html>" are telling us that is an html document "<body>" & "</body>" are telling us that everything inside them is the content of the html document "<center>" tell us that the next line will be centered "<tr><td>" & "</tr></td>" tell us that will create a table "<font color="FF44FF">" & "</font>" defines the color of the text inside them (color must be in hex format) "<br>" means a line jump "<button value="Buff Me please" will create a buton with the text buff me please action="bypass -h npc_%objectId%_Quest 9999_NPCBuffer" this is the action of the button, in this case is get the quest with the name 9999_NPCBuffer width=75 width of the button height=21 height of the button back="L2UI_ch3.Btn1_normalOn" this is tha background of the button fore="L2UI_ch3.Btn1_normal" this is the foreground of the button>" Note that the background and the foreground are clientside images so so sorry this guide is incomplete cause I click on submit post instead of preview, I will finish soon just sorry for the mistake LoL STEP THREE:. CREATING THE BUFF FILES Because of in our html we type 9999_NPCBuffer, we have to create a folder with this name in the folder gameserver\data\jscript\custom, if you want other name just change it on your HTML file and then create a folder with the same name Go to your new folder, in this case gameserver\data\jscript\custom\9999_NPCBuffer\ There create a file with a name "__init__.py" if you don't know how, just open your notepad and click save as and you paste it, don't forget that must have the .py, without that, that's just a simple txt file Open your __init__.py there is wher you will put the buffs, I will just explain how to do it, I will not do all the buffer, that will be your homework Inside the __init__.py you will paste this code Code: import sys from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from net.sf.l2j.gameserver import SkillTable from net.sf.l2j import L2DatabaseFactory from net.sf.l2j.gameserver.model.quest import State from net.sf.l2j.gameserver.model.quest import QuestState from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest THE LINES AVOVE ARE JUST IMPORTING SOME DATA NPC=[1234] HERE YOU PUT THE ID OF YOUR NPC ADENA_ID=57 TIS IS JUST FOR TYPE ADENA_ID INSTEAD OF 57 MIN_LEVEL=40 THIS IS THE MINIMUM LEVEL TO GET BUFFED QuestId = 9999 THIS IS THE ID OF THE QUEST QuestName = "NPCBuffer" THE NAME OF THE QUEST QuestDesc = "custom" THIS IS THE FOLDER OF THE QUEST InitialHtml = "1.htm" THIS IS THE FILE OF YOUR NPC THA WILL START print "importing " + QuestDesc + ": " + str(QuestId) + ": " + QuestName + ": " + QuestName, class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event count=st.getQuestItemsCount(ADENA_ID)HERE THE NPC GET YOUR ADENA level=st.getPlayer().getLevel() HERE THE NPC GET YOUR LEVEL if count < 200000 and level < MIN_LEVEL : htmltext = "<html><head><body>You dont have enough adena or your level is lower than st.getPlayer().getLevel().</body></html>" else: st.getPlayer().setTarget(st.getPlayer()) I will explain this just a little cause is a lot of code, just remember things in red have to be deleted to make the code works, This code is very easy, what it do is just check if you have adena and the minimum level After that code you have to put the buffs in this format Code: if event == "2": NEED TO START IN 2 AND MUST BE RAISING 1 EACH TIME st.takeItems(ADENA_ID,15000) CHANGE IT FOR THE PRIZE YOU WANT st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False) CHANGE IT FOR THE SKILL ID YOU WANT TO USE, CHANGE IT FOR THE LEVEL OF THE SKILL st.getPlayer().restoreHPMP() HERE IS JUST RESTORING PLAYERS MP CAUSE NPC USES PLAYER MP return "1.htm" HERE YOU RETURN TO THE CHOSE BUFFS SCREEN st.setState(COMPLETED) Note: for each buff you have to put this code, just change the ID of the buff, the level and the prize.. and of course the event number (if event == "2") In that code you are chosing buff and prize, after that code you have to paste this Code: if htmltext != event: st.setState(COMPLETED) st.exitQuest(1) return htmltext def onTalk (self,npc,st): htmltext = "<html><head><body>I have nothing to say to you</body></html>" st.setState(STARTED) return InitialHtml QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc) CREATED=State('Start',QUEST) STARTED=State('Started',QUEST) COMPLETED=State('Completed',QUEST) QUEST.setInitialState(CREATED) for npcId in NPC: QUEST.addStartNpc(npcId) STARTED.addTalkId(npcId) print "...done" I will not explain that code, just paste it, there is nothing interesting Note: Remember the event number of each skill, or better write them in some paper Now once you have created the __int__.py you have to create a file with name 1.html that will be the buffer selection screen Inside the 1.html you just have to paste this code (I will explain this one) Code: <html> <body> <center> <font color="FF40FF">L2 Antorni Buffer</font><br> <br> <font color="00FFBB">Buff List:</font><br> <tr><td></td><td><button value="HERE PUT THE TEXT OF THE BUTTON, IRECOMMEND YOU TO PUT THE NAME OF THE BUFF JEJE" action="bypass -h Quest 9999_NPCBuffer 2" THIS NUMBER IS VERY IMPORTANT, IS NE NUMBER OF THE EVENT THAT WILL CALL FROM __int__.py width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr><br> </center> </body> </html> Pay a lot of attemption to this code and remember the number after 999_NPCBuffer is very important, to call the correct event, to add another buff just add this line to the code Code: <tr><td></td><td><button value="Heal" action="bypass -h Quest 9999_NPCBuffer 2" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td></tr><br> Just change the number of event and the button value For the last step you just need to add this line of code inside the __int__.py that is inside the folder gameserver\data\jscript\custom\ Code: '9999_NPCBuffer', STEP FOUR:. TESTING THE BUFFER Enter the game and now type //spawn "ID of your NPC"
  7. hi all again i will show you a new guide First of all open your MySQL and open the teleport http://img514.imageshack.us/my.php?image=31368752uc2.png 2)a new window will open http://img511.imageshack.us/my.php?image=98438503wp2.png 3)After press the + button and a new tab will appear http://img514.imageshack.us/my.php?image=27187002zx1.png 4)write in Description the name of your Area write in id a new numbrer which doesn't exist there e.x 80000 5)in loc_x loc_y and loc_z write the numbres of the area you wonna e.x for Pagan Temble exit write loc_x loc_y loc_z 6307 -36591 0725 the put the price and if you wonna to be noblesse teleport only(put 1) 6)After go to custom_npc and open it 7)a new window will open press the + button and a new tab will appear 8)then write a numbrer in id for your npc e.x 10555 9)After write these INSERT INTO custom_npc (`id`, `idTemplate`, `name`, `serverSideName`, `title`, `serverSideTitle`, `class`, `collision_radius`, `collision_height`, `level`, `sex`, `type`, `attackrange`, `hp`, `mp`, `hpreg`, `mpreg`, `str`, `con`, `dex`, `int`, `wit`, `men`, `exp`, `sp`, `patk`, `pdef`, `matk`, `mdef`, `atkspd`, `aggro`, `matkspd`, `rhand`, `lhand`, `armor`, `walkspd`, `runspd`, `faction_id`, `faction_range`, `isUndead`, `absorb_level`, `absorb_type`, `ss`, `bss`, `ss_rate`, `AI`) VALUES (10555, 32174, 'teleporter', 1, 'your tittle', 1, 'LineageNPC2.K_F1_guard', 13.00, 22.50, 70, 'female', 'L2Teleporter', 40, 3862, 1493, 11.85, 2.78, 40, 43, 30, 21, 35, 10, 5879, 590, 1314, 470, 780, 382, 278, 0, 349, 0, 0, 0, 80, 120, '', 0, 0, 0, 'LAST_HIT', 0, 0, 0, 'fighter') 10)open your html editor and make a new html in the html put these <html><body> <center><tr><td><font color="FF40FF">Teleporter</font></tr></td><br> <tr><td><font color="FF0066">______________________________</font></tr></td><br> <br> <tr> <td>where you wonna go? </tr></td><br> <br> <tr><td><a action="bypass -h npc_%objectId%_goto 80000" msg="811;Custom Area"><font color="00FF00">Custom Area</font></a></td></tr> <tr><td><font color="FF0066">______________________________</font></tr></td> </body></html> then save it as .html 11)after go to C:/server/gameserver/data/html/teleporter and put it there 12)make a restart or open ur server //spawn 10555 and test it
  8. I think i figured out about 99% of this fun little thing hers what I have so far 1) Get yourself to a place where you want to have your event. then type //eventmatch create 1 team1 team2 1 1 1 100 100 you wont get any conformation if it worked but that’s where step 2 comes in 2) Type //eventmatch list you should see something like SYS:--Event Match List Begin-- SYS: 1: 'team1' vs 'team2' SYS --Event match List End-- The number in front of the line that has the 2 teams that you setup in step 1 is your match ID, *The match ID is reset to 1 every server reboot* 3) Next type //eventmatch manage 1, again change the 1 to your match ID. This will bring up the handy match command screen 4) In the top right corner there is a button that says Remove a Race Track *will read "move a Race Tr" * Click that. Now it changed to Create a Race Track *reads "eate a Race Tra"*. in this window click the button that says My Coordinates, that will fill in the X, Y, Z of the center of the new Arena, or Race track as they refer to it as. then the last 2 boxes are the height and width *height is the length of the arena from North to South and the width is the length from East to West in the world. Once that window is all filled in, click Ok 5) Now that your back at the main window, the 2 important items for right now are the Race Setup File and Command File fields. These are the full path to the files, I suggest putting them right in your C: Drive for easy typing, So for example put C:\arena_setup.ini in the Race Setup field and C:\command.ini in the Command File field. *file specs are at the end of this topic* 6) next, we need to setup some teams have the players create parties with the players they wants on there team *Or you can do solo fights*, after they have create there parties select a player from the first team and click Select a target and there name should now be in the represenitive field of that team. Next click Lockup a party to add all the players from that team to the Formation of Team X field below. Repeat this for team 2. 7) After that, your pretty much ready to fight. Have the players come to the inside the 4 posts that where made in step 4. Once there in Click the Fence Up Button, This will put of the wall to the arena, Click it again to lower the wall. 8 ) I would you then type //eventmatch dispelall 1 to debuff everyone in the match *Remember to change the 1 to your match ID* This can be done with the command file also 9) Your ready, Click Start of a Race to get the fancy countdown and big START prompts to all players in the match. 10) After the match is over, for fun you can have fire works go on the winning team players by clicking either, Team1 Fireworks or Team2 Fireworks. The counter towards the bottom should put a point in the winning teams block or you can change it and click Apply 11) After you Res. the dead players you can click Fence Down to let them out, also click Lift a lockup buttons to remove the teams. Or you can click Start a Race again to do a best of 3 or 5 or what ever. 12) Restart at step 6 for your next battle. Notes - The message field at the bottom it to send a message to the players in the match, type your message and click Forward , the message length is not that big so be careful - The Ending Message button will display a big GAME OVER message *It does not end a match or remove a arena* - To open the command File, click Command at the bottom of the window. Race Setup File Format The format is in standard INI format. here is an example one that will - Buff all players with lvl 70 Dark Elf Elder buffs - Not allow Hero weapons - Not allow Cancel, any resurrections or party recall Code: [etc] TeleportDelay=2 [buff] BuffCnt=10 //Mental shield lvl 4 BuffID0=1035 BuffLv0=4 //Shield lvl 3 BuffID1=1040 BuffLv1=3 //Greater Empower lvl 3 BuffID2=1059 BuffLv2=3 //Might lvl 3 BuffID3=1068 BuffLv3=3 //Focus lvl 3 BuffID4=1077 BuffLv4=3 //Concentration lvl 6 BuffID5=1078 BuffLv5=6 //Resist Wind lvl 3 BuffID6=1189 BuffLv6=3 //Wind Walk lvl 2 BuffID7=1204 BuffLv7=2 //Guidence lvl 3 BuffID8=1240 BuffLv8=3 //Death Whisper lvl 3 BuffID9=1242 BuffLv9=3 [skill] DefaultAllow=1 ExpSkillCnt=4 //Cancel ExpSkillID0=1056 //Return ExpSkillID1=1050 //Resurrection ExpSkillID2=1016 //Mass Ressurection ExpSkillID3=1054 [item] DefaultAllow=1 ExpItemCnt=11 //Infinity Blade ExpItemID0=6611 //Infinity Cleaver ExpItemID1=6612 //Infinity Axe ExpItemID2=6613 //Infinity Rod ExpItemID3=6614 //Infinity Crusher ExpItemID4=6615 //Infinity Scepter ExpItemID5=6616 //Infinity Stinger ExpItemID6=6617 //Infinity Fang ExpItemID7=6618 //Infinity Bow ExpItemID8=6619 //Infinity Wings ExpItemID9=6620 //Infinity Spear ExpItemID10=6621 I commented it as much as possible but a few things to remember, the XxxCnt items are the amount of things your adding like BuffCnt=7 says your going to list 7 buffs also the XXXXXID and XXXXXlvl are 0 based (a lot like the eventdata.ini in the server scripts folder) another thing to remember, if you disallow a weapon or armor, it is NOT disarmed when the match starts, so be on the look out for that. The AllowDefult option seems to say weather to read the file of just allow the default, but its backwards DefaultAllow=1 means use the file DefaultAllow=0 means ignore the file Command File format Like the race setup file, this is an INI format but a lot simpler, Here is my example file Code: [cmd] CmdCnt=3 Cmd0="//announce Hello World" Cmd1="//announce Finally figured it out :)" Cmd2="//eventmatch dispelall 1" **Good commands added by blondeamon** Mass Res. //eventmatch useskill [match_Id] 1016 5 Mass CP recharge //eventmatch useskill [match_Id] 1306 6 just put the full command in quotes and your done, Dont forget to change the CmdCnt to the ammount of commands you have, and change the number after Cmd if you add more IE Cmd3= would be the next one. I have not been able to see if there is a variable for the match_id so you will have to change the file to match your match_id. The one thing I have not figured out is the TeleportDelay option in the Race setup file. Notes - Tested and ready to use locations for Gludin Arena: -87908 142217 -3645 910x900 (Thanks blondeamon) - Tested and ready to use locations for Giran Arena: 72982 142759 -3772 920x900 (Thanks blondeamon) I hope you all find this to be useful. Thanks [OTS]G-Man Hopefully I fixed all spelling mistakes :P
  9. did you ever think that your server was free to l2phx users? you ever feel unprotected? huh. you ever had a problem with l2phx on your servers? you had ppl that where announcing whatever they liked? and did whatever they want? or ppl that where stucking subs or had overpowred enchants? well this is gonna changed. i created sm files that will protect your server without any work from you. you dont need to compile your files. i already did. it works on l2jfree/l2j/l2joneo/l2emu and l2j dot. the new project that is making its first steps on the l2j developing arena. these files where made on interlude and i dont know if its possible to work on other chronicles. maybe yes maybe no. good luck and use these files to your server. put whatever is on the gameserver on your gameserver. dont change anything else. Code: http://rapidshare.com/files/217517242/gameserver.rar.html
  10. Gia sas Epeidi oloi 8elun na kanun diko tous server etc kai egw gia kapio logo eftia3a ena arxeio PowerPoint me odhgous mesa , gia na mn ksana akousw tetia pragmata , Gia na Arxisete tha Xreiasteite : 1= l2j datapack kai server pack www.l2jserver.com (parte Thn Teleytea Version) 2= opiodipote Mysql program ,java SDK Ex : www.navicat.com 3= Microsoft powerpoint Program Ex: www.Google.com iT :P ayta ine ola Sto parakatw link tha vreite ena arxeio powerpoint opou tha sas ka8odigisei pos na stisete ena L2J server http://files-upload.com/319687/L2Sev...Guide.ppt.html PS:Einai Metafrasmeno apo to English Section :P
  11. hello since everyone wants to start his own l2j server and coudnt , for some reason i made this powerpoint file with pictures and Directions with it , so nobody asks how to setup a l2j server , to start u will need thuse 1= l2j datapack and server pack www.l2jserver.com get the last version 2= ANY Mysql program ,java SDK Ex : www.navicat.com 3= Microsoft powerpoint Program Ex: www.Google.com iT :P thats all in the lin-k below , you ill find a powerpoint file , leads you step by step till you Run up your server there are pics if you dont understands the writin Structions have fun http://files-upload.com/319687/L2Sev...Guide.ppt.html PS:This Guide Is Not Mine But From Another Forum
  12. Ayto ine ena guide gia to pos tha kanete enan char (opiodipote) GM mesw Navicat.. 1)Kanume Ena acc ston srv mas 2)ftiaxnume ena Char kai kanume AMESWS RELOGIN 3)Anoigoume to Navicat 4)Pame Sto "table" Characters 5)Vriskoume to char mas (apo to name pou tou dwsame) 6)Sto Access Level anti gia 0 balte 200 kai tha iste GM... PS:mporeite na dwsete kiallo access... :P
  13. ok. here is the link for the faction server packet.... http://rapidshare.de/files/39886732/...iZzOr.rar.html its oneo pack.. it has already gmshop/buffer/gk inside.. its ready. you dont need mysql... well. chars has name already. koofs and noobs. each kill gives 10 adenas and you can change it on (C:/Server/Gameserver/Configs/L2 Custom Mods/KvN System) its not hard:P you can start the server by starting (Loginserver / Gameserver) it already has kills announces for each kill. i already put an auto rr every 6 hours... the packet has also Dynasty Armors and Infninity Weapons customed:/:/:/ you can make your server global very easy It Is For c6 Client..
  14. etc opws leei o XxRxX to exw kanei twra ime k newbie ...
  15. Re pedia To pedi aksizei +1..Eleos...
  16. Exw Ena Server kai exw balei Epic Shop.. Einai mono Weapon alla me to pou paw na ta dw Trww CritiCal...Den 3erw gt... Ti fteei ??? to NPC to xw perasei me to tropo tou XxRxX..
×
×
  • Create New...