NANORAY Posted March 28, 2018 Group: Members Topic Count: 95 Topics Per Day: 0.02 Content Count: 210 Reputation: 3 Joined: 12/20/11 Last Seen: March 1, 2019 Share Posted March 28, 2018 good day! anyone here has a freebies npc that gives freebies when achieving certain job level? can someone share it with me thanks! Quote Link to comment Share on other sites More sharing options...
1 sader1992 Posted March 28, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 9 hours ago Share Posted March 28, 2018 (edited) @Poring King didn't notice that xD , thanks. this for job level 10 - script scriptname#100 -1,{ OnPCJobLvUpEvent: if(JobLevel == 10){ getitem 1002,1; } } however if you don't want the player to get the reward again (after rebirth and changing the job) do this - script scriptname#100 -1,{ OnPCJobLvUpEvent: if(JobLevel == 10){ if(!freeItems){ getitem 1002,1; freeItems = true; } } } Edited March 28, 2018 by sader1992 1 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 28, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 9 hours ago Share Posted March 28, 2018 (edited) prontera,152,187,3 script npcname 444,{ if(!#freeItems){ if(class == 4010){ //high wizrd getitem 1002,1; } //add more classes here #freeItems == true; }else{ mes "you already got free items :P"; } close; } also if you want to make it when the player change his job make #freeItems to int and make the script as function than call it in every job changer you have in the server Edited March 28, 2018 by sader1992 1 Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted March 28, 2018 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted March 28, 2018 (edited) 7 minutes ago, sader1992 said: prontera,152,187,3 script npcname 444,{ if(!#freeItems){ if(class == 4010){ //high wizrd getitem 1002,1; } //add more classes here #freeItems == true; }else{ mes "you already got free items :P"; } close; } also if you want to make it when the player change his job make #freeItems to int and make the script as function than call it in every job changer you have in the server He is referring for job level not for a job. Change the conditional statement given by @sader1992 change the "class" into "Joblevel" == "Joblevel X" Edited March 28, 2018 by Poring King 2 Quote Link to comment Share on other sites More sharing options...
0 NANORAY Posted March 28, 2018 Group: Members Topic Count: 95 Topics Per Day: 0.02 Content Count: 210 Reputation: 3 Joined: 12/20/11 Last Seen: March 1, 2019 Author Share Posted March 28, 2018 thanks guys this is so helpful! but how to make it for example player reach job level 10 the player will automatically receive a certain freebies? Quote Link to comment Share on other sites More sharing options...
0 NANORAY Posted March 28, 2018 Group: Members Topic Count: 95 Topics Per Day: 0.02 Content Count: 210 Reputation: 3 Joined: 12/20/11 Last Seen: March 1, 2019 Author Share Posted March 28, 2018 Just now, sader1992 said: @Poring King didn't notice that xD , thanks. - script scriptname#100 -1,{ OnPCJobLvUpEvent: if(JobLevel == 70){ getitem 1002,1; } } imma try this one thanks all! Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted March 28, 2018 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted March 28, 2018 (edited) 5 minutes ago, NANORAY said: thanks guys this is so helpful! but how to make it for example player reach job level 10 the player will automatically receive a certain freebies? Like what i said since @sader1992 already give a simple script but it is a job . change it into a job then inside the condition if he meet the condition what will script do ? then add your desire thing that you really want to do. Edited March 28, 2018 by Poring King Quote Link to comment Share on other sites More sharing options...
0 NANORAY Posted March 28, 2018 Group: Members Topic Count: 95 Topics Per Day: 0.02 Content Count: 210 Reputation: 3 Joined: 12/20/11 Last Seen: March 1, 2019 Author Share Posted March 28, 2018 also can i set this in multiple job level? for example i want it job level 10,50,70? Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted March 28, 2018 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted March 28, 2018 4 minutes ago, sader1992 said: @Poring King didn't notice that xD , thanks. - script scriptname#100 -1,{ OnPCJobLvUpEvent: if(JobLevel == 10){ getitem 1002,1; } } This is good . but i prefer to give him an idea what he should do so he will know the basic scripting. Giving the script for newbie for me is not a good one because he will not learn the basic. its so important to learn the conditional statement because he will use it everyday that he will do scripting . Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted March 28, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 9 hours ago Share Posted March 28, 2018 1 minute ago, NANORAY said: also can i set this in multiple job level? for example i want it job level 10,50,70? if(JobLevel == 10 || JobLevel == 20 || JobLevel == 30) //SAME REWARD IF YOU WANT THAT if(JobLevel == 10){ //job level 10 reward }else if(JobLevel == 20){ //job level 20 reward }else if(JobLevel == 30){ //job level 30 reward } Quote Link to comment Share on other sites More sharing options...
Question
NANORAY
good day! anyone here has a freebies npc that gives freebies when achieving certain job level? can someone share it with me thanks!
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.