Jump to content
  • 0

changing guild treasure box spawns


fight_the_fallen

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  04/22/12
  • Last Seen:  

how would i go about changing the way treasure boxes spawn so when the treasure boxes spawn they have a chance of being a box that spawns in any other guild castle?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

Sorry, I dont really understand what exactly do you want. /oops

Please be more specific.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  04/22/12
  • Last Seen:  

well, aldebaran castles, payon castles, prontera castles, they each have different treasure boxes, they all drop different stuff. i want to change the spawn of the treasure in JUST prontera castles so the boxes that spawn could be a treasure box from ANY of the other castles.

say i spawn 4 chests, the normal amount, in Kriemhild, they would all be kriemhild specific chests. Now what i want to happen, is when the chests spawn in Kriemhild, lets go with 4 chests again, i can get one from a payon castle, or one from ANY other castle, just randomize which chests spawn.

i hope i cleared up any confusion

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

The spawns are located in trunk/npc/guild/agit_main.txt -- it's a little confusing, but here's how it works:

    // Set information
   ...
   else if (strnpcinfo(2) == "prtg_cas01") { // Castle map
       set .@treasurebox,1354; // boxID is this OR boxID+1 (e.g. 1354, 1355)
   ...
   // Spawn boxes in proper order.
   ... // You don't really need to know what this means, but this spawns the boxes.

So say you want Kriemhild to also randomly spawn Bright Arbor, Scarlet Palace, and Holy Shadow boxes (.@treasurebox == 1344, 1346, 1348 respectively). You would change "set .@treasurebox,1354;" into:

    setarray .@rand[0],1354,1344,1346,1348; // List of random boxes.
   set .@treasurebox,.@rand[getarraysize(.@rand)]; // Select a random boxID.

Edit that how you need it, and you're all set!

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