Jump to content
  • 0
Sign in to follow this  
utofaery

H>why did it spitting this out???

Question

Spoiler

/* db\castle_db.txt
99,guild_vs2,guild_vs2 Test Castle,test flag,1
*/


guild_vs2,52,52,4	script	testflag	GUILD_FLAG,{
	dispbottom "=========================";
	.@gid = getcastledata("guild_vs2", 1); //CD_GUILD_ID == rathena ,  1 == hercules
	dispbottom "owner of the castle : "+( ( .@gid )? "["+ getguildname(.@gid) +"]" : "<none>" );
	dispbottom "agit check : "+( ( agitcheck() )?"on":"off" );
	dispbottom "gvg_castle mapflag : "+( ( getmapflag( strcharinfo(PC_MAP), mf_gvg_castle )?"on":"off" ) );
	dispbottom "=========================";
	end;

OnInit:
	if ( agitcheck() == true )
//	if ( agitcheck() == false && !getcastledata("guild_vs2", 1) || agitcheck() == true )
		donpcevent strnpcinfo(0)+"::OnAgitStart";
	setmapflag "guild_vs2", mf_gvg_castle;
	flagemblem getcastledata("guild_vs2", 1);

		setarray .map_woe0$, // yours woe map
			"aldeg_cas01", "aldeg_cas02", "aldeg_cas03", "aldeg_cas04", "aldeg_cas05", 
			"gefg_cas01", "gefg_cas02", "gefg_cas03", "gefg_cas04", "gefg_cas05", 
			"payg_cas01", "payg_cas02", "payg_cas03", "payg_cas04", "payg_cas05", 
			"prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05", 
			"arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05",
			"schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05",
		"guild_vs2";
		.size_map = getarraysize( .map_woe0$ );
	setarray .mob,


//		1646,3, // Lord Knight Seyren
//		1647,3, // Assassin Cross Eremes
//		1648,3, // Whitesmith Harword
//		1649,3, // High Priest Magaleta
//		1650,3, // Sniper Shecil
//		1651,3, // High Wizard Katrinn

//		2235,3, // Paladin Randel
//		2236,3, // Creator Flamel
//		2237,3, // Professor Celia
//		2238,3, // Champion Chen
//		2239,3, // Stalker Gertie
//		2240,3, // Clown Alphoccio
//		2241,3; // Gypsy Trentini



		1031, 3, //Poporing
		1062, 3, //Santa Poring
		1090, 3, //Mastering
//		1096, 3, //Angeling
		1113, 3, //Drops
//		1120, 3, //Ghostring
		1242, 3, //Marin
		1388, 3, //Arc Angeling
//		1582, 3, //Deviling
		1613, 3, //Metaling
		1784, 3, //Stapo
		2093, 3, //Botaring
		1002, 3; //Poring

	.mobsize = getarraysize(.mob);

	end;
OnEmpBreak:
	announce "The Emperium has fallen", bc_map|bc_woe;
	killmonster strnpcinfo(4), strnpcinfo(0)+"::OnGuardianDead";
	setcastledata "guild_vs2", 1, getcharid(2);
	donpcevent "::OnRecvCastle123";
	maprespawnguildid "guild_vs2", getcharid(2), 2;
	sleep 7000;
	if ( agitcheck() == false ) end;

OnAgitStart:

	.@mobid = monster("guild_vs2",49,49,"EMPERIUM",1288,1,strnpcinfo(NPC_NAME)+"::OnEmpBreak");
	setunitdata .@mobid, UDT_HP, 5;
	setunitdata .@mobid, UDT_MAXHP, 5;

	for( .@x = 0; .@x < getarraysize( .map_woe0$ ); .@x++ ) {
		if ( getcastledata(.map_woe0$[.@x], 1) ) {
			for ( .@i = 0; .@i < .mobsize; .@i += 2 ) {
				guardian .map_woe0$[.@x], 0, 0, "--ja--", .mob[.@i], strnpcinfo(0)+"::OnGuardianDead";
			}
		} else {
			for ( .@i = 0; .@i < .mobsize; .@i += 2 ) 
				monster .map_woe0$[.@x], 0,0, "--ja--", .mob[.@i], .mob[.@i +1], strnpcinfo(0)+"::OnGuardianDead";
		}
	}

	end;
OnAgitEnd:
	killmonster strnpcinfo(4), strnpcinfo(0)+"::OnEmpBreak";
	killmonster strnpcinfo(4), strnpcinfo(0)+"::OnGuardianDead";

	for( .@i = 0; .@i < .size_map; .@i++ ) {
		sleep2 1;
		killmonsterall .map_woe0$[.@i];
	}

	end;
OnGuardianDead:
	if (getmapflag(strcharinfo(PC_MAP), mf_gvg) == true) {
		if ( getcastledata( strcharinfo(PC_MAP), 1 ) ) {
			guardian strcharinfo(PC_MAP), 0,0,"--ja--", killedrid, strnpcinfo(0)+"::OnGuardianDead";
		} else {
			monster strcharinfo(PC_MAP), 0,0, "--ja--", killedrid, 1, strnpcinfo(0)+"::OnGuardianDead";
		}
	}
	end;

OnAgitInit:
	requestguildinfo getcastledata("guild_vs2", 1);
OnRecvCastle123:
	flagemblem getcastledata("guild_vs2", 1);
	end;
OnGuildBreak:
	setcastledata "guild_vs2", 1, 0;
	donpcevent "::OnRecvCastle123";
	end;
}

 

