Jump to content
  • 0

From Novice to a Trascendent Classes


CyberDevil

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Someone can help me make a simple "job changer" that for example lets you choose a transcendent class if:
1) you have a red potion (ID 501)
2) you are a Novice of any level (no super novice, no 1st/2nd/etc classes)

...and after these 2 requirements and after choosing the transcendet class, it removes the red potion, it change your class with that choice trascendend class and gives you the basic level at 99 and job level at 1 (99/1).
It sounds simple but I really don't know where to start !!!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

that red potion is pretty suspicious 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

12 hours ago, Naruto said:

that red potion is pretty suspicious 

I only need it as a starting point... in reality the question will be more complex, the idea is to create an advertising campaign by spreading a "gift code", new registered users will be able to insert this code and receive an item (ex. a Red Potion! lol), and by giving this item to the npc I requested in this topic, they can exchange it for a transcendent class and level 99/1... it's all about marketing!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

42 minutes ago, CyberDevil said:

I only need it as a starting point... in reality the question will be more complex, the idea is to create an advertising campaign by spreading a "gift code", new registered users will be able to insert this code and receive an item (ex. a Red Potion! lol), and by giving this item to the npc I requested in this topic, they can exchange it for a transcendent class and level 99/1... it's all about marketing!

cant you just use if itemcount for the red potion and check for novice yourself ? open the script commands doc /meh

 

if (countitem(501) => 1 && Class == JOB_NOVICE ) {
removeitem 501
change job

end; 
}
etc etc 

 

Edited by Naruto
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Thanks for the suggestion... I created the script (sorry for the dialogues in Italian language) and it works perfectly, but I remembered now that this possibility to change from Novice to a Trascendet Class must be possible only once per account.
Any other suggestions for using and set a #key and value 0/1 in acc_reg_num?

sec_in01,173,97,4	script	Fato Turchino	617,{
	mes "[Fato Turchino]";
	mes "Ciao Tesoruccio, sono il tuo Fato Turchino personale... se sei";
	mes "arrivato fino a me vuol dire che sei in possesso dell'oggetto dei miei desideri, e per questo potrò farti dono di una Classe";
	mes "Transcendent a tua scelta e farti livellare fino al livello 99 senza perdite di tempo ad expare!";
	emotion ET_CHUP;
	next;
		if (countitem(501) >=1 && Class == JOB_NOVICE ) {
			mes "Bene, vedo che sei un giovane Novice ed hai l'oggetto che cercavo come richiesto...";
			mes "ora tocca a te, che classe Transcendent vuoi diventare?";
			emotion ET_OK;
			next;
				switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Minstrel:Wanderer:Sura:Genetic:Shadow Chaser:Rebellion:Kagerou:Oboro")) {
					case 1:	jobchange JOB_RUNE_KNIGHT_T; break;
					case 2:	jobchange JOB_WARLOCK_T; break;
					case 3:	jobchange JOB_RANGER_T; break;
					case 4:	jobchange JOB_ARCH_BISHOP_T; break;
					case 5:	jobchange JOB_MECHANIC_T; break;
					case 6:	jobchange JOB_GUILLOTINE_CROSS_T; break;
					case 7:	jobchange JOB_ROYAL_GUARD_T; break;
					case 8:	jobchange JOB_SORCERER_T; break;
					case 9:	jobchange JOB_MINSTREL_T; break;
					case 10:	jobchange JOB_WANDERER_T; break;
					case 11:	jobchange JOB_SURA_T; break;
					case 12:	jobchange JOB_GENETIC_T; break;
					case 13:	jobchange JOB_SHADOW_CHASER_T; break;
					case 14:	jobchange JOB_REBELLION; break;
					case 15:	jobchange JOB_KAGEROU; break;
					case 16:	jobchange JOB_OBORO; break;
				}
			delitem 501,1;
			set	Baselevel,Baselevel=99;
			set	Joblevel,Joblevel=1;
			mes "Eccoti accontentato, spero che il mio 'servizietto' sia stato di tuo gradimento!!!";
			emotion ET_SEXY;
			next;
			mes "Torna quando vuoi, io sarò qui ad attenderti con ansia!";
			emotion ET_THANKS;
			close;
			}
	mes "Ma Tesoruccio che combini? Posso offrire i miei 'servizietti' solo ai Novice che hanno con loro l'oggetto dei miei desideri!!!";
	mes "Torna quando sarai in grado di soddisfarmi e io soddisferò te! ;-)";
	emotion ET_SWEAT;
	end;
}

 

