Screwdriver Posted February 13, 2013 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
Brian Posted February 13, 2013 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
Screwdriver Posted February 13, 2013 Author 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
Brian Posted February 13, 2013 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
Screwdriver Posted February 13, 2013 Author 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
AnnieRuru Posted February 13, 2013 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
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 Screwdriver5 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.