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 :)

  • 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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...