[Release] Rebirth NPC [TitanMS v58 +]

Results 1 to 5 of 5
  1. #1
    Account Upgraded | Title Enabled! Buya is offline
    MemberRank
    Oct 2008 Join Date
    1,303Posts

    [Release] Rebirth NPC [TitanMS v58 +]

    for people that need one.... i've made a rebirth npc
    fixed script; credits to XxOsirisxX

    Code:
    void npc_main(NPC @npc){
          int state = npc.getState();
          if(state == 0){
          npc.addText("Do you want to rebirth?");
          npc.sendNext();
          } else if(state == 1){
          if(npc.getPlayer().getLevel() >= 200){ //Just in case server is 200+
            npc.getPlayer().setLevel(1);
            npc.getPlayer().setJob(0);
                npc.addText("Congratz you have rebirthed!");
          }else{
            npc.addText("You are not level 200!");
            npc.sendOK();
          }
          npc.end();
    }
    }
    enjoy!
    Last edited by Buya; 22-02-09 at 09:13 PM.


  2. #2
    Back? gmsinister is offline
    MemberRank
    Apr 2008 Join Date
    New YorkLocation
    1,655Posts

    Re: [Release] Rebirth NPC [TitanMS v58 +]

    thanks dude nice release, keep it up lol.

  3. #3
    Account Upgraded | Title Enabled! brianobb is offline
    MemberRank
    May 2008 Join Date
    Keon MS :DLocation
    508Posts

    Re: [Release] Rebirth NPC [TitanMS v58 +]

    good job buddy i still remember ur first repack i belive? wow that was a long time ago i was still using titan back then remember me?

  4. #4
    Account Upgraded | Title Enabled! Buya is offline
    MemberRank
    Oct 2008 Join Date
    1,303Posts

    Re: [Release] Rebirth NPC [TitanMS v58 +]

    Quote Originally Posted by gmsinister View Post
    thanks dude nice release, keep it up lol.
    thx

    Quote Originally Posted by brianobb View Post
    good job buddy i still remember ur first repack i belive? wow that was a long time ago i was still using titan back then remember me?
    my first repack... it was v55
    now i'm working on the new TitanMS
    and i will release more things like that
    and thx for comment

  5. #5
    Infraction Banned XxOsirisxX is offline
    MemberRank
    Jul 2008 Join Date
    2,456Posts

    Re: [Release] Rebirth NPC [TitanMS v58 +]

    Quote Originally Posted by buya View Post
    for people that need one.... i've made a rebirth npc
    here's the new script:

    Code:
    void npc_main(NPC @npc){
          int state = npc.getState();
          if(state == 0){
          npc.addText("Do you want to rebirth?");
          npc.sendNext();
          }
          else if(state == 1){
          if(npc.getPlayer().getLevel() == 200)
    	    npc.getPlayer().setLevel(1);
    	    npc.getPlayer().setJob(0);
          npc.addText("Congratz you have rebirthed!");
          npc.end();
          }
          if (npc.getPlayer().getLevel() >= 200){
    	{
    		npc.addText("You are not level 200!");
    		npc.sendOK();
    		npc.end();
    }
    }
    }
    enjoy!
    Sorry buya but that will never works.

    PHP Code:
    void npc_main(NPC @npc){
          
    int state npc.getState();
          if(
    state == 0){
          
    npc.addText("Do you want to rebirth?");
          
    npc.sendNext();
          } else if(
    state == 1){
          if(
    npc.getPlayer().getLevel() >= 200){ //Just in case server is 200+
            
    npc.getPlayer().setLevel(1);
            
    npc.getPlayer().setJob(0);
                
    npc.addText("Congratz you have rebirthed!");
          }else{
            
    npc.addText("You are not level 200!");
            
    npc.sendOK();
          }
          
    npc.end();
    }




Advertisement