Screwdriver Posted February 13, 2013 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 52 Reputation: 0 Joined: 01/05/13 Last Seen: July 1, 2016 Share Posted February 13, 2013 (edited) I'm trying to create my own custom castle, but using an existing map, I already duplicated it and have it working. My problem is how could I add the mapflags and have the guild emblem show when the castle is taken? I've attempted this on my own, but I get an warning saying a guild castle isn't set for my map. Any help would be greatly appreciated! ~Thank you very much! Edited February 13, 2013 by Screwdriver Quote Link to comment Share on other sites More sharing options...
Brian Posted February 13, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted February 13, 2013 Define the map as a castle in trunk/db/castle_db.txt You will also need to edit trunk/npc/guild/agit_main.txt Search for these sections: // Add custom Guild Castles here and add the appropriate info for your map (emp coordinates, monster spawns, donpcevent, guild town warp coordinates, guardian coordinates, guild dungeon warp coordinates, treasure mob_id/coordinates, etc.) Quote Link to comment Share on other sites More sharing options...
Screwdriver Posted February 13, 2013 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 52 Reputation: 0 Joined: 01/05/13 Last Seen: July 1, 2016 Author Share Posted February 13, 2013 Define the map as a castle in trunk/db/castle_db.txt You will also need to edit trunk/npc/guild/agit_main.txt Search for these sections: // Add custom Guild Castles here and add the appropriate info for your map (emp coordinates, monster spawns, donpcevent, guild town warp coordinates, guardian coordinates, guild dungeon warp coordinates, treasure mob_id/coordinates, etc.) Thank you , I have a question For this line; Agit_Main.txt else if (strnpcinfo(2) == "CASTLE") { donpcevent "::OnRecvCastlePt01"; } Would I use my own ::ONEvent, or use an existing one? Quote Link to comment Share on other sites More sharing options...
Brian Posted February 13, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted February 13, 2013 You would have to create a new label name (ex: ":OnRecvCastleMy01"), and then when you copy one of the guild castle scripts (like trunk/npc/guild/aldeg_cas01.txt), set the label name in that file too. Quote Link to comment Share on other sites More sharing options...
Screwdriver Posted February 13, 2013 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 52 Reputation: 0 Joined: 01/05/13 Last Seen: July 1, 2016 Author Share Posted February 13, 2013 (edited) You would have to create a new label name (ex: ":OnRecvCastleMy01"), and then when you copy one of the guild castle scripts (like trunk/npc/guild/aldeg_cas01.txt), set the label name in that file too. SOLVED Edited February 13, 2013 by Screwdriver Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 13, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 13, 2013 http://www.eathena.ws/board/index.php?s=&showtopic=147492&view=findpost&p=960352 it was discovered back in 2008 precisely honestly, once I found out directly modify the source in 2011, I no longer doing this castle modification because of Agitstart/AgitEnd able to control them Quote Link to comment Share on other sites More sharing options...
Question
Screwdriver
I'm trying to create my own custom castle, but using an existing map, I already duplicated it and have it working.
My problem is how could I add the mapflags and have the guild emblem show when the castle is taken?
I've attempted this on my own, but I get an warning saying a guild castle isn't set for my map.
Any help would be greatly appreciated!
~Thank you very much!
Edited by ScrewdriverLink to comment
Share on other sites
5 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.