> For the complete documentation index, see [llms.txt](https://custom-rathena.gitbook.io/site/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://custom-rathena.gitbook.io/site/guide/magic-drain.md).

# ระบบ Magic Drain

**\[ ตั้งค่า ระบบ** Magic Drain **]**

* bonus2 bMagicHPDrainRate,x,n;  // สกิลเวทย์ดูด HP

* bonus2 bMagicSPDrainRate,x,n;  // สกิลเวทย์ดูด SP

* ตัวอย่างใช้กับไอเทมสวมใส่

* ผลลัพธ์ มีโอกาส 10% ได้รับ HP 5% จากดาเมจเวทย์ที่ทำได้

* ผลลัพธ์ มีโอกาส 10% ได้รับ SP 5% จากดาเมจเวทย์ที่ทำได้

<div align="left"><figure><img src="https://234137584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEsMPtn5O6VbBbwmzsQaw%2Fuploads%2FKCij0PTeLBR36OjRCpAW%2F%E0%B8%A0%E0%B8%B2%E0%B8%9E.png?alt=media&amp;token=3331cb0e-beea-4a35-b9fb-924b56213bfc" alt=""><figcaption></figcaption></figure></div>
