Jump to content
  • 0

AnnieRuru's KoE script.


Question

Posted (edited)

        CC      script.c
        CC      storage.c
        CC      skill.c
        CC      atcommand.c
        CC      battle.c
battle.c: In function ‘battle_check_target’:
battle.c:6602: error: ‘TBL_MOB’ has no member named ‘class_’
battle.c:6603: error: ‘mapreg’ undeclared (first use in this function)
battle.c:6603: error: (Each undeclared identifier is reported only once
battle.c:6603: error: for each function it appears in.)
battle.c:6603: error: ‘script’ undeclared (first use in this function)
make[1]: *** [obj_sql/battle.o] Error 1
make[1]: Leaving directory `/home/sg04/trunk/src/map'
make: *** [map] Error 2
Recompile failed. Please check again.
 

 

http://rathena.org/board/topic/91479-how-to-change-the-time-of-koe-event-every-saturday/?p=240761



i follow the guide 100% no wrong...

i get error when i compile the server.. please help.

my Battle.c
 

m = target->m;


//t_bl/s_bl hold the 'master' of the attack, while src/target are the actual
//objects involved.
if( (t_bl = battle_get_master(target)) == NULL )
t_bl = target;


if( (s_bl = battle_get_master(src)) == NULL )
s_bl = src;


if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {
TBL_PC *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( script->add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) )
return 0;
}
my battle.h
#ifndef _BATTLE_H_
#define _BATTLE_H_


#include "../common/mmo.h"
#include "../config/core.h"
#include "map.h" //ELE_MAX
#include "mapreg.h"
 
Edited by donkeyg

Recommended Posts

Posted
On 10/5/2014 at 5:13 AM, Elsa Mist said:

in your trunk/conf/battle/guild.conf

search for this 

// Can the 'Glory of Guild' skill be learnt in the Guild window,

// and does changing emblems require it? (Note 1)

// P.S: This skill is not implemented on official servers

require_glory_guild: no

 

// Limit Guild alliances. Value is 0 to 3.

// If you want to change this value, clear the guild alliance table.

// Default is 3

max_guild_alliance: set to 0 ro disable guild ally

 

make sure if your server already have a exist guild ally query your sql to delete all guild ally in your phpmyadmin SQL table named guild_alliance.

:)

 

erm... i wan to enable ally in guild woe.. but i just wan disable ally in KoE.. can help me?

bump

Posted (edited)

i use Annieruru Script in herculus and input follow introduction and it error after compile

 

but patch using this
attachicon.gifkoe_0.3ar.diff

 

mod no found 1288 error in putty =( Annie ruru can help me up on this?

rAthena 17339

Edited by jimmyyheah
  • 0
Posted
On 9/9/2014 at 1:15 AM, AnnieRuru said:

no I haven't started yet, I'm kinda busy for another 1~2 more days

( I was busy from last friday until this wednesday )

so if you already seen a script like this, its not mine

but I can write this one out when I have a good free time, probably on thursday

your idea certainly looks good, ima going to use your idea, +1 rep

Hi @AnnieRuru good day.

Do you have any script related to this? mind to share? ?

thanks in advance

 

  • 0
Posted

sorry to bump on this but i just wanted to ask how can this script choose location for each guild

prontera,155,191,4	script	The King#KoE	1_M_MERCHANT,{
	mes "[The King]";
	if ( !getcharid(2) ) {
		mes "You must have a guild to participate in the ^FF0000King of Emperium Hill Tournament^000000.";
		close;
	}
	mes "Hello.";
	mes "Would you like to participate in the ^FF0000King of Emperium Hill Tournament^000000?";
	if ( select ( "Yes", "No" ) == 2 ) close;
	if ( !getvariableofnpc( .start, "KoE" ) ) close;
	switch( rand(1,4) ){
	case 1:	warp "koe", 14, 17; end;
	case 2:	warp "koe", 14, 84; end;
	case 3:	warp "koe", 85, 84; end;
	case 4:	warp "koe", 85, 16; end;
	}
}

is it possible?

 

thanks in advance

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...