Jump to content
  • 0

AnnieRuru's KoE script.


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  


        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
Link to comment
Share on other sites

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

On 9/2/2014 at 12:26 AM, AnnieRuru said:

use the same npc script

but patch using this

koe_0.3ar.diff

how to use .diff in rathena?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  03/05/19
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

use the same npc script

but patch using this

koe_0.3ar.diff

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

use the same npc script

but patch using this

attachicon.gifkoe_0.3ar.diff

tq .. hwo do i change the prize to zeny instead of item?

 

and also reward to GUILD MASTER only

Edited by donkeyg
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

http://hercules.ws/board/topic/4495-king-of-emperium-hill/

ahhh ... I mean, download the script from the topic at hercules, not rathena

rathena one is outdated

// KoE Exit
guild_vs1,49,56,5	script	Exit#KoE	51,{
	mes "[Exit]";
	mes "See ya.";
	close2;
	warp "Save",0,0;
	if ( getcharid(2) == $koegid )
		Zeny += 1000; // configure prize here
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

http://hercules.ws/board/topic/4495-king-of-emperium-hill/

ahhh ... I mean, download the script from the topic at hercules, not rathena

rathena one is outdated

 

// KoE Exit
guild_vs1,49,56,5	script	Exit#KoE	51,{
	mes "[Exit]";
	mes "See ya.";
	close2;
	warp "Save",0,0;
	if ( getcharid(2) == $koegid )
		Zeny += 1000; // configure prize here
	end;
}

how about to guild master only?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

if ( getcharid(2) == $koegid && getguildmasterid( getcharid(2) ) == getcharid(0) )

Zeny += 1000; // configure prize here

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

 

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

 

 

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

use the same npc script

but patch using this

attachicon.gifkoe_0.3ar.diff

how do i disable ally in koe and why sanctuary skill cant heal the emperium during KoE??

 

 

im using annieruru script

 

bump

bumppppppp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

Try to create an own mapflag gvg_noally.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Try to create an own mapflag gvg_noally.

are u sure gvg_noally << this mapflag is working?? i couldnt found it on google about this mapflag command

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

There is no such mapflag. That's why you need to create it by yourself.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

There is no such mapflag. That's why you need to create it by yourself.

do u have other way to make it disable ally bro?

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