Jump to content

KazumaSatou

Members
  • Posts

    147
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by KazumaSatou

  1. 4 hours ago, Dwany said:

    Hello guys, I am trying to understand how lua/lub files works, where are the functions that are used?

    Btw... Just a question.

    I wanted to know if it is possible to hide disabled skills.

    for exemple Beast Strafing.

     

     

    You can hide disable skills (if you want to literally remove from game) on luafiles514/lua files/skillinfoz/skilltreeview.lub and make sure you also remove it from db/(pre-)re/skill_tree.yml file.

  2. 26 minutes ago, rizsu0107 said:

    I still getting errors.

    image.thumb.png.9dcecb27e1355f2f5b11e2e98fbeab5c.png

    This is the script I am working on.

    world_boss.txt

    query_sql("SELECT `last_ip` FROM `ragnarok_accounts`.`login` WHERE `account_id` = "+getcharid(3)+"",.@IP );
    query_sql("SELECT `account_id` FROM `ragnarok_accounts`.`login` WHERE `last_ip` = "+.@IP+"",.@Accountlist );

    Here. The database and table has been swapped. 

  3. 10 minutes ago, rizsu0107 said:

    I just copied this in Euphy's WOE Controller, the one that have " // " is the default, I just added the User `ragnarok_accounts` because I have multiple servers. It is also the same when the woe ends I receive SQL DB error too.
    image.thumb.png.df5d2981994efc227f4e3f53f8b02a7c.png

    image.png.2370a844474fb8916d9a53d3682b8e8b.png

    Yes, that's why I added the database name on the table on my code, try to use the < 1 on the if(.@lastip$ if it works

  4. 23 minutes ago, rizsu0107 said:

    Hello, having trouble on this script, I really don't know how to fix it. Please help me!
    if (query_sql("USE `ragnarok_accounts` SELECT `last_ip` FROM `login` WHERE `account_id` = '" + .@aid[.@j] + "'", .@last_ip$) < 1)

    If I understand the query_sql correctly this is the setup just based on the script.

    ragnarok_accounts

    image.png.cd204d4bb687972b633ccc17ba13dfe7.png

    last_ip
    image.png.032f0eb84b6473f51cb8d688284f09a9.png

    account_id
    image.png.ca967f8ba999f31f9ddf709a2c84a201.png


    image.thumb.png.8aae1aad238bdaa518c8eefd1653c31b.png

    Try this :

    query_sql("SELECT `last_ip` FROM `login`.`ragnarok_accounts` WHERE `account_id` = "+.@aid[.@j]+"",.@last_ip$);
    if(.@last_ip$ == ""){
    	do things here when last ip is empty.
    }

    I don't know why you're using the < 1 on checking ip since the ip is a string so it won't be read if you're comparing it to an integer.

  5. 2 hours ago, iFox said:

    Sir i mean the UI. As you can see. My Barter is on the 1st pic. And what i want is on the second pic. It look different.

    The red box you're saying?
    That's only on the item icon. You can check it on your grf.

  6. 38 minutes ago, iFox said:

    barter1.png.4bbec8eecb6103754b2b41864e16d37f.pngimage.png.b9a8c640bdb2216b4e778e06fd0392d7.png.5c1d0588b4678fc08a8d0469f5a2549a.png

    hi guys good day. i hope you are all feeling well. Can you please help me with this one? how come the other server have this kind of barter npc with box on each item? and mine is none?  Thank you so much.

    What do you mean by box? The barter system itself? You can add your custom barter system by creating your own in npc folder. There's a barters.yml file there.

  7. 5 hours ago, yodaGG said:

    i put aldy but still error :
     

     

    Try this.
     

    new_1-4,12,187,6    script    Donaion Instant Armor    794,{
        mes "[Donation Instant Armor By Friday]";
        if (countitem(7615) > 0) {
            mes "Select Your Armor";
            next;
            switch(select("Non Slotted Armor.:Slotted Armor.:High Grade Armor.:Maybe next time.")){
            case 1:
                setarray .@Items[0],2307,2309,2314,2316,2321,2325,2327,2328,2330,2332,2334,2335,2341,2344,2346,2348,2350,2337,2386,2394,2395,2396;;
                break;
            case 2:
                setarray .@Items[0],2311,2318,2319,2320,2308,2310,2315,2317,2322,2324,2326,2331,2333,2336,2342,2345,2347,2349,2351;
                break;
            case 3:
                setarray .@Items[0],2364,2365,2391,2374,2375,2357,2376,2377,2378,2379,2380,2381,2382,2387,2388,2389,2390,2367;
                break;
            case 4:
                mes "[Donation Instant Armor]";
                mes "Please come back when you have any interest.";
                close;
            }
            mes "Select Your ORB";
            next;
            switch(select("Select Orb.:Maybe next time.")) {
            case 1:
                setarray .@orb[0],4702,4732,4742,4712,4722,4752;
                break;
            case 2:
                mes "[Donation Instant Armor]";
                mes "Please come back when you have any interest.";
                close;
            }
            mes "U Need to Refine?. +1,+2,+3,+4,+5,+6,+7,+8,+9,+10 ?";
            mes "If you don't want any, please enter the number, '0.'";
            next;
            while(1) {
                input .@darmorrefine;
                if (.@darmorrefine == 0) {
                    mes "The deal has";
                    mes "been cancelled.";
                    close;
                }
                else if (.@darmorrefine < 0 || .@darmorrefine > 10) {
                    mes "Maximum Refine +10";
                    mes "got it? Good.";
                    next;
                }
                else {
                    break;
                }
                progressbar "ffff00",1;
                delitem 7615,1;
                specialeffect 154;
                getitem2 .@item, 1, 1, .@darmorrefine, 0, 0, 0, 0, .@orb;
            }
        }
        else {
            mes "Hmm? There's nothing to be enchanted!";
            mes "Please come back with just ONE equipment to be enchanted.";
            close;
        }
    }

     

  8. 21 hours ago, nelax said:

    Hey guys! I would like to ask for help from an npc.
    when clicking on the item would call a callfunc which would run the following script.

    would open a window checking if the player has the following items in inventory. 60000, 60001, 60002.
    if it has one of the mentioned ids, the player would click on the item and be teleported to a map.

    Add in your item script : 

    callfunc("KeyWarp");

    NPC Function Script :
    Just change the item ids and the showscript to warp to anywhere you want.
    Mark as solution if this helped you. ^^

    function	script	KeyWarp	{
    	if(countitem(6266) >= 1 || countitem(6267) >= 1 || countitem(6268) >= 1)
    		menu (countitem(6267) ? ""+getitemname(6267)+"":""),Test1,(countitem(6268) ? ""+getitemname(6268)+"":""),Test2,(countitem(6266) ? ""+getitemname(6266)+"":""),Test3;
    	else
    		showscript "You don't hold any key.";
    		end;
    
    Test1:
    	showscript "Warp To Key of Illusion";
    	end;
    Test2:
    	showscript "Warp to Key of Gaiety";
    	end;
    Test3:
    	showscript "Warp to Key of Deception";
    	end;
    }

    image.png.b70c8d3ca71fa168025933221d2528ef.png

    image.png.ab20d59333e0b8973bde66e6be90f580.png

    image.png.c4cdd017d97ae0ab1e27aaee88c28eaf.png

    image.png.90219a824e141c760f32497054e7d7fa.png

    image.png.d5fb8579a1752634322ee7581b9d1400.png

  9. 13 hours ago, Yukaiii said:

    Good morning my dears!
    I would like to take a doubt with you..
    By the way, is there any way to use a current, hexed patch on an old emulator?
    Anyone got it yet?

    You can diff old clients that supports the old emulator.

  10. 1 hour ago, ran0120 said:

    I'm trying to create a server again after so many years and there's a lot of things that has been changed and I'm not aware of. I was able to login to my server but once I did, the name of the map that shows when you enter a map and when I type /where it shows this korean//ascii-ish text. Any one know how to fix this? 

     

    Thanks.

    issue_01.png

    issue_02.png

    System/TownInfo.lub

  11. 8 hours ago, WATAFAK said:

    I need help, "Attempt to connect patch server..." u.u

    Config: 

    [Config:Main]
    
    RootURL='https://svn.code.sf.net/p/myro/svn/patcher/'
    
    RemoteConfigFile='main.ini'
    
    TimeOut=0
    
    StatusFile='playro.dat'
    
    DefaultGRF='playroworld.grf'
    
    ClientEXE='playro.exe'
    ClientParameter='-1sak1'

    Main:

    //         ftp://domain.com/dir/
    //     o With <Username> [Password] [Port]
    //	ftp://username:[email protected]:port/dir/
    //     o Note: username is required if want put password, otherwise everything is optional.
    file_url=https://svn.code.sf.net/p/myro/svn/patcher/data/

     

    Screenshot_4.png

    Thor patcher doesn't allow https I think.

    • Love 1
  12. Just now, GM Winter said:

    hello ive already try it and i also edit the script in shop 1 & 2 and as of now i dont have experience any error i just want to ask regarding the sleep 3000; can we remove it so the waiting room will not disappear because each time im going to the npc it takes 3 secs to appear the waiting room

    You can adjust it, because if you don't have sleep, there's no thing to loop for the while. You can set it to 100ms or lower or 1 second. Just to keep the while looping.

  13. 45 minutes ago, GM Winter said:

    hello i would like to ask how to put waiting room here 

     

    prontera,164,203,6    script    Quest Shop#1    998,{ callfunc "qshop"; }
    prontera,164,203,6    script    Quest Shop#1    998,{ 
    	callfunc "qshop"; 
    	end;
    
    	OnInit:
    	waitingroom "Quest Shop", 0;
    	end;
    	}

    i try this one and its working fine but how about if it has many shop inside that npc example is:

    prontera,164,203,6 script Quest Shop#1 998,{, callfunc "qshop",3,4,5; }

    Normally, there's only 1 NPC with multiple shops inside (By Category or Menu) so it will only have 1 waiting room so the one you made is fine.

  14. 1 hour ago, hikoshijiro said:

    Thank you for the reply,

    but i still got the error that state: npc_parsesrcfile: Unknown syntax in file 'npc/jobs/banker.txt', line '1'. Stopping...
     * w1=prt_in,43,109,4 script  Prontera Banker 105,{
     * w2=
     * w3=
     * w4=

    Replace the <tab> here
    prt_in,43,109,4<tab>script<tab>Prontera Banker<tab>105,{

  15. 1 hour ago, Kaye said:

    Just like what I've said, I cannot find the file in that directory/path/location. ?

    Hello!
    This post is a decade old.

    You can remove the Item Restriction on your GRF 'data/itemmoveinfov5.txt'
     

    //===========================================
    // ItemID | Drop | Trade | Storage | Cart | SelltoNPC | Mail | Auction | Guild Storage
    // This format does not accept blank lines. Be careful.
    //===========================================
    //= item_db_usable.yml
    //===========================================
    6046	1	1	1	1	1	1	1	1	// Clothing Dye Coupon
    6047	1	1	1	1	1	1	1	1	// Clothing Dye Coupon II

    Just make it all 0 or remove the whole line for the item you want to remove the restriction and it will be gone once you already removed it.
    If you want to show the restriction like drop only or drop or trade, make all the other value to 0 and 1 for the Drop and Trade.
    Just edit it to your likings.
    If you have more questions or need help on something, you can contact me on discord at -R#9305

×
×
  • Create New...