Код:
//*********************************************//2010-5-20
//*********************************************
class 1 noble_maker : citizen
{
handler:
EventHandler TALKED(talker){
myself::ShowPage(talker,"your_htm.htm");
}
EventHandler MENU_SELECTED(talker,ask,reply)
{
if(ask == 541 && reply == 1 )
{
if(talker.level >= 75 && talker.subjob_id != 0)
{
myself::GiveItem1(talker, @nobless_tiara ,1);
myself::SetNobless(talker);
myself::ShowPage(talker,"noble_success_your_htm.htm");
myself::SoundEffect(talker,"ItemSound.quest_finish");
}
else
{
myself::ShowPage(talker,"nobless_no_your_htm.htm");
}
}
if(ask == 541 && reply == 2)
{
if(talker.level>75 && talker.subjob_id == 0)
{
myself::GiveItem1(talker, @mimirs_elixir, 1);
myself::SetOneTimeQuestFlag( talker, @water_of_mimir, 1 );
myself::SoundEffect( talker, "ItemSound.quest_finish" );
myself::ShowPage(talker,"subclass_success_your_htm.htm");
}
else
{
myself::ShowPage(talker,"subclass_no_your_htm.htm");
}
}
}
}