Jump to content

mawjustin

Members
  • Content Count

    92
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

3 Neutral

About mawjustin

  • Rank
    Santa Poring
  • Birthday May 24

Profile Information

Contact Methods

Recent Profile Visitors

864 profile views
  1. 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.
  2. 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 .
  3. 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?
  4. 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
  5. Hi guys, may I ask why am I receiving this error? I'm calling @MagicaeVentus from a function in combo. This is the code: //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// //////////////////////////////////////////////////////// function script Magicae_Set_Ventus { sleep2 10; setarray .setcomboarray[0],61500; setarray .setcombotext$[0],"INT +5","Maximum SP +5%","Maximum HP +5%","Wind Matk +5%","Wind Resist +5%","Ignore Mdef +10%","MATK. +10%"; // use @MagicaeVentus to check combo. bindatcmd "MagicaeVentus",strnpcinfo(3)+"::OnOrbCheck",0,60; 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 .itmCnt; if (.itmCnt > 10 ) { dispbottom "You have more than 10 parts equipped."; } else { if(.itmCnt >= 2) { bonus bInt,5; } if(.itmCnt >= 3) { bonus bMaxSPrate,5; } if(.itmCnt >= 4) { bonus bMaxHPrate,5; } if(.itmCnt >= 5) { bonus2 bAddEle,Ele_Wind,5; } if(.itmCnt >= 6) { bonus2 bSubEle,Ele_Wind,5; } if(.itmCnt >= 7) { bonus2 bIgnoreMdefClassRate,Class_All,10; } if(.itmCnt >= 8) { bonus bMatkRate,10; } end; } OnOrbCheck: .itmCntTotal = 0; mes "^0000FFMagicae Ventus Set^000000: "; set [email protected],getarraysize( .setcomboarray ); .itmCntTotal= 0; for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { if(getequipcardid (EQI_HEAD_TOP,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_HEAD_TOP) + " - [" + getitemname(getequipcardid (EQI_HEAD_TOP,3)) + "]"; } if(getequipcardid (EQI_HEAD_MID,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_HEAD_MID) + " - [" + getitemname(getequipcardid (EQI_HEAD_MID,3)) + "]"; } if(getequipcardid (EQI_HEAD_LOW,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_HEAD_LOW) + " - [" + getitemname(getequipcardid (EQI_HEAD_LOW,3)) + "]"; } if(getequipcardid (EQI_ARMOR,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_ARMOR) + " - [" + getitemname(getequipcardid (EQI_ARMOR,3)) + "]"; } if(getequipcardid (EQI_HAND_R,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_HAND_R) + " - [" + getitemname(getequipcardid (EQI_HAND_R,3)) + "]"; } if(getequipcardid (EQI_HAND_L,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_HAND_L) + " - [" + getitemname(getequipcardid (EQI_HAND_L,3)) + "]"; } if(getequipcardid (EQI_GARMENT,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_GARMENT) + " - [" + getitemname(getequipcardid (EQI_GARMENT,3)) + "]"; } if(getequipcardid (EQI_SHOES,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_SHOES) + " - [" + getitemname(getequipcardid (EQI_SHOES,3)) + "]"; } if(getequipcardid (EQI_ACC_L,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_ACC_L) + " - [" + getitemname(getequipcardid (EQI_ACC_L,3)) + "]"; } if(getequipcardid (EQI_ACC_R,3) == .setcomboarray[[email protected]]) { .itmCntTotal++; mes F_getpositionname(EQI_ACC_R) + " - [" + getitemname(getequipcardid (EQI_ACC_R,3)) + "]"; } else { } } mes " "; mes "Set Effect: [^00FF00Active^000000 : ^FF0000Inactive^000000] "; for ([email protected] = 0; [email protected] < getarraysize(.setcombotext$); [email protected]++) { .itmCntTotal--; if (.itmCntTotal > 0) { mes "^00FF00" + .setcombotext$[[email protected]] + "^000000"; } else { mes "^FF0000" + .setcombotext$[[email protected]] + "^000000"; } } mes " "; mes "^8b0000Note: Magicae Soul can be stacked with other Soul Sets.^000000"; close; end; }
  6. Hi Team, Is there a way to do item combo like this? instead of using item_combo_db.txt, we will create a script, or function that will count the number of parts the cards are equipped, and each part will give a different combo stats? Example: 2 Card Parts Equipped = STR + 3 3 Card Parts Equipped = INT + 5 4 Card Parts Equipped = DEX + 10 .. .. .. and so on. Thanks in advance guys.
  7. Thanks, I fixed it, I called the function multiple times in the item_db, that's what's causing the loop. I converted it into a script instead.
  8. Hi Team, How do we end loops? I'm trying to get the getitemname([email protected][[email protected]]); but I want it to only display a single set, and not loop again and again. How can we display only a single set of result, and not multiple results? I have etc. item with the same script called. Basically my concern is stopping for loop to affect other parts of the code. function script Aqua_Set { 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]])) { [email protected]++; } } if (2 < [email protected]) { mes "You can have a maximum of two out of the following list:"; for ([email protected] = 0; [email protected] < getarraysize([email protected]); [email protected]++) { mes "" + getitemname([email protected][[email protected]]) + ""; } close; } } This is the screenshot of the result of the code. This is in etc. Thank you.
  9. Hi, is there a way for this to stop looping? I mean to only display 1 value and not repeat it multiple times?
  10. 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.
  11. 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 :
  12. 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 ) {
  13. no other scr mod for this?
  14. 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!
×
×
  • Create New...

Important Information

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