Jump to content
  • 0

[SORTED OUT] diff event KOE


Yukaiii

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   9
  • Joined:  11/20/13
  • Last Seen:  

Como vocês estão, meus amigos?
Pessoal, estou com problemas para aplicar o evento koe diff..
Estou recebendo esses erros, alguém pode me dizer como consertar isso?

 

imagem.thumb.png.82ecf6632e68150565d32b118adce2e2.png

Citar

// ===== rAthena Patch ========================================
/ / = Rei da Colina Emperium
// ===== Por: ==================================== ===============
// = AnnieRuru
// ===== Versão Atual: ===================== ================
// = 1.2
// ===== Compatível com: ==================== ================= 
// = rAthena 08/04/2018
// ===== Descrição: ================ =========================
// = impedir que o proprietário da guilda atinja o império repetidamente
// ===== Tópico === ============================================
// = http: //herc.ws/board/topic/4495-king-of-emperium-hill/
// ===== Comentários adicionais: ==================== =============  
// = finalmente um patch para este script popular
// ====================================== ======================

 db/castle_db.txt | 2 ++
 src/map/battle.cpp | 7 +++++++
 src/map/battle.hpp | 1 +
 3 arquivos alterados, 10 inserções (+)

diff --git a/db/castle_db.txt b/db/castle_db.txt
index ceb74dd..0fc8231 100644
--- a/db/castle_db.txt
+++ b/db/castle_db.txt
@@ -60,3 +60,5 @@
 41,te_prtcas03,Gloria 3,Manager_TE#Wigner
 42,te_prtcas04,Gloria 4,Manager_TE#Heine
 43,te_prtcas05,Gloria 5,Manager_TE#Nerious
+
+100,guild_vs1,King of Emperium Hill,koe
\ No newline at end of file
diff --git a/src/map/battle.cpp b/src/map/battle.cpp
index e845c5e..4234ba7 100644
--- a/src/map/battle.cpp
+++ b/src/map/battle.cpp
@@ -7643,6 +7643,13 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
     if( (s_bl = battle_get_master(src)) == NULL )
         s_bl = src;
 
+    if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {
+        struct map_session_data *sd = BL_CAST( BL_PC, s_bl );
+        if ( ( ( (TBL_MOB*)target )->mob_id == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
+            ( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) )
+        return 0;
+    }
+
     if ( s_bl->type == BL_PC ) {
         switch( t_bl->type ) {
             case BL_MOB: // Source => PC, Target => MOB
diff --git a/src/map/battle.hpp b/src/map/battle.hpp
index b5fe7d4..f8e8908 100644
--- a/src/map/battle.hpp
+++ b/src/map/battle.hpp
@@ -10,6 +10,7 @@
 #include "../config/core.h"
 
 #include "map.hpp" //ELE_MAX
+#include "mapreg.hpp"
 
 //declaração fwd
 struct map_session_data;

 

Edited by Yukaiii
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  39
  • Reputation:   30
  • Joined:  06/08/23
  • Last Seen:  

in your battle.hpp check where the error pointed.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  79
  • Reputation:   1
  • Joined:  06/22/23
  • Last Seen:  

Hello message me if u need KoE 2.0 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   9
  • Joined:  11/20/13
  • Last Seen:  

Does anyone know how to inform?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...