Jump to content
  • 0
Budots

KOE script help

Question

Hi guys,

Can you edit my King Of Emperium script because the guild that break the emperium can still hit it again and again. I want that when a particular guild breaks the emperium they cant hit it anymore, or shall we say they need to defend it. Not to break it again.

 

And in addition, please distribute the prizes to each of the members of the KOE winning guild.

 

 

A billion of thanks. clear.png/no1 /no1 /no1 /no1 /no1

KOE.txt

Edited by GM Montoy
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

 

 

Hi guys,

Can you edit my King Of Emperium script because the guild that break the emperium can still hit it again and again. I want that when a particular guild breaks the emperium they cant hit it anymore, or shall we say they need to defend it. Not to break it again.

 

And in addition, please distribute the prizes to each of the members of the KOE winning guild.

 

 

A billion of thanks. clear.png/no1 /no1 /no1 /no1 /no1

 

You need this : Click

 

 

I can't clearly determine what topic should i see, can you do me a favor? post here the specific topic that might solve my problem? thanks in advance

 

 

 

Just add those and recompile,  Credit goes to : ~AnnieRuru~

 

 

Don't forget to add these: and remember to add this line in db\castle_db.txt

100,guild_vs1,koe,koe,1

Add this patch

Index: battle.c
===================================================================
--- battle.c	(revision 14826)
+++ battle.c	(working copy)
@@ -3341,6 +3341,13 @@
 	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)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
+			( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) )
+		return 0;
+	}
+
 	switch( target->type )
 	{ // Checks on actual target
 		case BL_PC:
Index: battle.h
===================================================================
--- battle.h	(revision 14826)
+++ battle.h	(working copy)
@@ -3,6 +3,7 @@
 
 #ifndef _BATTLE_H_
 #define _BATTLE_H_
+#include "mapreg.h"
 
 // state of a single attack attempt; used in flee/def penalty calculations when mobbed
 typedef enum damage_lv {
Link to comment
Share on other sites

Hi guys,

Can you edit my King Of Emperium script because the guild that break the emperium can still hit it again and again. I want that when a particular guild breaks the emperium they cant hit it anymore, or shall we say they need to defend it. Not to break it again.

 

And in addition, please distribute the prizes to each of the members of the KOE winning guild.

 

 

A billion of thanks. clear.png/no1 /no1 /no1 /no1 /no1

 

You need this : Click

Link to comment
Share on other sites

 

Hi guys,

Can you edit my King Of Emperium script because the guild that break the emperium can still hit it again and again. I want that when a particular guild breaks the emperium they cant hit it anymore, or shall we say they need to defend it. Not to break it again.

 

And in addition, please distribute the prizes to each of the members of the KOE winning guild.

 

 

A billion of thanks. clear.png/no1 /no1 /no1 /no1 /no1

 

You need this : Click

 

 

I can't clearly determine what topic should i see, can you do me a favor? post here the specific topic that might solve my problem? thanks in advance

Link to comment
Share on other sites

Hi guys,

Can you edit my King Of Emperium script because the guild that break the emperium can still hit it again and again. I want that when a particular guild breaks the emperium they cant hit it anymore, or shall we say they need to defend it. Not to break it again.

 

And in addition, please distribute the prizes to each of the members of the KOE winning guild.

 

 

A billion of thanks. clear.png/no1 /no1 /no1 /no1 /no1

 

The bold color red will be fixed.

Link to comment
Share on other sites

 

Hi guys,

Can you edit my King Of Emperium script because the guild that break the emperium can still hit it again and again. I want that when a particular guild breaks the emperium they cant hit it anymore, or shall we say they need to defend it. Not to break it again.

 

And in addition, please distribute the prizes to each of the members of the KOE winning guild.

 

 

A billion of thanks. clear.png/no1 /no1 /no1 /no1 /no1

 

The bold color red will be fixed.

 

Hi sir im having hard time configuring hehehe

Can you teach me how to put this one and make it work

Index: battle.c
===================================================================
--- battle.c    (revision 14826)
+++ battle.c    (working copy)
@@ -3341,6 +3341,13 @@
    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)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
+            ( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) )
+        return 0;
+    }
+
    switch( target->type )
    { // Checks on actual target
        case BL_PC:
Index: battle.h
===================================================================
--- battle.h    (revision 14826)
+++ battle.h    (working copy)
@@ -3,6 +3,7 @@

#ifndef _BATTLE_H_
#define _BATTLE_H_
+#include "mapreg.h"

// state of a single attack attempt; used in flee/def penalty calculations when mobbed
typedef enum damage_lv {
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.