Jump to content
  • 0

can you change script


marcorogeeh

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  71
  • Reputation:   0
  • Joined:  06/27/13
  • Last Seen:  

hi rathina can you help me change script I want to change the job all the time can you help me plaze

Starter NPC.txt

Edited by marcorogeeh
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

Wrong section. Moved to "Scripting Support".

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   11
  • Joined:  07/16/17
  • Last Seen:  

I didn't understand you very well...

Do you want to use that script to change the job anytime? If yes, try this:

prontera,150,150,4	script	Starter NPC	501,{
	/*
	if (#server_start) {

		mes "[Starter NPC]";

		mes "You can only use my services";

		mes "once per account, sorry.";

		close; 

	}
	*/
	setarray .@jobs,

		Job_Rune_Knight_T,Job_Warlock_T,Job_Ranger_T,Job_Arch_Bishop_T,Job_Mechanic_T,Job_Guillotine_Cross_T,

		Job_Royal_Guard_T,Job_Sorcerer_T,((Sex)?Job_Minstrel_T:Job_Wanderer_T),Job_Sura_T,Job_Genetic_T,Job_Shadow_Chaser_T,

		Job_Gunslinger,Job_Taekwon,Job_Star_Gladiator,Job_Soul_Linker,Job_Super_Novice_E,((Sex)?Job_Kagerou:Job_Oboro);

	set .@size, getarraysize(.@jobs);

	for(set .@i,0; .@i<.@size; set .@i,.@i+1)

		set .@menu$,.@menu$+jobname(.@jobs[.@i])+":";

	mes "[Starter NPC]";

	mes "Welcome to Ragnarok!";

	mes "Please select a job.";

	next;

	set .@i, select(.@menu$)-1;

	mes "[Starter NPC]";

	mes "Are you sure you want to switch to the "+jobname(.@jobs[.@i])+" class?";

	next;

	if(select("Yes, I'm sure.:No, let me pick again.") == 2) {

		mes "[Starter NPC]";

		mes "Okay, take your time.";

		close;

	}

	mes "[Starter NPC]";

	mes "Job changed!";

	mes "Please take some apples, too.";

	mes "They'll come in handy.";

	emotion e_lv2;

	//set #server_start,1;

	jobchange .@jobs[.@i];

	getitem 512,100;

	close;

}

 

  • Love 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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