
Originally Posted by
Dumle
@Akitasha I tried it but it didn't work. Inserted it in databaseLoad/NPCs/, maybe that's not the correct file?
@Aitsihia My IGN is CrazyCoder or Dumle ^^.
No you add it to a specific npc or make your own npc
I added it to MaFl_Gergantes.lua in your NPCs folder as an example
You choose w/e file you want to be the job change NPC.
So it'd be like
Code:
addNPC("MaFl_Gergantes",63,226,1,6960.129883,100.000000,3339.729980,1,0);
addEvent("Introduction","L_Introduction","Welcome to Flyff Rhisis Style.");
addEvent("Mercenary","L_Mercenary","Would you like to change to a Mercenary? The Mercenary Class is a melee based class, which means you have to be at a close range to use their skills.");
addEvent("Farewell","L_Farewell","");
addEventText("L_Mercenary","If you think that's not for you, there are always other options.");
addOption("L_Mercenary","__YES__","L_True");
addOption("L_Mercenary","__NO__","L_False");
addLinkedEvent("L_True","L_WrongJob","You're not a vagrant","GetJob",0);
addLinkedEvent("L_True","L_WrongLevel","You're not the right level.","GetLevel",15);
addLinkedEvent("L_True","L_ChangeJob","Now you're job is mercenary.","SetJob",1);
addLinkedEvent("L_False","L_SameJob","You've decided not to be a mercenary.");
And now Gergantes will be able to change player's job to Mercenary.