Jump to content
  • 0

leveling rewards npc


angelingh

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  05/24/16
  • Last Seen:  

hi soneone can make for me leveling rewards npc pls? 

 

i need every 10 levels get 5 rewards

 

like lvl10=5 rewards

lvl20=5 rewards

to 170

make the script i put the id of items just tell me where XD 

 

 

 

sorry i real newbie what that i hope someone can help me:)

make the script i put the id of items just tell me where XD 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@Aureon

you can write it better in a way like this...

-	script	Sample	-1,{
	
	OnPCBaseLvUpEvent:
		// every 10 levels gain rewards.
		if ( BaseLevel >= 10 && BaseLevel % 10 == 0 ) {
			getitem 512,1;
			getitem 512,2;
			getitem 512,3;
			getitem 512,4;
			getitem 512,5;
			dispbottom "Congrats! You reached level "+BaseLevel+"!";
		}
		end;
		
}


  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

This can help you,

 

-	script	rAthena	-1,{
OnPCBaseLvUpEvent:
	setarray .@rewards[0],501,502,503,504,505; // change this with your own reward
		if (BaseLevel == 10 || BaseLevel == 20 || BaseLevel == 30 || 
		BaseLevel == 40 || BaseLevel == 50 || BaseLevel == 60 || 
		BaseLevel == 70 || BaseLevel == 80 || BaseLevel == 90 ||
		BaseLevel == 100 || BaseLevel == 110 || BaseLevel == 120 ||
		BaseLevel == 130 || BaseLevel == 140 || BaseLevel == 150 ||
		BaseLevel == 160 || BaseLevel == 170){
			getitem .@rewards[0],1;
			getitem .@rewards[1],1;
			getitem .@rewards[2],1;
			getitem .@rewards[3],1;
			getitem .@rewards[4],1;
			dispbottom "Congrats! You reached level "+BaseLevel+"!";
			end;
		}
		else {
			end;
		}
	end;
}
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

@emistry

Thanks for that, sensei!

im not that good on scripting, yet just wanna help out the community  /heh

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  05/24/16
  • Last Seen:  

 

This can help you,

 

-	script	rAthena	-1,{
OnPCBaseLvUpEvent:
	setarray .@rewards[0],501,502,503,504,505; // change this with your own reward
		if (BaseLevel == 10 || BaseLevel == 20 || BaseLevel == 30 || 
		BaseLevel == 40 || BaseLevel == 50 || BaseLevel == 60 || 
		BaseLevel == 70 || BaseLevel == 80 || BaseLevel == 90 ||
		BaseLevel == 100 || BaseLevel == 110 || BaseLevel == 120 ||
		BaseLevel == 130 || BaseLevel == 140 || BaseLevel == 150 ||
		BaseLevel == 160 || BaseLevel == 170){
			getitem .@rewards[0],1;
			getitem .@rewards[1],1;
			getitem .@rewards[2],1;
			getitem .@rewards[3],1;
			getitem .@rewards[4],1;
			dispbottom "Congrats! You reached level "+BaseLevel+"!";
			end;
		}
		else {
			end;
		}
	end;
}

 

 

@Aureon

you can write it better in a way like this...

-	script	Sample	-1,{
	
	OnPCBaseLvUpEvent:
		// every 10 levels gain rewards.
		if ( BaseLevel >= 10 && BaseLevel % 10 == 0 ) {
			getitem 512,1;
			getitem 512,2;
			getitem 512,3;
			getitem 512,4;
			getitem 512,5;
			dispbottom "Congrats! You reached level "+BaseLevel+"!";
		}
		end;
		
}


 

 

 

This can help you,

 

-	script	rAthena	-1,{
OnPCBaseLvUpEvent:
	setarray .@rewards[0],501,502,503,504,505; // change this with your own reward
		if (BaseLevel == 10 || BaseLevel == 20 || BaseLevel == 30 || 
		BaseLevel == 40 || BaseLevel == 50 || BaseLevel == 60 || 
		BaseLevel == 70 || BaseLevel == 80 || BaseLevel == 90 ||
		BaseLevel == 100 || BaseLevel == 110 || BaseLevel == 120 ||
		BaseLevel == 130 || BaseLevel == 140 || BaseLevel == 150 ||
		BaseLevel == 160 || BaseLevel == 170){
			getitem .@rewards[0],1;
			getitem .@rewards[1],1;
			getitem .@rewards[2],1;
			getitem .@rewards[3],1;
			getitem .@rewards[4],1;
			dispbottom "Congrats! You reached level "+BaseLevel+"!";
			end;
		}
		else {
			end;
		}
	end;
}

 

ty!! :) i go try its now ! :)

 

one more request if can plss :)

i want do clon pvp

i use that script i found in that furom

 

but i have some prblem with that

then the clon use buff i get the buff too:(

like if clon use agi up i get agi up too

how i can do only the clon get the buff

 

and i want make the clon more stronger then me no too much but i want the clon be hard to kill

 

and if its possible i want the npc give me chose other clon form the server

but then its offline like i can select only online players i want offline (i solo playing for now so i want hard to kill and all class)

and one more i want the clon use skills faster i do that but the clon dont do too much skills:(

and if its possible i want the clon summon Far away from me i think its hard if its summon near me and i get no time to attack XD

 

i use that script:

https://rathena.org/board/topic/96508-npc-for-evilclone/

 

btw i want normal attack him,,

i must use shift can make its monster type for attack him normaly?

Edited by angelingh
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...