Originally posted by [b]EvilPuncker[/b]
[quote name='QQfoolsorellina' timestamp='1339520105' post='109838']
[quote name='Brian' timestamp='1339518604' post='109834']
[rev=16279]
[quote name='r16279' timestamp='1339518153']* Merged /branches/renewal/ [rev=14635] to /trunk (follow up to [rev=15060]) [post=106973]pid:106973[/post][/quote]
[/quote]
Hi~~Brian,
First ,thx for Implemented that system.
I think the rune stone amount no longer need to define
we can use this system to limit rune stone amount
src/map/pc.c
[code]
if( itemdb_is_rune(item_data->nameid) ) {
int rune = pc_search_inventory(sd,item_data->nameid);
if( ( rune >= 0 && sd->status.inventory[rune].amount + amount > MAX_RUNE ) ||
( rune == -1 && amount > MAX_RUNE )
) {
clif_msgtable(sd->fd,0x61b);
return 1;
}
}
[/code]
a/src/map/skill.c
[code]
if( skill_id == RK_RUNEMASTERY ) {
int temp_qty, skill_lv = pc_checkskill(sd,skill_id);
if( skill_lv == 10 ) temp_qty = 1 + rnd()%3;
else if( skill_lv > 5 ) temp_qty = 1 + rnd()%2;
else temp_qty = 1;
for( i = 0; i < MAX_INVENTORY; i++ ) {
if( sd->status.inventory[i].nameid == nameid ) {
if( sd->status.inventory[i].amount >= MAX_RUNE ) {
clif_msgtable(sd->fd,0x61b);
return 0;
} else {
/**
* the amount fits, say we got temp_qty 4 and 19 runes, we trim temp_qty to 1.
**/
if( temp_qty + sd->status.inventory[i].amount >= MAX_RUNE )
temp_qty = MAX_RUNE - sd->status.inventory[i].amount;
}
break;
}
}
qty = temp_qty;
}
[/code]
src/map/config/classes/swordsman.h
[code]
/// rune knight
///
/// maximum number of runes that a rune knight character can carry at any given time
/// default: 20
#define MAX_RUNE 20
[/code]
[/quote]