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

  • 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

Posted

THANK YOU SO MUCH!


if ( getcharid(2) == $koegid && getguildmasterid( getcharid(2) ) == getcharid(0) )
Zeny += 1000; // configure prize here

btw i have 1 more suggestion.., can u warp the players out after they died?

Posted

btw i have 1 more suggestion.., can u warp the players out after they died?

I thought I have already *gvgon the "guild_vs1" ?

in a gvg mapflag, the players are immediately warp out after they die

Posted (edited)

 

btw i have 1 more suggestion.., can u warp the players out after they died?

I thought I have already *gvgon the "guild_vs1" ?

in a gvg mapflag, the players are immediately warp out after they die

 

thanks.. but now problem is guildmate able to hit self's guildmate=.= .. same guild can hit each other

also may i ask the prizes is belong to winner or who survival in the emp room?

Edited by donkeyg
Posted

thanks.. but now problem is guildmate able to hit self's guildmate=.= .. same guild can hit each other

try check is guild_vs1 having a pvp mapflag or not

though, it should display on the map-server.exe console if conflicted

also may i ask the prizes is belong to winner or who survival in the emp room?

the prize gives to all guild member survive in the room

http://hercules.ws/board/topic/4495-king-of-emperium-hill/?p=29343

seriously ... you just have to scroll down a little bit of that topic and you'll find your answer ...

Posted
On 9/3/2014 at 11:08 PM, AnnieRuru said:

 

On 9/3/2014 at 10:21 PM, donkeyg said:

thanks.. but now problem is guildmate able to hit self's guildmate=.= .. same guild can hit each other

try check is guild_vs1 having a pvp mapflag or not

though, it should display on the map-server.exe console if conflicted

On 9/3/2014 at 10:21 PM, donkeyg said:

also may i ask the prizes is belong to winner or who survival in the emp room?

the prize gives to all guild member survive in the room

http://hercules.ws/board/topic/4495-king-of-emperium-hill/?p=29343

seriously ... you just have to scroll down a little bit of that topic and you'll find your answer ...

 

 

if ( getcharid(2) == $koegid && getguildmasterid( getcharid(2) ) == getcharid(0) )
getitem 671, 10;
getitem 675, 10;
Zeny += 10000000; // configure prize here

is this correct if i wan to reward to guild master only... and also 1 questions.. what if the guild leader is not inside the room after the KoE ended? will the guild master able to go in and get the reward from npc??

or maybe u can make it auto transfer the item to the guild leader inventory..

Posted

I am actually writing koe version 2,

which makes the castle belongs to the one holding for the longest instead of last minute conquer

after release version 2, will come back to this one

Posted

I am actually writing koe version 2,which makes the castle belongs to the one holding for the longest instead of last minute conquerafter release version 2, will come back to this one

which makes the castle belongs to the one holding for the longest instead of last minute conquer

That's Great idea which I really want it!

Posted

I am actually writing koe version 2,

which makes the castle belongs to the one holding for the longest instead of last minute conquer

after release version 2, will come back to this one

waiting for your good news annie!

Posted

I am actually writing koe version 2,

which makes the castle belongs to the one holding for the longest instead of last minute conquer

after release version 2, will come back to this one

The problem of this version: One superior guild could hold the first 31 Mintutes and leave after this time :/

A good friend of mine is currently writing a similar modification for a KoE script. (Don't know if he uses yours)

Our idea was to implement a point-system in KoE.

So that KoE is interesting from the first to the last minute.

Points (for example):

- for each holding minute 1 point

- for each take 5 points

- holding in the end 15 points

The guild with the most points will win KoE.

I'll link him this thread.

  • Upvote 1
Posted (edited)

I am actually writing koe version 2,

which makes the castle belongs to the one holding for the longest instead of last minute conquer

after release version 2, will come back to this one

The problem of this version: One superior guild could hold the first 31 Mintutes and leave after this time :/

A good friend of mine is currently writing a similar modification for a KoE script. (Don't know if he uses yours)

Our idea was to implement a point-system in KoE.

So that KoE is interesting from the first to the last minute.

Points (for example):

- for each holding minute 1 point

- for each take 5 points

- holding in the end 15 points

The guild with the most points will win KoE.

I'll link him this thread.

The problem of this version: One superior guild could hold the first 31 Mintutes and leave after this time :/

(I think so...)

Points (for example):

- for each holding minute 1 point

- for each take 5 points

- holding in the end 15 points

WOW....More creative idea...

I support this idea..

Edited by Darkpurple
Posted

Our idea was to implement a point-system in KoE.

So that KoE is interesting from the first to the last minute.

Points (for example):

- for each holding minute 1 point

- for each take 5 points

- holding in the end 15 points

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

Posted (edited)
 

 

Our idea was to implement a point-system in KoE.
So that KoE is interesting from the first to the last minute.

Points (for example):
- for each holding minute 1 point
- for each take 5 points
- holding in the end 15 points

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

 

 

 

 

Any news for this , Master AnnieRuru   /yawn  /lv

Edited by Darkpurple

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