Rizta Posted November 9, 2018 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 109 Reputation: 5 Joined: 08/12/17 Last Seen: March 30, 2020 Share Posted November 9, 2018 well, as tittle says i want a npc that give a prize for the first player of each trans job(sniper, lord knight, high priest etc...). Rules: 1. Only the FIRST 99/70 of each class. 2. Do not need to be account restricted, so, if a player reach 99/70 with different class he wll be able to collect the different prize. 3. Since every job will get a different weapon or whatever, every job will receive a set of the same prizes and one different. [PLUS] - by equipment, it will be good if get with getnameditem and enchantend in 5 slots with random option, pre-defined. Thats all, i know this isnt hard but i really do not remember how to do the rule 1 and 2. Quote Link to comment Share on other sites More sharing options...
0 Arthurion Posted November 9, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 21 Reputation: 4 Joined: 11/04/18 Last Seen: October 23, 2019 Share Posted November 9, 2018 (edited) - script maxlevelrewards -1,{ OnPCBaseLvUpEvent: OnPCJobLvUpEvent: if(BaseLevel == 99 && JobLevel == 70){ .@class$ = Class; if(getd("#" + .@class$) == 0){ for(.@i = 0; .@i < getarraysize(.class_id); .@i++){ if(Class != .class_id[.@i]){ continue; } getitem .weapon_id[.@i],1; break; } for(.@i = 0; .@i < getarraysize(.item_reward); .@i += 2){ getitem .item_reward[.@i],.item_reward[.@i + 1]; } setd("#" + .@class$,1); dispbottom "Here is your rewards for the " + jobname(Class) + " job."; } } end; OnInit: setarray .class_id,4008,4009,4010,4011,4012,4013,4015,4016,4017,4018,4019,4020,4021; //= Trans Class ID setarray .weapon_id,501,502,503,504,505,506,507,508,509,510,511,512,513; //= Weapon ID For Class setarray .item_reward,501,20,502,20; //= Item ID , Amount end; } Just add your plus things I don't know just copy in the doc or somewhere Edited November 9, 2018 by Riel 1 Quote Link to comment Share on other sites More sharing options...
0 Rizta Posted November 9, 2018 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 109 Reputation: 5 Joined: 08/12/17 Last Seen: March 30, 2020 Author Share Posted November 9, 2018 (edited) 30 minutes ago, Riel said: - script maxlevelrewards -1,{ OnPCBaseLvUpEvent: OnPCJobLvUpEvent: if(BaseLevel == 99 && JobLevel == 70){ .@class$ = Class; if(getd("#" + .@class$) == 0){ for(.@i = 0; .@i < getarraysize(.class_id); .@i++){ if(Class != .class_id[.@i]){ continue; } getitem .weapon_id[.@i],1; break; } for(.@i = 0; .@i < getarraysize(.item_reward); .@i += 2){ getitem .item_reward[.@i],.item_reward[.@i + 1]; } setd("#" + .@class$,1); dispbottom "Here is your rewards for the " + jobname(Class) + " job."; } } end; OnInit: setarray .class_id,4008,4009,4010,4011,4012,4013,4015,4016,4017,4018,4019,4020,4021; //= Trans Class ID setarray .weapon_id,501,502,503,504,505,506,507,508,509,510,511,512,513; //= Weapon ID For Class setarray .item_reward,501,20,502,20; //= Item ID , Amount end; } Thank you a lot. With this only the first one by class will receive the rewards, right? Awesome. Do you know about my plus request? Edit: sorry i asked and didnt see you edited your asnwer XD ill try to do that Edited November 9, 2018 by Rizta Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted November 12, 2018 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted November 12, 2018 if it's a nameditem.. there won't be any slot on it. like if you named the item muffler[1].. the slot will be gone. Quote Link to comment Share on other sites More sharing options...
0 Rizta Posted November 21, 2018 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 109 Reputation: 5 Joined: 08/12/17 Last Seen: March 30, 2020 Author Share Posted November 21, 2018 On 11/12/2018 at 3:15 PM, Haruka Mayumi said: if it's a nameditem.. there won't be any slot on it. like if you named the item muffler[1].. the slot will be gone. Yup, i dont really need slots cause we dont use cards, instead we use random options that is possible to see by script(cards too). Quote Link to comment Share on other sites More sharing options...
Question
Rizta
well, as tittle says i want a npc that give a prize for the first player of each trans job(sniper, lord knight, high priest etc...).
Rules:
1. Only the FIRST 99/70 of each class.
2. Do not need to be account restricted, so, if a player reach 99/70 with different class he wll be able to collect the different prize.
3. Since every job will get a different weapon or whatever, every job will receive a set of the same prizes and one different.
[PLUS] - by equipment, it will be good if get with getnameditem and enchantend in 5 slots with random option, pre-defined.
Thats all, i know this isnt hard but i really do not remember how to do the rule 1 and 2.
Link to comment
Share on other sites
4 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.