fight_the_fallen Posted December 22, 2012 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
fight_the_fallen Posted December 24, 2012 Author Posted December 24, 2012 so no one knows how? awesome Quote
ICEROCK Posted December 24, 2012 Posted December 24, 2012 Sorry, I dont really understand what exactly do you want. Please be more specific. Quote
fight_the_fallen Posted December 30, 2012 Author 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
Euphy Posted December 30, 2012 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
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?
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.