Jump to content

mawjustin

Members
  • Posts

    101
  • Joined

  • Last visited

Everything posted by mawjustin

  1. Hi Team, May I ask for clarification about getitembound3 ? specifically Bound_Account? why is it that I cannot store it in my storage? Is there a way to force this into storage?
  2. I see, I guess I that's the only option for now.
  3. Hi Team, I tried checking on rathena document, but I am unable to find the following, I'm not sure if I am looking in the wrong files or data: 1. How to check Random Option Element either from 1-5? 2. How to check Armor Element? 3. How to check Card slotted element? Thank you in advance.
  4. For IP, time_created, and redeem_time problems use this. /* DROP TABLE IF EXISTS `reward_codes`; DROP TABLE IF EXISTS `reward_logs`; CREATE TABLE IF NOT EXISTS `reward_codes` ( `promo` VARCHAR(26) NOT NULL DEFAULT '', `nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0', `item_name` VARCHAR(50) NOT NULL DEFAULT '', `amount` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0', `time_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `limit` INT(10) UNSIGNED NOT NULL DEFAULT '0', `pool` INT(10) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`promo`) ) ENGINE = MYISAM; CREATE TABLE IF NOT EXISTS `reward_logs` ( `account_id` int(11) unsigned NOT NULL default '0', `last_ip` BINARY( 15 ) NOT NULL, `code` VARCHAR( 26 ) NOT NULL, `redeem_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `claim` INT( 10 ) NOT NULL, PRIMARY KEY (`code`) ) ENGINE = MYISAM; */
  5. Hi Team, May I ask what error this is and how to fix it?
  6. I suggest you create a script using OnPCLoginEvent: just to make sure that all will be deleted.
  7. I commented that temporarily. and added deletion of SC_BOSSMAPINFO every login.
  8. Hi Team, Is there a way to stop gepard from detecting @autoattack as bot? https://rathena.org/board/topic/119441-compile-error-autoattack/ Thanks. @Functor may I ask for assistance regarding this matter.
  9. may I ask how will I do this? 61500:61500,{ if (isequipped(61500) <=10) { bonus bStr,1000; } } ? because 61500 can be inserted into non slotted slot 4 item only. and can be slotted to all general equipment .
  10. what if 1 type of card can be equipped in multiple items? example both poring cards can be equipped in upper,middle, and lower headgear? it will duplicate the effects of isequippedcnt()? Hi Team, May I ask why Is the stats not adding to the player? - script ScriptComboCaller -1,{ OnPCStatCalcEvent: if(getequipcardid (EQI_HEAD_TOP,3) == 61500 || getequipcardid (EQI_HEAD_MID,3) == 61500 || getequipcardid (EQI_HEAD_LOW,3) == 61500 || getequipcardid (EQI_ARMOR,3) == 61500 || getequipcardid (EQI_HAND_R,3) == 61500 || getequipcardid (EQI_HAND_L,3) == 61500 || getequipcardid (EQI_GARMENT,3) == 61500 || getequipcardid (EQI_SHOES,3) == 61500 || getequipcardid (EQI_ACC_L,3) == 61500 || getequipcardid (EQI_ACC_R,3) == 61500 ) { callfunc ("Generalis_Arvis"); } if(getequipcardid (EQI_HEAD_TOP,3) == 61501 || getequipcardid (EQI_HEAD_MID,3) == 61501 || getequipcardid (EQI_HEAD_LOW,3) == 61501 || getequipcardid (EQI_ARMOR,3) == 61501 || getequipcardid (EQI_HAND_R,3) == 61501 || getequipcardid (EQI_HAND_L,3) == 61501 || getequipcardid (EQI_GARMENT,3) == 61501 || getequipcardid (EQI_SHOES,3) == 61501 || getequipcardid (EQI_ACC_L,3) == 61501 || getequipcardid (EQI_ACC_R,3) == 61501 ) { callfunc ("Generalis_Mercator"); } } //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// function script Generalis_Arvis { sleep2 10; OnPCStatCalcEvent: setarray .setcomboarray[0],61500; set [email protected],getarraysize( .setcomboarray ); .itmCnt = 0; for ([email protected] = 0;[email protected] < [email protected];[email protected]++) { if(getequipcardid (EQI_HEAD_TOP,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HEAD_MID,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HEAD_LOW,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_ARMOR,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HAND_R,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HAND_L,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_GARMENT,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_SHOES,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_ACC_L,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_ACC_R,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } } mes "Generalis_Arvis"+ .itmCnt; if (.itmCnt > 10 ) { dispbottom "You have more than 10 parts equipped."; } else { if(.itmCnt >= 2) { bonus bStr,5; } if(.itmCnt >= 3) { bonus bMaxSPrate,5; } if(.itmCnt >= 4) { bonus bMaxHPrate,5; } if(.itmCnt >= 5) { bonus bVariableCastrate,-5; } if(.itmCnt >= 6) { bonus bDelayRate,5; } if(.itmCnt >= 7) { bonus2 bIgnoreDefClassRate,Class_All,5; } if(.itmCnt >= 8) { bonus bAtkRate,5; } return; } } //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// function script Generalis_Mercator { sleep2 10; OnPCStatCalcEvent: setarray .setcomboarray[0],61501; set [email protected],getarraysize( .setcomboarray ); .itmCnt = 0; for ([email protected] = 0;[email protected] < [email protected];[email protected]++) { if(getequipcardid (EQI_HEAD_TOP,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HEAD_MID,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HEAD_LOW,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_ARMOR,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HAND_R,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_HAND_L,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_GARMENT,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_SHOES,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_ACC_L,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } if(getequipcardid (EQI_ACC_R,3) == .setcomboarray[[email protected]] ) { .itmCnt++; } } mes "Generalis_Mercator"+ .itmCnt; if (.itmCnt > 10 ) { dispbottom "You have more than 10 parts equipped."; } else { if(.itmCnt >= 2) { bonus bVit,5; } if(.itmCnt >= 3) { bonus bMaxSPrate,5; } if(.itmCnt >= 4) { bonus bMaxHPrate,5; } if(.itmCnt >= 5) { bonus bVariableCastrate,-5; } if(.itmCnt >= 6) { bonus bDelayRate,5; } if(.itmCnt >= 7) { bonus2 bSubEle,Ele_All,5; } if(.itmCnt >= 8) { bonus bMaxHPrate,5; } return; } } Output shows both, but stats is not adding into the player. May I ask for assistance in where did I go wrong here?
  11. Is there no other way from this? I'm avoiding doing it like that because I have around 60+ scripts like this and it might overload the server
  12. Hi, is there a way for this to stop looping? I mean to only display 1 value and not repeat it multiple times?
  13. Hi Team, May I ask for assistance regarding this matter? Is there a way for this script to display only one value? I understand that it loops because of for loop value added in [email protected]++; but is there a way to display only 1 value of this loop stored value? function script Aqua_Set { getinventorylist; setarray [email protected][0],61500,61501,61502,61503,61504; [email protected] = 0; for ([email protected] = 0; [email protected] < getarraysize([email protected]); [email protected]++) { if (countitem([email protected][[email protected]]) == 1) { [email protected]++; } } for(set [email protected],0; [email protected] < @inventorylist_count; set [email protected],[email protected]+1){ for(set [email protected],0; [email protected] < getarraysize([email protected]); set [email protected],[email protected] + 1){ if(@inventorylist_id[[email protected]] == [email protected][[email protected]] && countitem([email protected][[email protected]]) == 1) { set [email protected],[email protected] + 1; } } } if ([email protected] >= 2) { // this is the part that I want to fix, if possible to only display 1 loop value. mes [email protected]; end; } } I'm tryin to make an Etc. or charm type of items that depend on number of parts available, it must only read unique id, any duplicate in the inventory will render that part of the combo unusable, and will not add any stats. this is the result in my end.
  14. Hi Team, May I ask if this is possible without crashing the server? I tried putting it into a function, but it loops into infinity and crashes my server. Is there a way to add specialeffect2 on etc. items when you have them in your inventory? I'm using this as reference :
  15. put this in your npc script, I suggest you study basic rathena scripting first this is coded for manuk, so yes. if( getarg(0) == 2 ) { undisguise; if( strcharinfo(3) == "manuk" ) warp "SavePoint",0,0; end; } else if( strcharinfo(3) == "manuk" && getequipid(8) == 6010 && getequipid(6) == 5009 ) {
  16. no other scr mod for this?
  17. Hi Team, Is there a way for us to cap MDEF and DEF separately without using conf file? I would like to cap MDEF at 50, and DEF at 80. Thank you!
  18. Just duplicate else if( [email protected] >= 700 && [email protected] < 990 ) getitem 757,1;
  19. Thank you, found a guide regarding makeitem. https://rathena.org/board/topic/84778-makeitem-4x4-cell-on-monster-death/
  20. any fix on this? are we installing it right?
  21. Is this possible? for example, I have a custom monster summoned, when that monster dies it will trigger a command like @itemrain, and it will shower items within its perimeters.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.