Jump to content
metin2dev

Weles

Members
  • Content count

    29
  • Joined

  • Last visited

Community Reputation

8 Neutral

About Weles

  • Rank
    Neutral

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Weles

    [HowTo]Items with the effect of use

    No no, item proto any id and wearflag always this same (128)
  2. Weles

    Free site + protect www server

    Topic repaired - magic doubling the content
  3. Warning!: The site is vulnerable to SQLi attacks - if someone wants to, he can rewrite the page as follows: https://youtu.be/DXji_JiuTdo I do not know if this is the right forum section I also recommend adding a captcha for registration, login and display of the full ranking. The site also has an advanced administrator system. Website (one change - 99% of original files from BombWorkStudio): https://www23.zippyshare.com/v/eo4JElK4/file.html Scan: https://www.virustotal.com/#/file-analysis/YzJjNDUyOGY0MzJlZGI5ZDgwMWFlYWVmMzBmYzE0OGY6MTUzMDQ2NDcwNQ== Layout: https://www.mpcforum.pl/applications/core/interface/imageproxy/imageproxy.php?img=http://i.imgur.com/jySgsmk.jpg&key=6f9f51e6dc2b4695eef338e253b46d36f714e9f3ae3b035c720b15909e791c07 Web server protection against two idiots (Internet terror - DejmieN & Komar1911) ## CHECKING IP, WHICH MAKE THE BIGGEST ATTACKS ## cat /var/log/apache2/access.log |awk '{print $1}' |sort |uniq -c |sort -n ## CHECKING IPs WHICH MAKE THE BIGGEST ATTACKS AND BLOCKING THEIR ## FILE=/var/log/apache2/access.log; for ip in `cat $FILE |cut -d ' ' -f 1 |sort |uniq`; do { COUNT=`grep ^$ip $FILE |wc -l`; if [[ "$COUNT" -gt "500" ]]; then iptables -A INPUT -s $ip -j DROP; fi }; done Where 500 - is responsible for the number of connections from one ip - after exceeding this number, the bot will be blocked. ## DISPLAYING ALL IP ADDRESSES AND NUMBER OF ATTACKS FROM ANY IP ## FILE=/var/log/apache2/access.log; for ip in `cat $FILE |cut -d ' ' -f 1 |sort |uniq`; do { COUNT=`grep ^$ip $FILE |wc -l`; if [[ "$COUNT" -gt "500" ]]; then echo "$COUNT : $ip"; fi }; done ## BLOCKING ENTRIES ON THE WEBSITE + CLOUDFLARE UNLOCKING ## iptables -A INPUT -s YOUR_IP_MACHINE_THAT_YOU_WILL_PROTECT -j DROP iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP ip6tables -A INPUT -p tcp -m multiport --dports http,https -j DROP You enter the IP addresses one by one https://www.cloudflare.com/ips-v4 iptables -I INPUT -p tcp -m multiport --dports http,https -s HERE_IPV4_ADRESS -j ACCEPT https://www.cloudflare.com/ips-v6 iptables -I INPUT -p tcp -m multiport --dports http,https -s HERE_IPV6_ADRESS -j ACCEPT ## CONFIGURATION jail.local - FAIL2BAN ## [apache] enabled = true filter = apache-auth action = iptables-multiport[name=auth, port="http,https"] logpath = /var/log/apache2/access.log bantime = 9600 maxretry = 1 ignoreip = 103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17 [apache-badbots] enabled = true filter = apache-badbots action = iptables-multiport[name=badbots, port="http,https"] logpath = /var/log/apache2/access.log bantime = 9600 maxretry = 1 ignoreip = 103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17 [apache-noscript] enabled = true filter = apache-noscript action = iptables-multiport[name=noscript, port="http,https"] logpath = /var/log/apache2/access.log bantime = 9600 maxretry = 1 ignoreip = 103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17 [apache-overflows] enabled = true filter = apache-overflows action = iptables-multiport[name=overflows, port="http,https"] logpath = /var/log/apache2/access.log bantime = 9600 maxretry = 1 ignoreip = 103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17 Where ignoreip is responsible for IP addresses CLOUDFLARE ## BLOCKING EMPTY GETS VIA .htaccess ## RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^-?$ RewriteRule ^ - [F]
  4. Weles

    [HowTo]Items with the effect of use

    @amosth Hey you need to do the tutorial again just changing the name, e.g. "IsWELESRing1" to "IsWELESRing2"
  5. Weles

    open Compile source error

    The solution to your problem is easier than you think. Find: if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON) #ifdef __CHANGELOOK_SYSTEM__ DWORD dwRes = GetTransmutation() != 0 ? GetTransmutation() : GetVnum(); m_pOwner->SetPart(PART_WEAPON, dwRes); #else m_pOwner->SetPart(PART_WEAPON, GetVnum()); #endif Change: if (m_wCell == INVENTORY_MAX_NUM + WEAR_WEAPON) #ifdef __CHANGELOOK_SYSTEM__ { DWORD dwRes = GetTransmutation() != 0 ? GetTransmutation() : GetVnum(); m_pOwner->SetPart(PART_WEAPON, dwRes); } #else m_pOwner->SetPart(PART_WEAPON, GetVnum()); #endif And your problem will disappear
  6. Hi, if I have activated autopotion after switching to the mount it turns off, but the effect of launching (in the inventory) stays - does not heal. I tried to fix it with every way I knew, it did not help. This happens only with autopotion sp. Any ideas? I have a mount system for a costume slot.
  7. Raylee this is not it.
  8. U must change one funcion in uitooltip. U must change one funcion in uitooltip.
  9. /// UserInterface -> Packet.h /// Search: SE_EQUIP_RAMADAN_RING, Add below: SE_EQUIP_WELES_RING1, /// UserInterface -> InstanceBase.h /// Search: EFFECT_RAMADAN_RING_EQUIP, Add below: EFFECT_WELES_RING1_EQUIP, /// UserInterface -> PythonCharacterManagerModule.cpp /// Search: PyModule_AddIntConstant(poModule, "EFFECT_RAMADAN_RING_EQUIP", CInstanceBase::EFFECT_RAMADAN_RING_EQUIP); Add below: PyModule_AddIntConstant(poModule, "EFFECT_WELES_RING1_EQUIP", CInstanceBase::EFFECT_WELES_RING1_EQUIP); /// UserInterface -> PythonNetworkStreamPhaseGameItem.cpp /// Search: case SE_EQUIP_RAMADAN_RING: effect = CInstanceBase::EFFECT_RAMADAN_RING_EQUIP; break; Add below: case SE_EQUIP_WELES_RING1: effect = CInstanceBase::EFFECT_WELES_RING1_EQUIP; break; /// game/src -> char_item.cpp /// Search: if (true == CItemVnumHelper::IsRamadanMoonRing(dwVnum)) { this->EffectPacket(SE_EQUIP_RAMADAN_RING); } Add below: else if (true == CItemVnumHelper::IsWELESRing1(dwVnum)) { this->EffectPacket(SE_EQUIP_WELES_RING1); } /// game/src -> item.cpp /// Search: if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum()) || true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum())) Add to the function: || true == CItemVnumHelper::IsWELESRing1(GetVnum()) Example: if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum()) || true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum()) || true == CItemVnumHelper::IsWELESRing1(GetVnum())) /// common -> leght.h /// Search: SE_EQUIP_RAMADAN_RING, Add below: SE_EQUIP_WELES_RING1, /// common -> VnumHelper.h /// Search: static const bool IsRamadanMoonRing(DWORD vnum) { return 71135 == vnum; } Add below: static const bool IsWELESRing1(DWORD vnum) { return YOUR_ID == vnum; } /// root -> playersettingsmodule.py /// Search: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_RAMADAN_RING_EQUIP, "", "d:/ymir work/effect/etc/buff/buff_item1.mse") Add below: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_WELES_RING1_EQUIP, "", "d:/ymir work/effect/etc/buff/your_effect.mse") /// item_proto /// Type: 16 Subtype: 0 WearFlags: 128
  10. Weles

    open Client problem

    1220 15:57:14586 :: 'SafeboxWindow' object has no attribute 'BindInterface' 1220 15:57:40490 :: 'Interface' object has no attribute 'wndGameButton' 1220 15:57:40875 :: 'NoneType' object has no attribute 'SetMapName' 1220 15:57:40880 :: 'NoneType' object has no attribute 'RefreshQuickSlot' These are your mistakes. I have no idea what you did.
  11. Weles

    DEV to fix Sash

    @Preet What is not working?
×