Jump to content

cozzy09

Members
  • Posts

    53
  • Joined

  • Last visited

Posts posted by cozzy09

  1. Hi,

     

    I would like to ask if this can be made through a normal script where you can buy on a sop items window using a specified item? I've seen this in one of the server but unable to replicate it.

     

    image.png.b9a8c640bdb2216b4e778e06fd0392d7.png

  2. I would like to ask if I need an alternative gcc-5 to install, tried to follow the instruction but did encountered no installation candidate on step 4.

     

    Quote

    root@Victory_RO:~# apt-get install -t unstable gcc-5
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package gcc-5 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'gcc-5' has no installation candidate
    root@Victory_RO:~#

     

  3. I know that there are lots of make_listen_bind error but for this specific error I did not find any solution since we all have different kinds of error.

    I'm getting the following error and now sure how to fix it. Can someone help me on this.

     

    image.png.ab50e75c6d6879406b18ac9926c1e99a.png

     

    Thank you in advance for those who will help me.

  4. ok ... just made a pinned topic

    prontera,155,180,5    script    test item reward#2    100,{
       .@rand = rand( 1 + 5 + 10 ); // total 16
       if ( .@rand < 1 ) { // 1/16
           getitem 503, 1;
           getitem 504, 1;
           announce "Poring Catcher : We have a winner, "+ strcharinfo(0) +". - won a prize3",0;
       }
       else if ( .@rand < 1+5 ) { // 5/16
           getitem 501, 1;
           announce "Poring Catcher : We have a winner, "+ strcharinfo(0) +". - won a prize2",0;
       }
       else { // the rest
           getitem 502, 1; // Cool FB Hat
           announce "Poring Catcher : We have a winner, "+ strcharinfo(0) +". - won a prize1",0;
       }
       end;
    }

    I'm a little bit confused about your code XD

    if will give me a 1/16 % chance of getting the item and the else only will give me all the remaining chances but what about the else if? is it 2% or a total of 6% chance of getting the item?

  5. If you want to get only 1 item at once, use 'end;'

    Otherwise, it will give you multiple items at once.

    prontera,161,182,4 script test123 110,{
    set .@prize, rand(1,100);
    if ( .@prize <= 1 ) {
     getitem 502, 1; // Cool FB Hat
     announce "Poring Catcher : We have a winner, "+.@name$+". - won a prize1",0;
     end;
    }
    
    if ( .@prize <= 5 ) {
     getitem 501, 1;
     announce "Poring Catcher : We have a winner, "+.@name$+". - won a prize2",0;
     end;
    }
    
    if ( .@prize <= 10 ) {
     getitem 503, 1;
     getitem 504, 1;
     announce "Poring Catcher : We have a winner, "+.@name$+". - won a prize3",0;
    }
    end;
    }
    

    ok thanks alot ^_^

    now the chance for item 1 = 1% then item 2 is 4% right? since its 2-5 only?

  6. can anyone tell me what's wrong with this script? it says unknown syntax

    
    gm_room,154,136,5  script   Guild Master Changer   866,{
    if(!getcharid(2))  // [b][color=#ff0000]ERROR LINE[/color][/b]
    {
    mes "[ ^336699Leo^000000 ]";
    mes "Are you Kidding me?";
    mes "You're not a member of any guild";
    close;
    }
    if(getguildmaster(getcharid(2)) != strcharinfo(0))
    {
    mes "[ ^336699Leo^000000 ]";
    mes "You're not the Guild Master of your guild";
    close;
    }
    if(agitcheck())
    {
    mes "[ ^336699Leo^000000 ]";
    mes "War is currently in progress";
    close;
    }
    mes "[ ^336699Leo^000000 ]";
    mes "OK Please Input the name of the character";
    mes "The player mus be online!";
    next;
    input @input$;
    set @success, guildchangegm(getcharid(2), @input$);
    if(!@success)
    {
    mes "[ ^336699Leo^000000 ]";
    mes "Something's wrong, maybe the player doesn't exist.";
    close;
    }
    mes "Done!";
    close;
    }
    
    

  7. guys can you tell me if I have the right idea about this script

    set $@prize, rand(1,100);
    if ( $@prize <= 5 ) {
    getitem ???, 1;
       announce "Poring Catcher : We have a winner, "+.@name$+". - won a prize1",0;
    
    }
    
    if ( $@prize <= 1 ) {
    getitem ???, 1; // Cool FB Hat
       announce "Poring Catcher : We have a winner, "+.@name$+". - won a prize2",0;
    
    }
    
    if ( $@prize <= 10 ) {
    getitem ???, 1;
    getitem ???, 1;
       announce "Poring Catcher : We have a winner, "+.@name$+". - won a prize3",0;
    }
    

    does this make it that if the random rolls to 5 which is <=5 also <= 10 will I get both items? or just the <= 5 item only?

  8. it should be data/lua files/datainfo

    Hmm that's odd.

    Are you packing the sprites into a GRF or reading from data folder? Ensure that your data folder in your RO folder has the latest lua files that you edited.

    already put it there and the

    "C:\Program Files\Miruku\data\lua files\datainfo\luac5.0.2.exe" -o "accname..lub" "accname.lua"

    "C:\Program Files\Miruku\data\lua files\datainfo\luac5.0.2.exe" -o "accessoryid.lub" "accessory.lua"

    i didn't put it in GRF files just from the data folder

  9. Can you post a screenshot of both your lua entries so I can see how the rest of your entries are forming. 875 isn't used anywhere else is it?

    here is the screen shot of my accname and accessoryid lua's that is located in ...data\luafiles514\lua files\datainfo

    post-1917-0-34755900-1358659646_thumb.png

    post-1917-0-48225600-1358659649_thumb.png

  10. k here i teach u the easiest way,

    after u download u will get that will as grf file rite?

    thn put that grf file into kro folder.

    next go to data.ini @ data confiiguration file.

    set ur background grf as 1,

    thats mean the first grf it will load is ur background, make sure ur client could load multi grf files

    lol I already did that and that's what happened... It should only have this background

    post-1917-0-07462100-1358562073_thumb.jpg

×
×
  • Create New...