class 1 delevel : citizen{
parameter:
string ShopName = "delevel.htm";
string fnHi = "delevel.htm";
property:
handler:
EventHandler MENU_SELECTED(talker,ask,reply)
{
if( ask == -1 )
{
if( reply == 1 )
{
if( (talker.level) >= 37 && talker.level <= 40)
{
if((myself::OwnItemCount( talker, 57 ) <= 10000))
{
myself::ShowPage( talker, "delevel_no.htm");
}
else
{
myself::DeleteItem1( talker, 57, 10000);
myself::IncrementParam( talker, @PARAM_EXP, -1511275834 );
myself::IncrementParam( talker, @PARAM_EXP, 4555796 ); //30
myself::ShowPage( talker, "delevel_ok.htm");
}
}
}
if( reply == 2 )
{
if( (talker.level) >= 47 && talker.level <= 50 )
{
if((myself::OwnItemCount( talker, 57 ) <= 10000))
{
myself::ShowPage( talker, "delevel_no.htm");
}
else
{
myself::DeleteItem1( talker, 57, 10000);
myself::IncrementParam( talker, @PARAM_EXP, -1511275834 );
myself::IncrementParam( talker, @PARAM_EXP, 15422929 ); //40
myself::ShowPage( talker, "delevel_ok.htm");
}
}
}
if( reply == 3 )
{
if( (talker.level) >= 57 && talker.level <= 60 )
{
if((myself::OwnItemCount( talker, 57 ) <= 10000))
{
myself::ShowPage( talker, "delevel_no.htm");
}
else
{
myself::DeleteItem1( talker, 57, 10000);
myself::IncrementParam( talker, @PARAM_EXP, -1511275834 );
myself::IncrementParam( talker, @PARAM_EXP, 40154162 ); //50
myself::ShowPage( talker, "delevel_ok.htm");
}
}
}
if( reply == 4 )
{
if( talker.level >= 67 )
{
if((myself::OwnItemCount( talker, 57 ) <= 10000))
{
myself::ShowPage( talker, "delevel_no.htm");
}
else
{
myself::DeleteItem1( talker, 57, 10000);
myself::IncrementParam( talker, @PARAM_EXP, -1511275834 );
myself::IncrementParam( talker, @PARAM_EXP, 126509653 ); //60
myself::ShowPage( talker, "delevel_ok.htm");
}
}
}
}
}
}