Edited by CyberDevil
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

ok i also found the informations to create an account-level variable to use this NPC only for 1 character per account... if someone has any suggestions to improve it, this is the code:

sec_in01,173,97,4	script	Fato Turchino	617,{
	mes "[Fato Turchino]";
	mes "Ciao Tesoruccio, sono il tuo Fato Turchino personale... se sei";
	mes "arrivato fino a me vuol dire che sei in possesso dell'oggetto dei miei desideri, e per questo potrò farti dono di una Classe";
	mes "Transcendent a tua scelta e farti livellare fino al livello 99 senza perdere tempo ad expare!";
	emotion ET_CHUP;
	next;
		if (countitem(501) >=1 && Class == JOB_NOVICE && !#Fato_Turchino ) {
			mes "Bene, vedo che sei un giovane Novice ed hai l'oggetto che cercavo come richiesto...";
			mes "ora tocca a te, che classe Transcendent vuoi diventare?";
			emotion ET_OK;
			next;
				switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Minstrel:Wanderer:Sura:Genetic:Shadow Chaser:Rebellion:Kagerou:Oboro")) {
					case 1:	jobchange JOB_RUNE_KNIGHT_T; break;
					case 2:	jobchange JOB_WARLOCK_T; break;
					case 3:	jobchange JOB_RANGER_T; break;
					case 4:	jobchange JOB_ARCH_BISHOP_T; break;
					case 5:	jobchange JOB_MECHANIC_T; break;
					case 6:	jobchange JOB_GUILLOTINE_CROSS_T; break;
					case 7:	jobchange JOB_ROYAL_GUARD_T; break;
					case 8:	jobchange JOB_SORCERER_T; break;
					case 9:	jobchange JOB_MINSTREL_T; break;
					case 10:	jobchange JOB_WANDERER_T; break;
					case 11:	jobchange JOB_SURA_T; break;
					case 12:	jobchange JOB_GENETIC_T; break;
					case 13:	jobchange JOB_SHADOW_CHASER_T; break;
					case 14:	jobchange JOB_REBELLION; break;
					case 15:	jobchange JOB_KAGEROU; break;
					case 16:	jobchange JOB_OBORO; break;
				}
			delitem 501,1;
			set #Fato_Turchino, 1;
			set Baselevel,Baselevel=99;
			set Joblevel,Joblevel=1;
			mes "Eccoti accontentato, spero che il mio 'servizietto' sia stato di tuo gradimento!!!";
			emotion ET_SEXY;
			next;
			mes "Torna quando vuoi, io sarò qui ad attenderti con ansia!";
			emotion ET_THANKS;
			close;
			}
	mes "Ma Tesoruccio che combini? Posso offrire i miei 'servizietti' solo ai Novice che hanno con loro l'oggetto dei miei desideri!!!";
	mes "Torna quando sarai in grado di soddisfarmi e io soddisferò te! ;-)";
	emotion ET_SWEAT;
	end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

just make it into a variable and set it to 1 for your account once you do it  and return false if 1 

 

	set #tutorial_air1,0;

or maybe its @ not # for account, pretty sure pound is character 

 

just place that at the bottom of the job change

 

then at the top do this

if (#tutorial_air1 == 0) {

mes "sorry you already use the promo red potion";

end;

}

 

Edited by Naruto
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Tnx @Naruto... this is my last version live in my server with all check that you say and a double menu... 1 for male without Wanderer and Oboro and 1 for female without Ministrel and Kagerou:

