Jump to content
  • 0

R> simple first 99 rewarder


Rizta

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   5
  • Joined:  08/12/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  21
  • Reputation:   4
  • Joined:  11/04/18
  • Last Seen:  

-	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 by Riel
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   5
  • Joined:  08/12/17
  • Last Seen:  

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 by Rizta
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   5
  • Joined:  08/12/17
  • Last Seen:  

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

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