Jump to content
  • 0

Duplicate Castle


Screwdriver

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   0
  • Joined:  01/05/13
  • Last Seen:  

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! /no1

Edited by Screwdriver
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   0
  • Joined:  01/05/13
  • Last Seen:  

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 /meh

For this line;

Agit_Main.txt

else if (strnpcinfo(2) == "CASTLE") { donpcevent "::OnRecvCastlePt01"; }

Would I use my own ::ONEvent, or use an existing one?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   0
  • Joined:  01/05/13
  • Last Seen:  

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 by Screwdriver
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
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.   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.

×
×
  • Create New...