orange Posted January 31, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Share Posted January 31, 2013 (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 January 31, 2013 by orange Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 16, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 16, 2013 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; } 1 Quote Link to comment Share on other sites More sharing options...
Capuche Posted January 31, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted January 31, 2013 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; byif( !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. Quote Link to comment Share on other sites More sharing options...
orange Posted February 1, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted February 1, 2013 thanks a lot!! i ll try it out Quote Link to comment Share on other sites More sharing options...
orange Posted February 5, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted February 5, 2013 is it the same for woe SE castle also? Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 8, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 8, 2013 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; } Quote Link to comment Share on other sites More sharing options...
orange Posted February 12, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted February 12, 2013 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. i am no able to teleport. please help me out. Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 12, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 12, 2013 (edited) I think it's because of "#flag_Ar05_1", it must be "#flag_ar05_1" (my mistake). Change for all of them Edited February 12, 2013 by Capuche Quote Link to comment Share on other sites More sharing options...
orange Posted February 12, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted February 12, 2013 i changed as per your previous post but i am still getting the same error both in rachel and yuno. Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 12, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 12, 2013 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) Quote Link to comment Share on other sites More sharing options...
orange Posted February 13, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted February 13, 2013 Replace getmapxy( .@map$, .@x, .@y, 1, strnpcinfo(1) +"#flag_sc01_1" );bygetmapxy( .@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 errorplss see my guild_flags.txt Quote Link to comment Share on other sites More sharing options...
Capuche Posted February 13, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted February 13, 2013 getmapxy( .@map$, .@x, .@y, 1, "#Ar01_Flag" ); Maybe the # ? Quote Link to comment Share on other sites More sharing options...
orange Posted February 14, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted February 14, 2013 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. Quote Link to comment Share on other sites More sharing options...
orange Posted February 16, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted February 16, 2013 *bump* Quote Link to comment Share on other sites More sharing options...
orange Posted April 13, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Author Share Posted April 13, 2013 thanks a lot capuche its 100% working now. and sorry for the late reply. Quote Link to comment Share on other sites More sharing options...
Question
orange
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 orangeLink to comment
Share on other sites
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.