Jump to content
  • 0

woe warp with map flag


Question

Posted (edited)

hello guys

well all of us know we have agit flags in the respective cities

can we make them clickable so that the player who clicks on them gets a message saying " do u want toteleport to this castle" and if we select yes then we get tped outside that castle

Edited by orange

14 answers to this question

Recommended Posts

Posted

It's just a matter of lowercase/uppercase for some NPC name ( castle 4 and 5 for yuno and rachel )

 

yuno,109,167,5	script	Himinn	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "Sc01_Flag" );
	warp .@map$, .@x, .@y;
	end;
 
OnAgitInit2:
OnRecvCastlesc01:
	FlagEmblem GetCastleData("schg_cas01",1);
	end;
}
 
yuno,110,171,5	script	Andlangr	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "Sc02_Flag" );
	warp .@map$, .@x, .@y;
	end;
 
OnAgitInit2:
OnRecvCastlesc02:
	FlagEmblem GetCastleData("schg_cas02",1);
	end;
}
 
yuno,111,175,5	script	Viblainn	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "Sc03_Flag" );
	warp .@map$, .@x, .@y;
	end;
 
OnAgitInit2:
OnRecvCastlesc03:
	FlagEmblem GetCastleData("schg_cas03",1);
	end;
}
 
yuno,112,179,5	script	Hljod	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "sc04_Flag" );
	warp .@map$, .@x, .@y;
	end;
 
OnAgitInit2:
OnRecvCastlesc04:
	FlagEmblem GetCastleData("schg_cas04",1);
	end;
}
 
yuno,114,183,5	script	Skidbladnir	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "sc05_Flag" );
	warp .@map$, .@x, .@y;
	end;
 
OnAgitInit2:
OnRecvCastlesc05:
	FlagEmblem GetCastleData("schg_cas05",1);
	end;
}
 
// Arunafeltz
rachel,124,120,3	script	Mardol	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "Ar01_Flag" );
	warp .@map$, .@x, .@y;
	end;
 
OnAgitInit2:
OnRecvCastlear01:
	FlagEmblem GetCastleData("arug_cas01",1);
	end;
}
 
rachel,136,120,5	script	Cyr	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "Ar02_Flag" );
	warp .@map$, .@x, .@y;
 
	end;
 
OnAgitInit2:
OnRecvCastlear02:
	FlagEmblem GetCastleData("arug_cas02",1);
	end;
}
 
rachel,138,126,6	script	Horn	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "Ar03_Flag" );
	warp .@map$, .@x, .@y;
 
	end;
 
OnAgitInit2:
OnRecvCastlear03:
	FlagEmblem GetCastleData("arug_cas03",1);
	end;
}
 
rachel,135,131,7	script	Gefn	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "ar04_Flag" );
	warp .@map$, .@x, .@y;
 
	end;
 
OnAgitInit2:
OnRecvCastlear04:
	FlagEmblem GetCastleData("arug_cas04",1);
	end;
}
 
rachel,124,130,1	script	Banadis	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "ar05_Flag" );
	warp .@map$, .@x, .@y;
 
	end;
 
OnAgitInit2:
OnRecvCastlear05:
	FlagEmblem GetCastleData("arug_cas05",1);
	end;
}
  • Upvote 1
Posted

For each files aldeg_cas01, aldeg_cas02 etc... in npc/guild/ folder find the NPC below

// Guild Flag (Inside Castle)
//============================================================
For example in aldeg_cas03.txt
- script Nuernberg#3::InsideFlagsA3 722,{
end;

OnRecvCastleA03:
FlagEmblem GetCastleData("aldeg_cas03",1);
end;
}
For each NPC replace the first end; by
if( !getmapflag( strnpcinfo(4),mf_town ) ) end;
if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;

getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#2" );
warp .@map$, .@x, .@y;
end;
No more.

(Like that for example)

// Guild Flag (Inside Castle)
//============================================================
- script Nuernberg#3::InsideFlagsA3 722,{

if( !getmapflag( strnpcinfo(4),mf_town ) ) end;
if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;

getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#2" );
warp .@map$, .@x, .@y;
end;

OnRecvCastleA03:
FlagEmblem GetCastleData("aldeg_cas03",1);
end;
}

When a player click on the flag in town, he can warp outside the castle.

Posted

No it's a bit more complicated

Find npc\guild2\guild_flags.txt. For each NPC add


   if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;

   getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );
   warp .@map$, .@x, .@y;
   end;

with #flag_sc01_1 relate to schg_cas01, #flag_sc02_1 relate to schg_cas02, etc..

flag_Ar01_1 relate to arug_cas01 etc..

for example, #flag_sc01_1 for castle 1 ( 'coz FlagEmblem GetCastleData("schg_cas01",1); inside this NPC)

