Originally posted by [b]GodLesZ[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1315
CODE
if (select("Invest in commercial growth:Cancel") == 1) {
mes "[ "+getarg(0)+" ]";
if (Zeny < .@eco_invest) {
mes "I'm sorry but there is not enough zeny to invest in the reserves of guild. You have failed to invest, Master.";
return 0;
}
set zeny,zeny-.@eco_invest;
SetCastleData getarg(1),4,GetCastleData(getarg(1),4)+1;
SetCastleData getarg(1),2,.@Economy + 1 + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
mes "We have finished investing safely. I expect in our coming days, the growth level will increase.";
return 0;
}
QUOTE
SetCastleData getarg(1),2,.@Economy + 1 + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014));
should be
rand(1) for 50% Chance
This post has been edited by GodLesZ: Apr 4 2008, 09:45 AM