Jump to content

Recommended Posts

Posted

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
  • 2 years later...
Posted

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.

Posted
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

Posted
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

Posted
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);
}

 

Posted
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 ?

Posted
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
  • 7 months later...
Posted
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!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...