Jump to content

Utility: sader's Level Up Reward Job/Base


sader1992

Recommended Posts


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

sader's Level Up Reward Job/Base


Level Up Reward Job/Base

config

LevelUpReward(1,<base level>,<job id>,<zeny>,<item id>,<count>,<item id>,<count>,<item id>,<count>,etc);
LevelUpReward(2,<job level>,<job id>,<zeny>,<item id>,<count>,<item id>,<count>,<item id>,<count>,etc);

Example:

LevelUpReward(1,5,1,999,1002,5,1005,2);	//give 999 zeny 5 1002 and 2 1005 to Swordman (job id 1) when he level up to base level 5
LevelUpReward(2,10,1,999,1002,5,1005,2);	//give 999 zeny 5 1002 and 2 1005 to Swordman (job id 1) when he level up to job level 10

header

//===== rAthena Script =======================================
//= saders LvUpRewards
//===== By: ==================================================
//= Sader1992
//= Free!!
//https://rathena.org/board/profile/30766-sader1992/
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena Project
//https://github.com/sader1992/sader_scripts
//===== Description: =========================================
//==== level up rewards
//==== if the player is over he can use @LevelUpReward command
//==== to get the rewards
//============================================================
//==== please report any error you find
//============================================================
//============================================================

 


  • Submitter
  • Submitted
    03/31/2018
  • Category
  • Video
  • Content Author
    sader1992

 

  • Upvote 1
Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  01/19/16
  • Last Seen:  

Hi, @sader1992 i am using your script LvUpRewards.

How can i get reward if i skip a level.

LevelUpReward(1,10,0,0,11501,20,11502,10,12211,1);
LevelUpReward(2,10,0,0,0,0,0,0);

i tested on a novice i leveled up to 10 it worked fine, after that i tried resetting it  i leveled to 13 skipped past level 10 and i din't get the reward.

Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

17 minutes ago, Newbiedev-chan said:

Hi, @sader1992 i am using your script LvUpRewards.

How can i get reward if i skip a level.

LevelUpReward(1,10,0,0,11501,20,11502,10,12211,1);
LevelUpReward(2,10,0,0,0,0,0,0);

i tested on a novice i leveled up to 10 it worked fine, after that i tried resetting it  i leveled to 13 skipped past level 10 and i din't get the reward.

what do you mean by skip ?

the script work when you level up with a normal why , you have level up by killing monsters or quests

also if you have +80% Weight , the reward would be in @LevelUpReward

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  01/19/16
  • Last Seen:  

6 minutes ago, sader1992 said:

what do you mean by skip ?

the script work when you level up with a normal why , you have level up by killing monsters or quests

also if you have +80% Weight , the reward would be in @LevelUpReward

i mean when i set it to get reward at level 10 i get the reward. but if i skip level 10 i don't get the level reward.

LevelUpReward(1,10,0,0,11501,20,11502,10,12211,1);
 

yyyy.PNG

yyyyuuu.PNG

Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

1 minute ago, Newbiedev-chan said:

i mean when i set it to get reward at level 10 i get the reward. but if i skip level 10 i don't get the level reward.

LevelUpReward(1,10,0,0,11501,20,11502,10,12211,1);

the script gives a reward only for the level you type , if you don't have a line with the level and the job , it wont add a reward to it

 

if you want to add the reward for every level in the class after level 10 , you can do this

freeloop(1);
for(.@i=10;.@i<MAX_LEVEL;.@i++){
	LevelUpReward(1,.@i,0,0,11501,20,11502,10,12211,1);
}

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  01/19/16
  • Last Seen:  

10 minutes ago, sader1992 said:

the script gives a reward only for the level you type , if you don't have a line with the level and the job , it wont add a reward to it

I see... but is it possible to get the reward between level 10-19 once?

10 minutes ago, sader1992 said:

if you want to add the reward for every level in the class after level 10 , you can do this


freeloop(1);
for(.@i=10;.@i<MAX_LEVEL;.@i++){
	LevelUpReward(1,.@i,0,0,11501,20,11502,10,12211,1);
}

Thanks for this ?

Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

5 minutes ago, Newbiedev-chan said:

I see... but is it possible to get the reward between level 10-19 once?

Thanks for this ?

freeloop(1);
for(.@i=10;.@i<=19;.@i++){
	LevelUpReward(1,.@i,0,0,11501,20,11502,10,12211,1);
}

 

  • Love 1
Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  21
  • Reputation:   0
  • Joined:  06/25/20
  • Last Seen:  

On 8/28/2020 at 8:19 AM, sader1992 said:

freeloop(1);
for(.@i=10;.@i<=19;.@i++){
	LevelUpReward(1,.@i,0,0,11501,20,11502,10,12211,1);
}

 

Hello @sader1992! I had this applied on my server but the player is getting the rewards every level from 10 to 19. How can I make the user get the rewards when reaching level 10 and/or passing over the level? For example, if it is a mid-rates, the character could skip from level 8 to level 30 and without taking the level 10 reward.

Regards!

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
Reply to this topic...

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