viewing paste topic/4745-e emperium_break_ladder_ | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
//===== Hercules Script ======================================
//= Emperium Breaker ladder
//===== By: ==================================================
//= AnnieRuru
//===== Current Version: =====================================
//= 1.0a
//===== Compatible With: =====================================
//= hercules 2018-06-10
//===== Description: =========================================
//= what is description ?
//===== Topic ================================================
//= http://herc.ws/board/topic/4745-emperium-breaker-ladder/
//===== Additional Comments: =================================
//= ... / ... | ... \ ...
//============================================================
 
 npc/woe-fe/agit_main.txt    | 1 +
 npc/woe-se/agit_main_se.txt | 1 +
 2 files changed, 2 insertions(+)
 
diff --git a/npc/woe-fe/agit_main.txt b/npc/woe-fe/agit_main.txt
index 5ac5b8e..c178688 100644
--- a/npc/woe-fe/agit_main.txt
+++ b/npc/woe-fe/agit_main.txt
@@ -101,6 +101,7 @@ OnStartArena:
 
 // The Emperium has been broken.
 OnAgitBreak:
+   query_sql "update `char` set empbreak = empbreak +1 where char_id = "+ getcharid(0);
    .@GID = getcharid(CHAR_ID_GUILD);
    // Show and log error if an unguilded player breaks the Emperium. (Should NEVER happen)
    if (.@GID <= 0) {
diff --git a/npc/woe-se/agit_main_se.txt b/npc/woe-se/agit_main_se.txt
index 6fc3193..f4d00a7 100644
--- a/npc/woe-se/agit_main_se.txt
+++ b/npc/woe-se/agit_main_se.txt
@@ -619,6 +619,7 @@ OnStop:
    end;
 
 OnStartArena:
+   query_sql "update `char` set empbreak = empbreak +1 where char_id = "+ getcharid(0);
    .@GID = getcharid(CHAR_ID_GUILD);
    .@region$ = (compare(strnpcinfo(NPC_MAP),"arug"))?"Valfreyja":"Nithafjoll";
    // Lower castle Economy
 
Viewed 3677 times, submitted by AnnieRuru.