fight_the_fallen Posted December 22, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 35 Reputation: 0 Joined: 04/22/12 Last Seen: January 18, 2014 Share Posted December 22, 2012 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? Quote Link to comment Share on other sites More sharing options...
fight_the_fallen Posted December 24, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 35 Reputation: 0 Joined: 04/22/12 Last Seen: January 18, 2014 Author Share Posted December 24, 2012 so no one knows how? awesome Quote Link to comment Share on other sites More sharing options...
ICEROCK Posted December 24, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 228 Reputation: 33 Joined: 11/15/12 Last Seen: July 22, 2016 Share Posted December 24, 2012 Sorry, I dont really understand what exactly do you want. Please be more specific. Quote Link to comment Share on other sites More sharing options...
fight_the_fallen Posted December 30, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 35 Reputation: 0 Joined: 04/22/12 Last Seen: January 18, 2014 Author Share Posted December 30, 2012 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 Quote Link to comment Share on other sites More sharing options...
Euphy Posted December 30, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted December 30, 2012 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! Quote Link to comment Share on other sites More sharing options...
fight_the_fallen Posted December 31, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 35 Reputation: 0 Joined: 04/22/12 Last Seen: January 18, 2014 Author Share Posted December 31, 2012 thank you Euphy Quote Link to comment Share on other sites More sharing options...
Question
fight_the_fallen
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.