yuno,109,167,5    script    Himinn    722,{

   if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;

   getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );
   warp .@map$, .@x, .@y;
   end;

OnAgitInit2:
OnRecvCastlesc01:
   FlagEmblem GetCastleData("schg_cas01",1);
   end;
}

Posted

No it's a bit more complicated

Find npc\guild2\guild_flags.txt. For each NPC add

if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );warp .@map$, .@x, .@y;end;
with #flag_sc01_1 relate to schg_cas01, #flag_sc02_1 relate to schg_cas02, etc..

flag_Ar01_1 relate to arug_cas01 etc..

for example, #flag_sc01_1 for castle 1 ( 'coz FlagEmblem GetCastleData("schg_cas01",1); inside this NPC)

yuno,109,167,5 script Himinn 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlesc01:FlagEmblem GetCastleData("schg_cas01",1);end;}
The following is my npc\guild2\guild_flags.txt

 

//===== rAthena Script =======================================//= War of Emperium Second Edition//===== By: ==================================================//= L0ne_W0lf//===== Current Version: =====================================//= 1.0//===== Compatible With: =====================================//= rAthena SVN//===== Description: =========================================//= WoE SE Guild Flags in Juno and Rachel//===== Additional Comments: =================================//= 1.0 First Version [L0ne_W0lf]//============================================================// Junoyuno,109,167,5 script Himinn 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlesc01:FlagEmblem GetCastleData("schg_cas01",1);end;}yuno,110,171,5 script Andlangr 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc02_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlesc02:FlagEmblem GetCastleData("schg_cas02",1);end;}yuno,111,175,5 script Viblainn 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc03_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlesc03:FlagEmblem GetCastleData("schg_cas03",1);end;}yuno,112,179,5 script Hljod 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc04_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlesc04:FlagEmblem GetCastleData("schg_cas04",1);end;}yuno,114,183,5 script Skidbladnir 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc05_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlesc05:FlagEmblem GetCastleData("schg_cas05",1);end;}// Arunafeltzrachel,124,120,3 script Mardol 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_Ar01_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlear01:FlagEmblem GetCastleData("arug_cas01",1);end;}rachel,136,120,5 script Cyr 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_Ar02_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlear02:FlagEmblem GetCastleData("arug_cas02",1);end;}rachel,138,126,6 script Horn 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_Ar03_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlear03:FlagEmblem GetCastleData("arug_cas03",1);end;}rachel,135,131,7 script Gefn 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_Ar04_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlear04:FlagEmblem GetCastleData("arug_cas04",1);end;}rachel,124,130,1 script Banadis 722,{if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_Ar05_1" );warp .@map$, .@x, .@y;end;OnAgitInit2:OnRecvCastlear05:FlagEmblem GetCastleData("arug_cas05",1);end;}
and i am getting this error in my putty.

saxhma.jpg

i am no able to teleport. please help me out.

Posted

Replace

getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );

by

getmapxy( .@map$, .@x, .@y, 1, "Sc01_Flag" );

"Sc02_Flag" etc.. for yuno

"Ar01_Flag" for rachel

yuno,109,167,5    script    Himinn    722,{
   if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
   getmapxy( .@map$, .@x, .@y, 1, "Sc01_Flag" );
   warp .@map$, .@x, .@y;
   end;

OnAgitInit2:
OnRecvCastlesc01:
   FlagEmblem GetCastleData("schg_cas01",1);
   end;
}

I test it now and it works (sorry)

Posted

Replace

getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );
by
getmapxy( .@map$, .@x, .@y, 1, "Sc01_Flag" );
"Sc02_Flag" etc.. for yuno

"Ar01_Flag" for rachel

yuno,109,167,5	script	Himinn	722,{
	if( select( "^777777~ Warp to "+ strnpcinfo(1) +" ?:~ Cancel^000000" ) -1 ) close;
 
	getmapxy( .@map$, .@x, .@y, 1, "Sc01_Flag" );
	warp .@map$, .@x, .@y;
	end;
 
OnAgitInit2:
OnRecvCastlesc01:
	FlagEmblem GetCastleData("schg_cas01",1);
	end;
}
I test it now and it works (sorry)
i think i am going wrong somewhere cuz i am still getting the error

plss see my guild_flags.txt

Posted

ok i just tried and its really weird.

 

i cannot use the flag to teleport to mardol , banadis and gefn agits. when i click on these flags i get the error i should u above.

 

but i can teleport properly to horn and Cyr agits using the flag

 

same in yuno also.

 

i can  teleport to Himinn , andlangr and viblainn agits using the flag. but i cannot teleport to Hijod and skidbladnir agits usingthe flags.

 

it is really weird.

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