DemonChuck Posted April 13 Share Posted April 13 (edited) Wondering If possible to add more reborn mechanics here like Example 1 - 20 reborn = 1 apple 21 - 40 reborn = Increase Reborn requirements by 2x. 41 - 60 reborn = Increase Reborn requirements by 3x. Every 20x of reborn the requirement increase. Thanks in advance. rebirth_npc.txt Edited April 13 by DemonChuck wrong typhe Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 1 Share Posted May 1 function deleteItem { [email protected]_req_ratio = 1; if (@rebirth_type == 1 && ) [email protected]_req_ratio = max(1, (rebirth_no / 20)); for ([email protected]=0 ; [email protected] < .size_item; [email protected] += 3 ){ if ( !( getarg(0)&(.item_req[[email protected]+2]) ) ){continue;} delitem .item_req[[email protected]], ( .item_req[ [email protected]+1 ] * [email protected]_req_ratio); } return; } function CheckItemNeed { if ( Weight > 200000 ) { mes "You must reduce your weight to 2000 to do Rebirth."; close; } [email protected]_req_ratio = 1; if (@rebirth_type == 1 && ) [email protected]_req_ratio = max(1, (rebirth_no / 20)); [email protected] = 0; for ([email protected]=0 ; [email protected] < .size_item; [email protected] += 3 ){ if ( !( getarg(0)&(.item_req[[email protected]+2]) ) ){continue;} if ( countitem( .item_req[[email protected]] ) < (.item_req[ [email protected]+1 ] * [email protected]_req_ratio) ) { mes "You Require [^ff0000"+countitem( .item_req[[email protected]] )+" / "+ (.item_req[ [email protected]+1 ] * [email protected]_req_ratio) +"^000000] ^112FD9"+getitemname( .item_req[[email protected]] )+"^000000"; [email protected] = 1; }else{ mes "You Require [^00ff00"+countitem( .item_req[[email protected]] )+" / "+ (.item_req[ [email protected]+1 ] * [email protected]_req_ratio) +"^000000] ^112FD9"+getitemname( .item_req[[email protected]] )+"^000000"; } } if ([email protected] && !getarg(1,0)){close;} return; } change the both script function that calculate and display then delete the required items. Quote Link to comment Share on other sites More sharing options...
Wondering If possible to add more reborn mechanics here like
Example
1 - 20 reborn = 1 apple
21 - 40 reborn = Increase Reborn requirements by 2x.
41 - 60 reborn = Increase Reborn requirements by 3x.
Every 20x of reborn the requirement increase.
Thanks in advance.
rebirth_npc.txt
Edited by DemonChuckwrong typhe
Link to comment
Share on other sites