Jump to content
  • 0

KOE script help


Budots

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  248
  • Reputation:   34
  • Joined:  11/19/11
  • Last Seen:  

 

 

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  248
  • Reputation:   34
  • Joined:  11/19/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

 

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


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

After i do those things, what changes would it make from my KOE ? Sorry for this silly question this is new for me. /panic


BUMP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  248
  • Reputation:   34
  • Joined:  11/19/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

 

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  248
  • Reputation:   34
  • Joined:  11/19/11
  • Last Seen:  

Hi,

 

Pm me your battle.c and battle.h i'll add those, :)

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...