Jump to content
metin2dev

Leaderboard


Popular Content

Showing content with the highest reputation on 11/24/2017 in all areas

  1. 1 point
    uitooltip.py Search: elif 0 != isCostumeItem: self.__AppendLimitInformation() if app.ENABLE_SASH_SYSTEM: if isCostumeSash: replace with: elif 0 != isCostumeItem: self.__AppendLimitInformation() if app.ENABLE_SASH_SYSTEM: if itemVnum >= 85001 and itemVnum <= 85024:
  2. 1 point
  3. 1 point
    Dear metin2dev community, please don't bother us for taking down the forum for ~2 hours. We wanted to implement some changes which were discussed here. Please excuse that we didn't have time for everything - more changes (eg. changes to our rules) will follow soon. Changes to our sections: Questions & Answers (link) You now have the ability to up-vote answers to every question. The topic creator now can set a "best answer" which will be shown first. All other answers are ordered by their up-votes. Added predefined prefixes "open" & "solved" to show other members the state of your question. Please set them according to your question state. Tech Section (link) We're removing this section completely. As you can see we started with this in this maintenance but because we want to clear everything inside this section and put every topic at its proper place, this will take some more time. You can help us by reporting questions which are still in the remaining sections. But please don't post new stuff there, we created the appropriate sections in the Release Section. Private Servers (link) We removed the ability to receive points on your overall content count. Releases (link) We removed the sub-section "Scripts". Why? Keep reading! As mentioned before, we're removing the Tech Section. In the course of this we added three new sub-sections to the Release Section. General Moved all topics of "Maps", "Hosting" & "Security" to "General" Programming / Scripts Moved all topics of "Scripts" to "Programming". We also had the idea to move "Quests" there, but it will stay where it was/is. Operating Systems Moved all topics of "Linux" and "FreeBSD" of the old Tech Section to the new Section. Notice: We changed the order of the sub-sections and might do this again in the future. The front page We added some blocks to the sidebar so you can see better if there is something new: Rules News We extended the statistics footer with post and topic counts. We now have more languages than english! English Polish Romanian German French Spanish If you want to help us: We need someone which is able to translate our rules to those languages and also some front end strings like our section names and descriptions. Write us a private message if you're interested! Introducing: the Advanced Tags- and Prefixes-System Because we want to improve the forum, we bought the "Advanced Tags & Prefixes" add-on which got installed in this maintenance. With it you now should have a better overview over topics inside a specific section. Also you can easily filter for a specific prefix by clicking on it. We removed to add custom tags in some sections so you're forced to set an appropriate prefix. All prefixes for one section are now shown on the main page of metin2dev - additionally to this the current prefix which is set for a specific topic will be shown next to its name on every page of metin2dev. All changes mentioned here will be done in another maintenance for other sections too. If you want to know more about this add-on please don't hesitate to ask us or visit the plugins' page here. If you encounter any problems/errors after this maintenance please send us a private message so we can fix that. Please also write us if you have any idea to improve this site - or even if you don't like something here. We would be happy to hear from you! Sincerely, the metin2dev administration @.PolluX & @DevChuckNorris
  4. 1 point
    hello, come here let some scripts that I have been collecting over time... Some were developed by me and others kept some server files. Status: #!/bin/sh kk=$(netstat -nlp udp | grep -w 13000 | wc -l) if [ $kk = 1 ] then echo -e "033[32m n on033[0m" else echo -e "033[33m n off033[0m" >> syslogg /metin2/live/canal1_1/game & echo -e "033[32m n on Novamente033[0m" >> syslogg fi Status2: #!/bin/sh cd php script/status.php Status2, php script: <?PHP include ("ip.php"); $portlist=array(3306); $i="0"; foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "mysqld: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "mysqld: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(22); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "sshd: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "sshd: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(15001); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "db: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "db: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(11002); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "auth: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "auth: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(13000); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel1_1: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel1_1: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(13001); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel1_2: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel1_2: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(16000); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel2_1: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel2_1: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(16001); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel2_2: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel2_2: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(19000); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel3_1: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel3_1: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(19001); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel3_2: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel3_2: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(22000); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel4_1: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel4_1: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(22001); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel4_2: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel4_2: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } $portlist=array(13099); foreach ($portlist as $port){ $online = @fsockopen($ip, $port, $errno, $errstr, 1); if (!$online) { echo "channel99_1: 033[31mDesligado033[0mn"; $onliner[$i] = "0"; } else { echo "channel99_1: 033[32mLigado033[0mn"; $onliner[$i] = "1"; } @fclose($online); $i++; } ?> optimizar db: #!/bin/sh mysqlcheck -uroot -ppassword --auto-repair --optimize account mysqlcheck -uroot -ppassword --auto-repair --optimize common mysqlcheck -uroot -ppassword --auto-repair --optimize log mysqlcheck -uroot -ppassword --auto-repair --optimize metin2_runup mysqlcheck -uroot -ppassword --auto-repair --optimize mysql mysqlcheck -uroot -ppassword --auto-repair --optimize player mysqlcheck -uroot -ppassword --auto-repair --optimize website reset metin2 user permissions: #!/bin/sh if [ $USER = root ]; then chmod -fR 755 /metin2 chown -fR metin2:metin2 /metin2 echo "As permições para o utilizador metin2 foram redefinidas." else echo "Só é possível utilizar o comando no utilizador root." fi game update: #!/bin/sh clear echo -e "033[31m Game Updaten sv1 1 - (1) Simn 2 - (2) Nao033[0m" read chs case $chs in 1*) rm /metin2/bin/game fetch http://127.0.0.0/dls/game chmod 777 /metin2/bin/game echo -e "033[31m n Update Realizado.033[0m" ;; 2*) echo -e "033[31m n Cancelado...033[0m" sleep 1 exit ;; esac Shutdown: #!/bin/sh if [ $USER = root ]; then shutdown -p now else echo "Só é possível utilizar o comando no utilizador root." fi Blockip: #!/bin/sh # Define aqui o endereço IP a bloquear IP=0.0.0.0 # Comando para bloquear o acesso ao endereço IP defenido if [ $USER = root ]; then if [ $IP = 0.0.0.0 ]; then echo "Erro: Não editaste o endereço IP. Faz o seguinte comando:" echo "ee /bin/blockip" echo "E edita o endereço IP a bloquear." else ipfw add deny ip from $IP to any echo "O endereço IP $IP foi bloqueado." fi else echo "Só é possível utilizar o comando no utilizador root." fi backup: #!/bin/sh echo "Os logs vao ser apagados..." rm -f */*/syserr && rm -f */*/syslog && rm -f */*/PTS && rm -f */*/game.core && rm -f */*/quest_mysql.core rm -f */syserr && rm -f */syslog && rm -f */PTS && rm -f */game.core && rm -f */quest_mysql.core echo "Logs apagados!" cd /mt2/backups mkdir `date +%d.%m.%Y_%H.%m` cd `date +%d.%m.%Y_%H.%m` sleep 2 tar cfzv game.tar.gz /metin2/live sleep 2 tar cfzv mysql.tar.gz /var/db/mysql sleep 2 echo "Copia Realizada." I hope you give way
×