prontera,153,176,4	script	JobMaster Fato Turchino	617,{
	if (#Fato_Turchino == 1) {
		mes "[ Fato Turchino ]";
		mes "Ehi Tesoruccio, non provarci... già ti ho fatto il \"servizietto\" che cerchi!";
		mes "Ricorda, posso fare questa magia ^FF0000solo una volta^000000!";
		end;
		}
	mes "[ Fato Turchino ]";
	mes "Ciao Tesoruccio, sono Fato Turchino... quello magico dei fratelli \"Fato\"!";
	mes "Se sei da me vuol dire che hai uno <ITEM>Special Exchange Coupons<INFO>7690</INFO></ITEM> e per questo potrò farti dono di una Classe Transcendent a tua scelta e farti livellare fino al livello 99 senza perdere tempo ad expare!";
	mes "Ma ^FF0000solo una volta^000000 potrò fare questa magia per te!";
	emotion ET_CHUP;
	next;
		if (countitem(7690) >=1 && Class == JOB_NOVICE && !#Fato_Turchino ) {
			mes "[ Fato Turchino ]";
			mes "Bene, vedo che sei un giovane Novice ed hai";
			mes "uno <ITEM>Special Exchange Coupons<INFO>7690</INFO></ITEM> come richiesto!";
			mes "Ricorda che posso fare questa magia ^FF0000solo una volta^000000... ora tocca a te, che classe Transcendent vuoi diventare?";
			emotion ET_OK;
			next;
			if(sex) {
				switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Minstrel:Sura:Genetic:Shadow Chaser:Rebellion:Kagerou")) {
					case 1: jobchange JOB_RUNE_KNIGHT_T; break;
					case 2: jobchange JOB_WARLOCK_T; break;
					case 3: jobchange JOB_RANGER_T; break;
					case 4: jobchange JOB_ARCH_BISHOP_T; break;
					case 5: jobchange JOB_MECHANIC_T; break;
					case 6: jobchange JOB_GUILLOTINE_CROSS_T; break;
					case 7: jobchange JOB_ROYAL_GUARD_T; break;
					case 8: jobchange JOB_SORCERER_T; break;
					case 9: jobchange JOB_MINSTREL_T; break;
					case 10: jobchange JOB_SURA_T; break;
					case 11: jobchange JOB_GENETIC_T; break;
					case 12: jobchange JOB_SHADOW_CHASER_T; break;
					case 13: jobchange JOB_REBELLION; break;
					case 14: jobchange JOB_KAGEROU; break;
				}
			} else {
				switch(select("Rune Knight:Warlock:Ranger:Arch Bishop:Mechanic:Guillotine Cross:Royal Guard:Sorcerer:Wanderer:Sura:Genetic:Shadow Chaser:Rebellion:Oboro")) {
					case 1: jobchange JOB_RUNE_KNIGHT_T; break;
					case 2: jobchange JOB_WARLOCK_T; break;
					case 3: jobchange JOB_RANGER_T; break;
					case 4: jobchange JOB_ARCH_BISHOP_T; break;
					case 5: jobchange JOB_MECHANIC_T; break;
					case 6: jobchange JOB_GUILLOTINE_CROSS_T; break;
					case 7: jobchange JOB_ROYAL_GUARD_T; break;
					case 8: jobchange JOB_SORCERER_T; break;
					case 9: jobchange JOB_WANDERER_T; break;
					case 10: jobchange JOB_SURA_T; break;
					case 11: jobchange JOB_GENETIC_T; break;
					case 12: jobchange JOB_SHADOW_CHASER_T; break;
					case 13: jobchange JOB_REBELLION; break;
					case 14: jobchange JOB_OBORO; break;
				}
			}				
			delitem 7690,1;
			set #Fato_Turchino, 1;
			set Baselevel,Baselevel=99;
			set Joblevel,Joblevel=1;
			mes "[ Fato Turchino ]";
			mes "Eccoti accontentato, spero che il mio \"servizietto\" sia stato di tuo gradimento!!!";
			emotion ET_SEXY;
			next;
			mes "[ Fato Turchino ]";
			mes "Torna quando vuoi, io sarò qui ad attenderti con ansia!";
			emotion ET_THANKS;
			close;
			}
	mes "[ Fato Turchino ]";
	mes "Ma Tesoruccio che combini? Posso offrire i miei \"servizietti\" solo ai Novice che hanno con loro uno <ITEM>Special Exchange Coupons<INFO>7690</INFO></ITEM> e che ^FF0000non hanno mai usufruito dei miei \"servizietti\"^000000 in passato, perchè posso fare questa magia solo una volta!!!!";
	mes "Torna quando sarai in grado di soddisfarmi e io soddisferò te! ;-)";
	emotion ET_SWEAT;
	end;
}

Tnx a lot for the support and suggestions! ?

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