Issue information

Issue ID
#5352
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Feb 19, 2012 12:44
Last Post
Hercules Elf Bot
Mar 5, 2012 16:22
Confirmation
N/A

Hercules Elf Bot - Feb 19, 2012 12:44

Originally posted by [b]z3r0tech[/b]
I don't know if this belongs to core or in a script... thanks... pls. move thanks...

It does not increase the amount of treasure box appearing...

Hercules Elf Bot - Feb 20, 2012 1:59

Originally posted by [b]Brian[/b]
The formula that relates castle economy to # of treasure boxes is:

/trunk/npc/guild/agit_template.txt
[code]// Is there Economy in this castle?
set .@Treasure,GetCastleData(strnpcinfo(2),2)/5+4;
[/code]

That means you get a base of [b]4[/b] treasure boxes, and for every [b]5[/b] economy, 1 additional treasure box.

For example, economy = 9
[list]4 base + 9/5 additional
4 base + 1 additional
= 5 treasure boxes[/list]

Hercules Elf Bot - Feb 20, 2012 3:15

Originally posted by [b]z3r0tech[/b]
ah I see, does this formula effect when I invest more? on one agit? or should I change the values in the agit_template.txt?

thanks!

Hercules Elf Bot - Feb 20, 2012 4:32

Originally posted by [b]Brian[/b]
The code I posted is copy-pasted directly from [url="https://rathena.svn.sourceforge.net/svnroot/rathena/!svn/bc/15623/trunk/npc/guild/agit_template.txt"]agit_template.txt[/url]

If you wanted to edit how Economy affects the number of treasure boxes, yes just edit that formula. Changes will take effect after you restart the server or use @reloadscript.

Hercules Elf Bot - Feb 20, 2012 18:09

Originally posted by [b]z3r0tech[/b]
ok thanks!