accolade
°¡ÀÔÀÏ: 2005³â 06¿ù 11ÀÏ
°Ô½Ã¹°: 3
ÁÖ ¼Ò: ¼¿ï ¸¶Æ÷±¸ âÀüµ¿
|
±Û ÀÛ¼º½Ã°£ : 2005-06-25 Åä 10:52 am Á¦¸ñ: ½ºÅݳÀ̵µ¿¡ °üÇØ¼ ±Ã±ÝÇÑÁ¡ÀÌ ÀÖ½À´Ï´Ù. |
|
|
ÄÚµå :
//*****ÀÌ ºÎºÐÀ» 0.00 ¿¡¼ 1.00 °ªÀ¸·Î ¼öÁ¤Çϼ¼¿ä. ·±À¯¿À ±âº»°ªÀº 0À¸·Î ¼³Á¤µÇ¾îÀÖ½À´Ï´Ù. 1¿¡ °¡±î¿ï¼ö·Ï ½ºÅÈ ³À̵µ°¡ ½±´Ù°í »ý°¢ÇϽøéµË´Ï´Ù.********//
double StatGainBonus = 1.00; //Extra chance to gain in stats. Left at 0 would be default runuo gains.
//******************************************************************************************************************************************//
if ( from.StrLock == StatLockType.Up && ((info.StrGain / 33.3) + StatGainBonus) > Utility.RandomDouble() )
{
if( info.StrGain != 0 )
GainStat( from, Stat.Str );
}
else if ( from.DexLock == StatLockType.Up && ((info.DexGain / 33.3) + StatGainBonus) > Utility.RandomDouble() )
{
if( info.DexGain != 0 )
GainStat( from, Stat.Dex );
}
else if ( from.IntLock == StatLockType.Up && ((info.IntGain / 33.3) + StatGainBonus) > Utility.RandomDouble() )
{
if( info.IntGain != 0 )
GainStat( from, Stat.Int );
}
//following line used to show chance to gain stats ingame
//from.SendMessage( "Str: {0} Dex: {1} Int: {2}",((info.StrGain / 33.3) + StatGainBonus),((info.DexGain / 33.3) + StatGainBonus),((info.IntGain / 33.3) + StatGainBonus) );
}
ÀÌ ÄÚµå¿Í
ÄÚµå :
//*****ÀÌ ºÎºÐÀ» 0.00 ¿¡¼ 1.00 °ªÀ¸·Î ¼öÁ¤Çϼ¼¿ä. ·±À¯¿À ±âº»°ªÀº 0À¸·Î ¼³Á¤µÇ¾îÀÖ½À´Ï´Ù. 1¿¡ °¡±î¿ï¼ö·Ï ½ºÅÈ ³À̵µ°¡ ½±´Ù°í »ý°¢ÇϽøéµË´Ï´Ù.********//
double StatGainBonus = 1.00; //Extra chance to gain in stats. Left at 0 would be default runuo gains.
//******************************************************************************************************************************************//
if ( from.StrLock == StatLockType.Up && ((info.StrGain / 33.3) + StatGainBonus) > Utility.RandomDouble() )
{
if( info.StrGain != 1 )
GainStat( from, Stat.Str );
}
else if ( from.DexLock == StatLockType.Up && ((info.DexGain / 33.3) + StatGainBonus) > Utility.RandomDouble() )
{
if( info.DexGain != 1 )
GainStat( from, Stat.Dex );
}
else if ( from.IntLock == StatLockType.Up && ((info.IntGain / 33.3) + StatGainBonus) > Utility.RandomDouble() )
{
if( info.IntGain != 1 )
GainStat( from, Stat.Int );
}
//following line used to show chance to gain stats ingame
//from.SendMessage( "Str: {0} Dex: {1} Int: {2}",((info.StrGain / 33.3) + StatGainBonus),((info.DexGain / 33.3) + StatGainBonus),((info.IntGain / 33.3) + StatGainBonus) );
}
À§ µÎÄÚµåÀÇ Â÷ÀÌÁ¡Á» ¾Ë·ÁÁÖ¼¼¿ä.
Á¤È®È÷ ¸»Çϸé if( info.IntGain != 1 ) À̺κп¡´ëÇØ¼ ±Ã±ÝÇÕ´Ï´Ù. |
|