From 9ee3021b76768e0580c4591f1b7e1b54f891e26f Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 24 Feb 2019 00:52:42 +0900 Subject: [PATCH] =?UTF-8?q?NPC=20=EA=B5=B0=EC=A3=BC=EB=8A=94=20=EC=9C=A0?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=20=EC=88=98=EB=87=8C=EC=97=90=EA=B2=8C=20?= =?UTF-8?q?=EC=99=B8=EA=B5=90=EA=B6=8C=EC=9E=90=20=EA=B6=8C=ED=95=9C=20?= =?UTF-8?q?=EB=B6=80=EC=97=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index d58a120f..5ac18199 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -1416,6 +1416,10 @@ function Promotion($nation, $level) { $query = "update general set level={$i2} where no='{$level['no']}'"; MYDB_query($query, $connect) or Error("Promotion_02 ".MYDB_error($connect),""); } + + $db->update('general', [ + 'permission'=>'ambassador', + ], 'nation=%i AND npc < 2 AND level > 4', $nation); } function TaxRate($nation) {