Jump to content

AnsS

Members
  • Posts

    213
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by AnsS

  1. <add val='10' order='0x20
  2. Other server status: <?php //////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// Created By Mentor (Orgyilkos) www.teamsrv.net //////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// $login_ip = "127.0.0.1"; $login_port = "2106"; $game_ip = "127.0.0.1"; $game_port = "7777"; $ventrilo_ip = "127.0.0.1"; $ventrilo_port = "3784"; $mysql_host = "127.0.0.1"; $mysql_user = "root"; $mysql_passwd = "root"; $mysql_db = "l2jdb"; /////////////////////////// ////////Login Server/////// /////////////////////////// $ls = @fsockopen ($login_ip, $login_port, $errno, $errstr, 1); if ( $ls ) $ls = "<font color=green>Online</font>"; else $ls = "<font color=red>Offline</font>"; /////////////////////////// ////////Game Server /////// /////////////////////////// $gs = @fsockopen ($game_ip, $game_port, $errno, $errstr, 1); if ( $gs ) $gs = "<font color=green>Online</font>"; else $gs = "<font color=red>Offline</font>"; /////////////////////////// ////////Vent Server /////// /////////////////////////// $ve = @fsockopen ($ventrilo_ip, $ventrilo_port, $errno, $errstr, 1); if ( $ve ) $ve = "<font color=green>Online</font>"; else $ve = "<font color=red>Offline</font>"; ///////////////////////////// ////MySQL Login Server/////// ///////////////////////////// mysql_connect($mysql_host, $mysql_user, $mysql_passwd) or die ("Nem sikerült csatlakozni a MySQL szerverhez!"); mysql_select_db($mysql_db) or die("Nincs ilyen adatbázis: ".$mysql_db); // All Accounts $accounts=mysql_numrows(mysql_query("SELECT * FROM accounts")); // Online Players Num $num=mysql_numrows(mysql_query("SELECT * FROM characters WHERE online=1 and accesslevel=0")); // Online GMs Num $gmnum=mysql_numrows(mysql_query("SELECT * FROM characters WHERE online=1 and accesslevel>0")); // All Alliance Num $alliance=mysql_numrows(mysql_query("SELECT * FROM clan_data WHERE ally_name!=\'\'")); // All Characters $char=mysql_numrows(mysql_query("SELECT * FROM characters WHERE accesslevel=0")); // All GM Characters $gmchar=mysql_numrows(mysql_query("SELECT * FROM characters Where accesslevel > 0")); // All Clan $clan=mysql_numrows(mysql_query("SELECT * FROM clan_data")); $gmnamesql = mysql_query("SELECT char_name FROM characters WHERE accesslevel>=1 AND online=1 ORDER BY char_name ASC"); while ($gmnam = mysql_fetch_object($gmnamesql)) { $gmname .= "<font color=green>$gmnam->char_name</font>, "; } ///////////////////////////// //////Adatok kiiratása/////// ///////////////////////////// print " <table width='100%' border='0'> <tr><td width='80%'><b>Auth Server:</b></td><td>".$ls."</td></tr> <tr><td width='80%'><b>Bartz Server:</b></td><td>".$gs."</td></tr> <tr><td width='80%'>Accounts:</td><td>".$accounts."</td></tr> <tr><td width='80%'>Online Players:</td><td>".$num."</td></tr> <tr><td width='80%'>Online GM:</td><td>".$gmnum."</td></tr> <tr><td width='80%'>Characters:</td><td>".$char."</td></tr> <tr><td width='80%'>GM Characters:</td><td>".$gmchar."</td></tr> <tr><td width='80%'>Clans:</td><td>".$clan."</td></tr> <tr><td width='80%'>Alliances:</td><td>".$alliance."</td></tr> <tr><td>Online GM: ".$gmname."</td></tr> </table> "; //////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// Created By Mentor (Orgyilkos) www.teamsrv.net //////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// ?> Credits: Mentor (Orgyilkos)
  3. Example: You can open it with notepad. Change this: from net.sf.l2j import Config 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 from net.sf.l2j import L2DatabaseFactory from net.sf.l2j.gameserver.datatables import SkillTable from net.sf.l2j.gameserver.datatables import ItemTable from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance from net.sf.l2j.gameserver.model.zone import L2ZoneType from net.sf.l2j.gameserver.network.serverpackets import SetupGauge New code: from com.l2jserver import Config from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest from com.l2jserver import L2DatabaseFactory from com.l2jserver.gameserver.datatables import SkillTable from com.l2jserver.gameserver.datatables import ItemTable from com.l2jserver.gameserver.model.actor.instance import L2PcInstance from com.l2jserver.gameserver.model.zone import L2ZoneType from com.l2jserver.gameserver.network.serverpackets import SetupGauge
  4. Min. 2 players. Only u participate?
  5. <?php $mysql_host = "127.0.0.1"; $mysql_user = "root"; $mysql_passwd = "root"; $mysql_db = "l2jdb"; ?> <script type="text/javascript">//<![CDATA[ function isAlphaNumeric(value) { if (value.match(/^[a-zA-Z0-9]+$/)) return true; else return false; } function checkform(f) { if (f.account.value=="") { alert("You have not entered a user name!"); return false; } if (!isAlphaNumeric(f.account.value)) { alert("Fill in all fields! Only alphanumeric characters!"); return false; } if (f.password.value=="") { alert("You have not entered a password!"); return false; } if (!isAlphaNumeric(f.password.value)) { alert("444444"); return false; } if (f.password2.value=="") { alert("You have not repeated the password!"); return false; } if (f.password.value!=f.password2.value) { alert("The two password is not the same!"); return false; } } //]]></script> <?php $formtable = ' <form method="post" onsubmit="return checkform(this)"> <table> <tr> <td><b><font color="#000000">Username:</font></b></td> <td><font face="Trebuchet MS" size="1"><b> <input type="text" name="account" maxlength="15" size="30" /></b></font></td> </tr> <tr> <td><b><font color="#000000">Password:</font></b></td> <td><font face="Trebuchet MS" size="1"><b> <input type="password" name="password" maxlength="15" size="30" /></b></font></td> </tr> <tr> <td><b><font color="#000000">Password Repty:</font></b></td> <td><font face="Trebuchet MS" size="1"><b> <input type="password" name="password2" maxlength="15" size="30" /></b></font></td> </tr> <tr> <td colspan="2" style="text-align: center;"> <font size="1" face="Trebuchet MS"><b><br /> <input type="submit" name="submit" value="Register" /></b></font></td> </tr> </table> </form> <br> <center></center> '; mysql_connect($mysql_host, $mysql_user, $mysql_passwd) or die ("Nem sikerült csatlakozni a MySQL szerverhez!"); mysql_select_db($mysql_db) or die("Nincs ilyen adatbázis: mySQL_database "); $bannedip=mysql_num_rows(mysql_query("SELECT * FROM accounts WHERE accessLevel='-100' and lastIP='".$_SERVER['REMOTE_ADDR']."'")); if($bannedip<1){ if (isset($_POST['submit'])) { $error_str = ''; if (!empty($error_str)) { print "<b><font color=red>Következő hibák léptek fel:</font></b><br>".$error_str."<br>".$formtable; exit; // die } $acc=mysql_num_rows(mysql_query("SELECT * FROM accounts WHERE login='".$_POST['account']."'")); if( $acc > "0" ){ print '<p class="error"><b><font color=red>This name is already in use!</font></b></h2></p>'; } else { print'<p class="error"><b><font color=green>Registration Success!Have a good game! </font></b></h2></p>'; mysql_query ("INSERT INTO accounts (login, password, accessLevel) VALUES ('".$_POST['account']."', '".base64_encode(pack('H*', sha1($_POST['password'])))."', 0)"); } } else { print $formtable; } } else { print '<p class="error"><b><font color=red>Sorry, but you cannot register!</font></b></h2></p>'; mysql_query ("UPDATE accounts SET accessLevel = '-100' WHERE accessLevel>='0' and lastIP='".$_SERVER['REMOTE_ADDR']."'"); } ?>
  6. The event is started? (Spawn the TvT NPC?) or nothing happened?
  7. Oh yeas! Very useful! Thanx man...:)
  8. Good idea! Very good for pvp servers. Thanx man :)
  9. Now, have same error. May he be trouble with my file? EDIT: Yeeeah! Thanx man! Single handed is good :) Close the topic plz!
  10. I try again, but when I save the weapongrp have error. Cannot open file. Code: 0 777776 1 1 7 45 0 LineageWeapons.unique_zariche_m00_wp LineageWeapons.unique_zariche_m00_wp Black.Zariche Black.Zariche 0 0 0 0 0 1 1 0 Black.Super_Duals icon.weapon_unique_zariche_i00 icon.weapon_unique_zariche_i00 -1 1520 8 1 0 0 1 7 3 2 LineageWeapons.unique_zariche_m00_wp LineageWeapons.unique_zariche_m00_wp 1 1 2 Black.Zariche Black.Zariche 4 ItemSound.public_sword_shing_8 ItemSound.sword_great_4 ItemSound.sword_mid_2 ItemSound.public_sword_shing_4 ItemSound.itemdrop_dualsword ItemSound.itemequip_dualsword 10 3000 3000 8 7 8 0 0 0 0 325 0 1 1 1000 0 1 0 LineageEffect.it_zariche_sword_c LineageEffect.it_zariche_sword_c -2.00000000 0.00000000 0.00000000 -2.00000000 0.00000000 0.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.39999998 0.80000001 0.80000001 1.00000000 0.80000001 0.80000001 1.39999998 0.80000001 0.80000001 1.00000000 0.80000001 0.80000001 4 4 -1 -1 SQL: OK XML FILE: OK ITEMNAME-E: OK WEAPONGRP: Not Good :(
  11. See: http://www.pastebin.cz/30210
  12. Welcome! I downloaded Dual Zariche. Link: http://www.maxcheaters.com/forum/index.php?topic=126887.0 But, I give me the item, but i don't see in my inventory. I make that write the post... What's the problem?
  13. The post is on the end. But, download link: http://www.l2jserver.com/forum/download/file.php?id=410
  14. I searched in forum. See it: http://www.maxcheaters.com/forum/index.php?topic=78590.0 But if it isn't good: http://www.l2jserver.com/forum/viewtopic.php?f=69&t=11461#p50590
  15. Where you fix it? Search Duel Blow ID. Next, go data/skills/0900-0999.xml EDIT: I searched is. Skill ID is: 928 I use L2j. <skill id="928" levels="1" name="Duel Blow"> <set name="weaponsAllowed" val="262160" /> <!-- Dagger and Dual Daggers --> <set name="mpConsume" val="77" /> <set name="magicLvl" val="81" /> <set name="power" val="7546" /> <set name="target" val="TARGET_ONE" /> <set name="condition" val="16" /> <set name="reuseDelay" val="20000" /> <set name="hitTime" val="1800" /> <set name="coolTime" val="720" /> <set name="skillType" val="BLOW" /> <set name="baseCritRate" val="15" /> <set name="lethal1" val="5" /> <set name="dmgDirectlyToHp" val="true" /> <set name="operateType" val="OP_ACTIVE" /> <set name="castRange" val="40" /> <set name="effectRange" val="400" /> <set name="SSBoost" val="2.0" /> <set name="overHit" val="true" /> </skill>
  16. Or add lines: /I use this code/ <td><button action="bypass -h npc_%objectId%_Heal CP" value="Full CP" width=120 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td> <td><button action="bypass -h npc_%objectId%_Heal HP" value="Full HP" width=120 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td> <td><button action="bypass -h npc_%objectId%_Heal MP" value="Full MP" width=120 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
  17. Have a problem all party buffs?
  18. OMG! It's very easy but very good! Thanks man, I tested...I will use it =] Cool :P
  19. Wrong topic. Go Client Mods topic. But, I searched: http://www.maxcheaters.com/forum/index.php?topic=42284.0
  20. This code: is welcome message. Not PM -.-"
  21. Will start, when your server according to his clock time is 18:00.
  22. Go to NPC.properties in config. Find this: # Defines whether NPCs are attackable by default # Retail: True AltAttackableNpcs = False
  23. I try it. Good job man! I use this :) Very easy and fast ^^ Thanx a lot.
  24. Open the net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java See code (Made by Mentor):
  25. I try it, but not good... weapon enchant 0 :(
×
×
  • Create New...