Jump to content

kodkodkub

Members
  • Posts

    81
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kodkodkub

  1. -    script    jklkasdjakl    -1,{
    OnPCStatCalcEvent:
    if ( strcharinfo(3) == "prontera" ) // permanently increase 100 str as long as staying in prontera
        bonus bstr, 100;
    if ( strcharinfo(0) == "Annieruru" ) // permanently increase 200 agi if the player name Annieruru (me xD)
        bonus bagi, 200;
    end;
    }

    found this script in forum
    tested and it work well

    but I wonder if it can be use like this ?
    - Player use item (e.g. Red Potion )

    - Player get Bonus Status (e.g. bonus bFlee,10;) for 20 seconds

    - After 20 seconds bonus is gone ( not permanent like in example script )

  2. 48 minutes ago, Patskie said:

    Change 

    
    if(.@card0 == 0).@card0$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card0$ = getitemname(.@card0);
    if(.@card1 == 0).@card1$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card1$ = getitemname(.@card1);
    if(.@card2 == 0).@card2$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card2$ = getitemname(.@card2);
    if(.@card3 == 0).@card3$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card3$ = getitemname(.@card3);

    To 

    
    if(.@card0 == 0).@card0$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]"; else .@card0$ = getitemname(.@card0);
    if(.@card1 == 0).@card1$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]"; else .@card1$ = getitemname(.@card1);
    if(.@card2 == 0).@card2$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]"; else .@card2$ = getitemname(.@card2);
    if(.@card3 == 0).@card3$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]"; else .@card3$ = getitemname(.@card3);

    It happens because when you remove the first enchant item the selection menu becomes "- [ No Equip ]:", "Enchant1", "Enchant2", "Enchant3". The script engine reads ":" as delimiter in case of select command. Since it's there all the indexes of the select options are moved [ No Equp (1), empty string (2),  card2 (3), card3 (4), card4 (5) ].

    now it work perfectly
    thank you very much Patskie

  3. for(.@i=0;.@i<(MAX_ITEM_RDM_OPT-1);.@i++){
            .@r_id[.@i] = getequiprandomoption(.s_all_loc[.@s_all_selected],.@i,ROA_ID);
            .@r_v[.@i] = getequiprandomoption(.s_all_loc[.@s_all_selected],.@i,ROA_VALUE);
            .@r_p[.@i] = getequiprandomoption(.s_all_loc[.@s_all_selected],.@i,ROA_PARAM);
        }
        
        .@card0 = getequipcardid(.s_all_loc[.@s_all_selected],0);
        .@card1 = getequipcardid(.s_all_loc[.@s_all_selected],1);
        .@card2 = getequipcardid(.s_all_loc[.@s_all_selected],2);
        .@card3 = getequipcardid(.s_all_loc[.@s_all_selected],3);
        if(.@remove_orbs){
            next;
            mes "this will remove all the cards and orbs inside the item!";
            if (.s_zeny_remove > 0) {
                mes "this will cost you " + .s_zeny_remove + " Zeny.";
            }
            mes "are you sure?";
                switch(select("NO:Yes")){
                    case 1: end;
                    case 2:
                        mes "for the last time!";
                        mes "are you sure?";
                        switch(select("NO:Yes")){
                        case 1: end;
                        case 2: 
                            if (Zeny < .s_zeny_remove) {
                                mes "Sorry, but you don't have enough zeny.";
                                close;
                            }
                            if(.select_remove_orb){
                                if(.@card0 == 0).@card0$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card0$ = getitemname(.@card0);
                                if(.@card1 == 0).@card1$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card1$ = getitemname(.@card1);
                                if(.@card2 == 0).@card2$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card2$ = getitemname(.@card2);
                                if(.@card3 == 0).@card3$ = " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; else .@card3$ = getitemname(.@card3);
                                switch(select(.@card0$,.@card1$,.@card2$,.@card3$)){
                                    case 1: .@card0 = 0; break;
                                    case 2: .@card1 = 0; break;
                                    case 3: .@card2 = 0; break;
                                    case 4: .@card3 = 0; break;
                                }
                                specialeffect2 EF_REPAIRWEAPON;
                                set .@item, getequipid(.s_all_loc[.@s_all_selected]);
                                delitem .@item,1;
                                getitem3 .@item, 1, 1, .@s_item_refine, 0, .@card0, .@card1, .@card2, .@card3,.@r_id,.@r_v,.@r_p;
                                set Zeny, Zeny-.s_zeny_remove;
                                end;
                            }
                            specialeffect2 EF_REPAIRWEAPON;
                            set .@item, getequipid(.s_all_loc[.@s_all_selected]);
                            delitem .@item,1;
                            getitem3 .@item, 1, 1, .@s_item_refine, 0, 0, 0, 0, 0,.@r_id,.@r_v,.@r_p;
                            set Zeny, Zeny-.s_zeny_remove;
                            end;
                        }
                }
        }

    Original script by sader
    the part above = enchant removing part
    image.png.c09fc116b5c84a2b2f1f0ab176b5acb6.png

    as you can see from the picture
    I picked 2nd slot which is [Spell 7] to be remove
    but somehow it remove 3rd slot instead
    can someone help me fixing the script?

    thank you very much


     

    this is the full script

    sader_s_enchant_V2.6_with_random_option_support.txt

     

  4. On 4/3/2020 at 1:01 AM, Forshaken said:

    Everytime i change job into Star Emperor and Soul Reaper it shows novice sprite xD

     

    2018-05-30 client or newer to view Star Emperor, Soul Reaper sprite

     

    On 3/28/2020 at 1:24 AM, iubantot said:

    So i was wondering with the recent update of rathena it now supports Star Emperor and Soul Reaper class. What client date are you using? I seem to have a problem with the translation of the job name it is appearing as Korean.

    I tried using 2018-06-21RagexeRE and 2018-09-19Ragexe

    Im tried using zack's client translation and asheraf's but its still the same.

    try using this https://github.com/llchrisll/ROenglishRE
    image.png.89e1b3ddb41aaa38a0c3976cbdb858e0.png

  5. same server-side
    Illusion(??) effect after used Fallen Angel skill not showing in 20180919aRagexe client
    is there a way to fix this ?
    image.png.ff871da84ce6b14c502a6f632118d735.png

    another problem not sure if only me that have this problem

    image.png.6d8d91e46b4e6368d78627de3b6c23c1.png

    the feather effect look like it showing in wrong position
    it's going through the ground
    how can I fix it ?

    Thank you very much.


     

  6. make sure you remove #

    # = comment so the code wont work with it

    2 hours ago, cder said:

     

      Hide contents

    Body:

      - Mob: BG_S_EMPEL_1
        Sprite: S_EMPEL_1
      - Mob: BG_S_EMPEL_2
        Sprite: S_EMPEL_2
      - Mob: BG_EMPELIUM
        Sprite: EMPELIUM

     

     

  7. image.png.3715cbd881109e030f423c92136377f9.png

    It's a Merchant's shop that "Shop Opener" put the item that they need (like Fly Wing / B Wing in the picture)
    with the price that they want to pay each (example 40 Zeny for Fly Wing)
    so "Customers" can sell their goods to "Shop Opener" by this *Buyer Shop*

    since I see NPC can open Chatroom through *waitingroom
    I wonder if there is a way to write script for NPC to have Buyer Shop like Merchant players ?
    so players can sell theirs goods to NPC's shop
    (and yes it's up to Scripter that what items we want them to grind for Zeny
    like NPC is buying 500 Jellopys for 1000 Zeny each etc.)

  8. how can I enable this message?
    this picture from iRO it's showing when Player learn 3rd job skill but didnt use all of 1st/2nd job skill points

    unknown.png

    same case as when Player learn 2nd job skill but still have 1st job skill points left
    unknown.png

    ( edit )
    found them in my msgstringtable.txt
    but I have no idea how to enable them
    nothing happen when I try to learn 3rd job skills I just cant learn but no message showed
    image.png.d0d119001a99bb33280581af8cd3090e.png

×
×
  • Create New...