Лазя по ai.nask, наткнулся на чудесный код.
Корейцы! КРАСАВЦЫ!
Код:
handler:
EventHandler ATTACKED( attacker )
{
if( attacker.builder_level > 0 && attacker.builder_level <= 3 )
{
if( gg::OwnItemCount( attacker, @adena ) == 133 )
{
myself::InstantZone_Enter( attacker, Day_InstantZone_ID, 0 );
}
else if( gg::OwnItemCount( attacker, @adena ) == 1331 )
{
myself::InstantZone_Enter( attacker, Night_InstantZone_ID,
Day_EnterType_P );
}
else if( gg::OwnItemCount( attacker, @adena ) == 1332 )
{
myself::InstantZone_Enter( attacker, Night_InstantZone_ID,
Day_EnterType_M );
}
else if( gg::OwnItemCount( attacker, @adena ) == 114 )
{
myself::InstantZone_Enter( attacker, Night_InstantZone_ID, 0 );
}
else if( gg::OwnItemCount( attacker, @adena ) == 1141 )
{
myself::InstantZone_Enter( attacker, Night_InstantZone_ID,
Night_EnterType );
}
else if( gg::OwnItemCount( attacker, @adena ) == 135 )
{
myself::InstantZone_Enter( attacker, Day_83_InstantZone_ID, 0 );
}
}
}
Корейцы! КРАСАВЦЫ!