Jump to content

Recommended Posts

Posted

I didn't share the HTML's nor scripts just NASC code. Have fun!

 

NASC

 

//*********************************************
//Code by Rey for Maxcheaters.com
//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");
}
     }
}
 
}

 

If you like it give a nice comment and karma :)

Posted

That's really nice, glad to see some activity at OFF sections aswell.

 

+1 karma.

  • 3 weeks later...
Posted

hi,rej222,i want to create a npc,it could be change char class,include char Race...like Spellsinger->Elder....

one player could change 3 times and need some items to do this,i dont know how to do that?if u could give me some hints,i really appreciate.

Posted

EventHandler CLASS_CHANGE_REQUESTED(talker,occupation_name_id)

{

myself::ClassChange( talker, occupation_name_id );

myself::SoundEffect( talker, "ItemSound.quest_fanfare_2" );

myself::ShowPage( talker, fnAfterClassChange );

}

 

check this out.. ill make one later when i have some spare time maybe

 

occupation_name_id = class ID

Posted

EventHandler CLASS_CHANGE_REQUESTED(talker,occupation_name_id)

{

myself::ClassChange( talker, occupation_name_id );

myself::SoundEffect( talker, "ItemSound.quest_fanfare_2" );

myself::ShowPage( talker, fnAfterClassChange );

}

 

check this out.. ill make one later when i have some spare time maybe

 

occupation_name_id = class ID

god,rly tnx man...ill try to check it out...

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..