As we know that Thursday is emperium war day...

on server start map server spiting multiple error of  these few lines may be 30 or more time.

[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: strcharinfo (1 parameter):
[Debug]: Data: constant name='PC_MAP' value=3
[Debug]: Source (NPC): testflag at guild_vs2 (52,52)

[Status]: NPC_Event:[OnAgitStart] Run (49) Events by @AgitStart.  << and then it ends here..

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Spoiler

1st off, you modified the script
https://rathena.org/board/topic/118187-h-inserting-this-script-to-woe2/?do=findComment&comment=357391
originally it wasn't like that

2nd, first edition woe use OnAgitStart:, second edition woe use OnAgitStart2:
on rathena (only), training edition woe use OnAgitStart3:
and you break that part again

and 3rd, why did you put monsters on unconquered map again, when the official script already did the same thing ???

 

so the answer to your question is, I have absolutely no idea what you are doing

ok, read back the topic in rathena, I actually know what you are trying to make
but your script totally ruined it, and I have no idea where to start fixing that ... it just a total mess

so by the information what I gotten are ...
1. you just want to have guardians roaming in conquered castle
2. "guild_vs2" custom castle is actually not part of the code you want (I provide the template, and you failed to understand the template)

is that correct ?
its much easier if I have spoon feed from the beginning

Share this post


Link to post
Share on other sites
  • 0
On 2/14/2019 at 11:19 PM, AnnieRuru said:
  Reveal hidden contents

1st off, you modified the script
https://rathena.org/board/topic/118187-h-inserting-this-script-to-woe2/?do=findComment&comment=357391
originally it wasn't like that

2nd, first edition woe use OnAgitStart:, second edition woe use OnAgitStart2:
on rathena (only), training edition woe use OnAgitStart3:
and you break that part again

and 3rd, why did you put monsters on unconquered map again, when the official script already did the same thing ???

 

so the answer to your question is, I have absolutely no idea what you are doing

ok, read back the topic in rathena, I actually know what you are trying to make
but your script totally ruined it, and I have no idea where to start fixing that ... it just a total mess

so by the information what I gotten are ...
1. you just want to have guardians roaming in conquered castle
2. "guild_vs2" custom castle is actually not part of the code you want (I provide the template, and you failed to understand the template)

is that correct ?
its much easier if I have spoon feed from the beginning

Yes woe script is messy for me to get my hand on .. its a web hard to know where to where..

1 original guardian

+ extra guardian (auto respawn)               Was meant for harder woe conquering.

If not conquer can it be spawned too?

With auto respawn.

 

2 correcto..I fail to get the point of it.

If you will do show me how will I merge those extra part into the woe-fe and worse script.  

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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