วิธีการเพิ่มคำสั่งให้กับผู้เล่นธรรมดา
ขั้นตอนการเพิ่มคำสั่ง (เซิฟตัวเก่า ตั้งแต่ 2010 ลงไป )
- ให้ทำการเปิดไฟล์ conf/
atcommand_athena.conf
ยกตัวอย่างนะครับจะปรับให้ผู้เล่นธรรมดาสามารถใช้ @load ได้
ให้หา [ หรือกด Ctrl + f แล้วพิมคำที่ต้องการไป ]
// Warps you to your last save point (2 same commands).
load: 40,40 // เปลี่ยนตรงนี้นะจ๊ะ
แก้เป็น
// Warps you to your last save point (2 same commands).
load: 0,40
แค่นี้ผู้เล่น ธรรมดาก็สามารถใช้คำสั่ง @load ได้แล้วจ้า
**เกร็ดความรู้เล็กๆน้อยๆ ตัวเลขด้านหน้าจะแทนด้วย @ ตัวเลขด้านหลัง , จะแทนด้วย #
load: 40,40 <- @load , #load ชื่อเพลเยอร์ (ถ้า # ถูกตั้งเป็น 0 ผู้เล่นธรรมดาใช้ได้ มันก็แกล้งกัน) (ถ้า @ คือใช้เข้าตัวเองเท่านั้น)
ขั้นตอนการเพิ่มคำสั่ง
- ให้ทำการเปิดไฟล์ conf/groups.conf
- ให้ทำการค้นหา
id: 0 /* group 0 is the default group for every new account */ Gruop Id 0 นะครับสำหรับผู้เล่นทั่วไป
groups: (
{
id: 0 /* group 0 is the default group for every new account */
name: "Player"
level: 0
inherit: ( /*empty list*/ )
commands: {
/* no commands by default */
}
permissions: {
/* without this basic permissions regular players could not
trade or party */
can_trade: true
can_party: true
}
},
- เอาล่ะ เราจะทำการยกตัวอย่างการเพิ่ม @autoloot, @autotrade, @time, @die, @save, @load นะครับ
- ก็ให้เราเพิ่มเข้าไปในส่วนของ commands: โดยใส่ไว้ภายในปีกกาของ command นั้นครับ ตัวอย่างเมื่อทำการใส่ คำสั่งทั้งหมดลงไป
groups: (
{
id: 0 /* group 0 is the default group for every new account */
name: "Player"
level: 0
inherit: ( /*empty list*/ )
commands: {
/* no commands by default */
autoloot: true
autotrade: true
time: true
die: true
save: true
load: true
}
permissions: {
/* without this basic permissions regular players could not
trade or party */
can_trade: true
can_party: true
}
},
*** สังเกตุในส่วนที่เพิ่มเข้ามาก็จะมีแต่เฉพาะส่วนของ command เท่านั้นครับ
- เรียบร้อยหลังจากนั้นให้ save และเข้าเกมส์โดยสามารถรีโหลดคำสั่งให้ใช้งานได้โดยการ @reloadatcommand ครับผม
เสร็จเรียบร้อยสำหรับการเพิ่มคำสั่งให้กับผู้เล่นธรรมดา