-
Posts
2,995 -
Joined
-
Last visited
-
Days Won
76 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Nightw0lf
-
@emted or @DenArt Designs
-
paid answer give his cookies
-
just build datapack with java whatever too. also in java is hardcoded too the version of the build in script engine java-engine.jar also need to be updated for some packs
-
Source L2JaCis 399 Custom Edit L2JDev
Nightw0lf replied to BAN_L2JDev's topic in Server Shares & Files [L2J]
thank you for share, a couple of things the first file i've open didnt tell me much about the pack and the developer public static void unspawn() { NpcData table = NpcData.getInstance(); try (Connection con = ConnectionPool.getConnection(); PreparedStatement ps = con.prepareStatement(LOAD_HIGH_RATE); ResultSet rs = ps.executeQuery()) { while (rs.next()) { int pointer = 1; int npcId = rs.getInt(pointer++); int locX = rs.getInt(pointer++); int locY = rs.getInt(pointer++); int locZ = rs.getInt(pointer++); int heading = rs.getInt("heading"); respawnTime = rs.getInt("respawn_delay"); NpcTemplate tp = table.getTemplate(npcId); if (tp != null) { _npcSpawn1 = new Spawn(tp); _npcSpawn1.setLoc(locX, locY, locZ, heading); _npcSpawn1.setRespawnState(true); _npcSpawn1.setRespawnRandom(Config.DUNGEON_NPC_DOSPAWN); Npc npc = _npcSpawn1.doSpawn(false); if (npc instanceof Monster) npc.setInstanceId(InstanceMap.HighRateInstanceId, true); else { // err } } } ps.execute(); } catch (Exception e) { e.printStackTrace(); } } else { error } random static access public static void Finish_Event() { desSpawn(); unspawnNpc2(); _started = false; _finish = true; if (!AdminDungeon._bestfarm_manual) InicialDungeon.getInstance().StartCalculationOfNextEventTime(); else AdminDungeon._bestfarm_manual = false; for (Player player : World.getInstance().getPlayers()) { if (player != null && player.isOnline()) { CreatureSay cs = new CreatureSay(player.getObjectId(), SayType.HERO_VOICE, "", ("Next Dungeon: " + InicialDungeon.getInstance().getNextTime()) + " (GMT-3)."); // 8D player.sendPacket(cs); } } } con.close, wheird stuff when using try/catch with resources protected static void desSpawn() { NpcData table = NpcData.getInstance(); try (Connection con = ConnectionPool.getConnection(); PreparedStatement ps = con.prepareStatement(LOAD_HIGH_RATE); ResultSet rs = ps.executeQuery()) { while (rs.next()) { int pointer = 1; int npcId = rs.getInt(pointer++); NpcTemplate tp = table.getTemplate(npcId); if (tp != null) { if (_npcSpawn1 == null) return; _npcSpawn1.getNpc().deleteMe(); _npcSpawn1.setRespawnState(false); SpawnTable.getInstance().deleteSpawn(_npcSpawn1, false); } } con.close(); ps.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } // teleport players back, cleanup everything else world.destroy(); world = null; } overall bad coded customs, also i am not sure if this is a version of acis that can be shared but if not thank you- 1 reply
-
- 1
-
-
you need to build project with java 1.6 compliance its not hard you just select the version to build it from project settings https://prnt.sc/15733il
-
L2 Banners, GIF, Loading Screen and more.
Nightw0lf replied to emted's topic in Marketplace [Webdesign & Webdevelop]
trusted guy and i work with him for years he delivers always -
Share Udemy Discount Coupons & Free Courses
Nightw0lf replied to Ugleethyn's topic in Coding Tutorials/Guides
i've actually added quite a few just to have them sad they expire soon tho so people pick em fast i did 1200 euro checkout :'D -
bro are any of those stuff that i reported fixed? anything i mean mostly the code leaks are a serious problem because 100 leaks multiply per player in most cases and server will crush/lag
-
Vote for upcoming MaxCheaters.com Server Rates
Nightw0lf replied to Maxtor's topic in Votes/Polls Area
now take all this developers including kara throw em in the trash bin, empty trash bin, select indian freelancer put him to work with 5 dolars per week, success, $$$$$$$. -
Vote for upcoming MaxCheaters.com Server Rates
Nightw0lf replied to Maxtor's topic in Votes/Polls Area
is like asking if the cat loves to play a mouse? or its rhetorical question? -
Vote for upcoming MaxCheaters.com Server Rates
Nightw0lf replied to Maxtor's topic in Votes/Polls Area
i said at least 5 -
Vote for upcoming MaxCheaters.com Server Rates
Nightw0lf replied to Maxtor's topic in Votes/Polls Area
i know atleast 5 developers in this forum who can try. -
Vote for upcoming MaxCheaters.com Server Rates
Nightw0lf replied to Maxtor's topic in Votes/Polls Area
the world is not spinning arround you -
Project I Want to buy a Chronice 6 pack Custom items
Nightw0lf replied to Kozi-G's topic in Server Development Discussion [Greek]
τουλάχιστον σκληρός. -
Help L2j (pride pack) Auto Flag Pvp Zone
Nightw0lf replied to testaroaverta's question in Request Server Development Help [L2J]
you need to make a new zone type in Primival Island and that zone type should have on enter flag at once, on exit start flag exit task not imidietly cause it will be cheat, and you also need to handle on die and on res what happens how to do this search somewhere in this forum how to make a new zone there is a share for acis -
Project I Want to buy a Chronice 6 pack Custom items
Nightw0lf replied to Kozi-G's topic in Server Development Discussion [Greek]
speak with @Karahe can at least guide you, if you need donate panel/website with life time support talk to me or https://www.denart-designs.com/ PS: do not expect ken orwen that is not possible this server is open and tested for years to achieve that you need $$.$$$ and anybody who will say otherwise or he has it is 99% here to scam you. -
L2 Admin and GMS looking for help
Nightw0lf replied to sweetnsour's topic in General Discussion [English]
if you want website or donate panel visit https://shop.denart-designs.com if you have questions about it send me a message or tag me here -
suggestion LF Best Lineage 2 Files l2j or l2 off
Nightw0lf replied to Shockzz's topic in Suggestions/Feedback Board
side note best files are the ones you can work with and make them best for your likings and your builded community through the fixes your community suggests/likes that said means you need to be able to work on any files you got, that most cases means you need source (but since its java for double effort you can work without sources in 2021) -
oh shit i found my tester <?php /************************************************************************************* * * Author Nightwolf * Designer Dehnise * Created for Denart Designs that holds the ownership of this files. * * Purchased at https://shop.denart-designs.com/ get updates latest news and support. * * Copyright (C) 2019 DenArt-Designs <info@denart-designs.com>, Inc - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * This file is part of DenArt Panel. * Parts of the code can not be copied and/or distributed under any circumstances. * * For further questions contact us. * Email <info@denart-designs.com> * Skype <denart_grafistiki> * * Thank you for supporting us and helping to improve DenArt Designs. * *************************************************************************************/ error_reporting(E_ALL); ini_set("display_errors", true); setlocale(LC_TIME, 'en_US.UTF-8'); ini_set("max_execution_time", 10); ?> <!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Test Web Host</title> <meta name="author" content="DenArt"> </head> <body> <center> <h1>SQL Server Connection Test</h1><br> Detail: if you don't see any "Success" message then you cant use our panel because your web host does not support this kind of connections.<br> You can try to switch the PHP Version and check again<br> Recommended PHP Version 7.3.0+ <br> Using PHP Version:<b><?php echo phpversion(); ?></b><br> <hr/> </center> Curl: <?php echo function_exists('curl_version') ? "<font color='green'>PASS</font>" : "<font color='red'>FAIL</font>" ; ?><br> Array_merge: <?php echo function_exists('array_merge') ? "<font color='green'>PASS</font>" : "<font color='orange'>FAIL</font>" ; ?> (G2A Function)<br> openssl_pkey_get_public: <?php echo function_exists('openssl_pkey_get_public') ? "<font color='green'>PASS</font>" : "<font color='orange'>FAIL</font>" ; ?> (Paysera Function)<br> Simplexml_load_string: <?php echo function_exists('simplexml_load_string') ? "<font color='green'>PASS</font>" : "<font color='red'>FAIL</font>" ; ?><br> <?php // EDIT THIS $host = "CPU\SQLEXPRESS"; // server IP Address $user = "sa"; $pass = "sa"; // ONLY IF NEED EDIT THIS $base = "lin2world"; $port = 1433; $q = 'SELECT top 10 char_name FROM user_data'; // DO NOT EDIT ABOVE $charset = 'utf8'; $options = [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, ]; // if you get error message excecution time exceed remove 2 and 4 $methods = array(1, 2, 3, 4, 5); foreach ($methods as $method) { $message = null; if ($method == 1) { echo "------------------------<br>"; echo "Testing mssql_connect()...<br>"; try { if (function_exists('mssql_connect')) { $con = mssql_connect($host, $user, $pass); if ($con) { echo "mssql_connect() successfully connected!<br>"; $db_selected = mssql_select_db($base, $con); if (!$db_selected) echo ('Can\'t use db : ' . mssql_get_last_message()); $result = mssql_query($q); if (!$result) echo ('Invalid query: ' . mssql_get_last_message()); $Count = mssql_num_rows($result); print "Showing $Count rows:\n\n"; while ($Row = mssql_fetch_assoc($result)) { echo "<pre>" . $Row['char_name'] . "</pre><br>"; } mssql_close($con); } else { echo "mssql_connect() failed to connect!<br>"; } } else { echo "mssql_connect() function is not available.<br />"; } } catch (Exception $e) { echo "mssql_connect() Failed to connect! ".$e->getMessage()."<br>"; } } if ($method == 2) { echo "------------------------<br>"; echo "Testing odbc_connect()...<br>"; try { if (function_exists('odbc_connect')) { $con = odbc_connect("DRIVER={SQL Server};SERVER=".$host.";Port=1433;Database=".$base, $user, $pass); if($con) { echo "odbc_connect() successfully connected!<br>"; $result = odbc_exec($q,$con); } else echo "odbc_connect() failed to connect!<br>"; } else { echo "odbc_connect() function is not available.<br />"; } } catch (Exception $e) { echo "odbc_connect() Failed to connect! ".$e->getMessage()."<br>"; } } if ($method == 3) { echo "------------------------<br>"; echo "Testing PDO(all available drivers)...<br>"; $dsn = null; try { foreach (PDO::getAvailableDrivers() as $driver) { if ($driver == "odbc") { $driver = "odbc:Driver={SQL Server}"; } $driver .= ":"; $dsn = $driver."Server=$host,$port;Database=$base"; if ($driver == "sqlsrv:") { $con = new PDO($dsn, $user, $pass, $options); if ($con) { echo "PDO $driver successfully connected!<br>"; $stmt = $con->prepare($q); $stmt->execute(); echo "Results of char_name:<br>"; while ($row = $stmt->fetch()) { echo "<pre>".$row['char_name']."</pre>"; } unset($con); unset($stmt); } } else if ($driver == "odbc:") { $con = new PDO($dsn, $user, $pass, $options); if ($con) { echo "PDO $driver successfully connected!<br>"; $stmt = $con->prepare($q); $stmt->execute(); echo "Results of char_name:<br>"; while ($row = $stmt->fetch()) { echo $row['char_name']."<br>"; } unset($con); unset($stmt); } } else if ($driver == "dblib:") { $con = new PDO($dsn, $user, $pass, $options); if ($con) { echo "PDO $driver successfully connected!<br>"; $stmt = $con->prepare($q); $stmt->execute(); echo "Results of char_name:<br>"; while ($row = $stmt->fetch()) { echo $row['char_name']."<br>"; } unset($con); unset($stmt); } } else echo $driver." Failed or will not be checked<br>"; } } catch (\PDOException $e) { echo $e->getMessage(). ' '.(int)$e->getCode(); } } if ($method == 4) { echo "------------------------<br>"; echo "Testing mysqli_connect()...<br>"; try { if (function_exists('mysqli_connect')) { $con = mysqli_connect("p:".$host.":1433", $user, $pass, $base); if ($con) { echo "mysqli_connect() successfully connected!" . PHP_EOL; echo "Host information: " . mysqli_get_host_info($con) . PHP_EOL; } else { echo "mysqli_connect() failed to connect!" . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging error: " . mysqli_connect_error() . PHP_EOL; } mysqli_close($con); } else { echo "mysqli_connect() function is not available.<br />"; } } catch (Exception $e) { echo "mysqli_connect() Failed to connect! ".$e->getMessage()."<br>"; } } if ($method == 5) { echo "------------------------<br>"; echo "Testing sqlsrv_connect()...<br>"; try { if (function_exists('sqlsrv_connect')) { $con = sqlsrv_connect($host, array("Database" =>$base, "UID" => $user, "PWD" => $pass)); if ($con) { echo "sqlsrv_connect() successfully connected!<br>"; if(($result = sqlsrv_query($con, $q)) !== false) { echo "Results of char_name:<br>"; while($obj = sqlsrv_fetch_object($result)) { echo "<pre>".$obj->char_name."</pre>"; } } } else { print_r(sqlsrv_errors(), true); echo "sqlsrv_connect() failed to connect!<br>"; } //sqlsrv_close($con); } else { echo "sqlsrv_connect() function is not available.<br />"; } } catch (Exception $e) { echo "qlsrv_connect() Failed to connect! ".$e->getMessage()."<br>"; } } } echo phpinfo(); this will show you if the HOST you are on will make the panel finally work since this tester is for my panel with payment functions ignore the PASS/FAIL messages focus on the connection PS : OVH is not a host for this panel
