/**
* @param pledgeType the Id of the pledge type.
* @return the maximum number of members allowed for a given {@code pledgeType}.
*/
public int getMaxNrOfMembers(int pledgeType)
{
int limit = 2;
switch (pledgeType)
{
case 0:
switch (getLevel())
{
case 3:
limit = 2;
break;
case 2:
limit = 2;
break;
case 1:
limit = 2;
break;
case 0:
limit = 2;
break;
default:
limit = 2;
break;
}
break;
case -1:
limit = 2;
break;
case 100:
case 200:
switch (getLevel())
{
case 11:
limit = 2;
break;
default:
limit = 2;
break;
}
break;
case 1001:
case 1002:
case 2001:
case 2002:
switch (getLevel())
{
case 9:
case 10:
case 11:
limit = 2;
break;
default:
limit = 2;
break;
}
break;
default:
break;
}
return limit;
}
My initial plan was to port the Homunculus system from Live 502 to ClassicAden 502. But, when the interface for Homunculus is enabled, it has some hardcoded function that tries to load the dat files which leads to a crash since those files dont exist in ClassicAden. I was hoping to do some injection hoping, forcing the client to load the files.
Question
Amanda55
Where i make max 2 clan members
/** * @param pledgeType the Id of the pledge type. * @return the maximum number of members allowed for a given {@code pledgeType}. */ public int getMaxNrOfMembers(int pledgeType) { int limit = 2; switch (pledgeType) { case 0: switch (getLevel()) { case 3: limit = 2; break; case 2: limit = 2; break; case 1: limit = 2; break; case 0: limit = 2; break; default: limit = 2; break; } break; case -1: limit = 2; break; case 100: case 200: switch (getLevel()) { case 11: limit = 2; break; default: limit = 2; break; } break; case 1001: case 1002: case 2001: case 2002: switch (getLevel()) { case 9: case 10: case 11: limit = 2; break; default: limit = 2; break; } break; default: break; } return limit; }Don't work
ty for help
15 answers to this question
Recommended Posts