Jump to content

chriser

Members
  • Posts

    94
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by chriser

  1. it does not matter if there are encrypted and normal files in the grf, i tested it manually by just merging the 2 grfs with gryff.

     

    Yea, I think i will try making another patcher and patch it locally. Thanks guys :)



    Got it working, if someone has the same question:

    I just uploded the encrypted grf file which the secure grf tool produced and listed it in the plist.txt (in my case: sdata27-10-13.grf) (important: grf, not thor!)

    Thor Patcher then merged this grf file with the standard grf file, now I just have a few files encrypted (some sprites and maps), the whole text and lua files stayed unencrypted which makes patching way easier.

    Of course you need to update your client and add the securegrflib.dll and so on, but that should be clear when using secure grf :D

  2. I think i got it, two different ways of what i understood:

    1. Filling the slots up to the selected slot (select slot 3 -> make rune into 1,2,3 || select slot 2 -> make rune into 1,2)

    prontera,155,181,5 script Sample 757,{
    mes "Which Armor you want to Enchant ?";
    mes "Make sure there is no Card / Rune in it.";
    next;
    setarray .EquipID[0],2301,2302,2303,2304,2305,2306,2307,2308,2309,2310;
    for( set .@i,0; .@i < getarraysize( .EquipID ); set .@i,.@i + 1 ){
    set .@EquipMenu$,.@EquipMenu$ + getitemname( .EquipID[.@i] )+( !getitemslots(.EquipID[.@i])?"":"["+getitemslots(.EquipID[.@i])+"]" )+":";
    }
    set .@Equip,select( .@EquipMenu$ ) - 1;
    if( !countitem( .EquipID[.@Equip] ) ){
    mes "You didnt have this Equipment with you.";
    close;
    }
    mes "Equipment : ^FF0000"+getitemname( .EquipID[.@Equip] )+"^000000";
    switch( select( "Strength:Intelligent:Dexterity:Agility:Vitality:Luck" )){
    Case 1: setarray .RuneID[0],4700,4701,4702,4703,4704,4705,4706,4707,4708,4709; break;
    Case 2: setarray .RuneID[0],4710,4711,4712,4713,4714,4715,4716,4717,4718,4719; break;
    Case 3: setarray .RuneID[0],4720,4721,4722,4723,4724,4725,4726,4727,4728,4729; break;
    Case 4: setarray .RuneID[0],4730,4731,4732,4733,4734,4735,4736,4737,4738,4739; break;
    Case 5: setarray .RuneID[0],4740,4741,4742,4743,4744,4745,4746,4747,4748,4749; break;
    Case 6: setarray .RuneID[0],4750,4751,4752,4753,4754,4755,4756,4757,4758,4759; break;
    }
    for( set .@i,0; .@i < getarraysize( .RuneID ); set .@i,.@i + 1 ){
    set .@RuneMenu$,.@RuneMenu$ + getitemname( .RuneID[.@i] )+":";
    }
    set .@Rune,select( .@RuneMenu$ ) - 1;
    mes "Rune : ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";
    next;
    .@slot = select("Slot 1:Slot 2:Slot 3:Slot 4");
    next;
    if( select("Confirm:Cancel") == 1 ){
    delitem .EquipID[.@Equip],1;
    if(.@slot == 1)
        getitem2 .EquipID[.@Equip],1,1,0,0,.RuneID[.@Rune],0,0,0;
    if(.@slot == 2)
        getitem2 .EquipID[.@Equip],1,1,0,0,.RuneID[.@Rune],.RuneID[.@Rune],0,0;
    if(.@slot == 3)
        getitem2 .EquipID[.@Equip],1,1,0,0,.RuneID[.@Rune],.RuneID[.@Rune],.RuneID[.@Rune],0;
    if(.@slot == 4)
        getitem2 .EquipID[.@Equip],1,1,0,0,.RuneID[.@Rune],.RuneID[.@Rune],.RuneID[.@Rune],.RuneID[.@Rune];
    
    mes "Done.";
    mes "^0000FF"+getitemname( .EquipID[.@Equip] )+"^000000";
    mes "Enchanted with ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";
    }
    close;
    } 

     

    2. Keeping runes which are already enchanted is only possible if you have the item equipped which you want to enchant (with getequipcardid)

  3. Hi guys,

     

    does someone know if i can patch a grf file into my standard grf file?

    i am having an encrypted grf file which i want to patch into my standard grf file, but i don't know if thor patcher is then merging the 2 grfs or overwriting my standard grf with the one he should patch.

    I have no chance of testing if its works, i can only deploy the patch live, and if the patcher overwrites the standard grf with the encrypted one, every user will have to download like 80mb again, which is not acceptable.

    (the encrypted one only has some sprites and maps in it, like 1mb or sth, my standard grf has about 80)

     

    Greets

    chriser

  4. try to change

                    ACMD_DEF(join),
                    ACMD_DEF(channel),
                    ACMD_DEF(fontcolor),
                    ACMD_DEF(langtype),
                    ACMD_DEF(reloadmsgconf)
            };
    

    to

                    ACMD_DEF(join),
                    ACMD_DEF(channel),
                    ACMD_DEF(fontcolor),
                    ACMD_DEF(langtype),
                    //ACMD_DEF(reloadmsgconf)
            };
    
  5. ah okay

    prontera,155,181,5 script Sample 757,{
    mes "Which Armor you want to Enchant ?";
    mes "Make sure there is no Card / Rune in it.";
    next;
    setarray .EquipID[0],2301,2302,2303,2304,2305,2306,2307,2308,2309,2310;
    for( set .@i,0; .@i < getarraysize( .EquipID ); set .@i,.@i + 1 ){
    set .@EquipMenu$,.@EquipMenu$ + getitemname( .EquipID[.@i] )+( !getitemslots(.EquipID[.@i])?"":"["+getitemslots(.EquipID[.@i])+"]" )+":";
    }
    set .@Equip,select( .@EquipMenu$ ) - 1;
    if( !countitem( .EquipID[.@Equip] ) ){
    mes "You didnt have this Equipment with you.";
    close;
    }
    mes "Equipment : ^FF0000"+getitemname( .EquipID[.@Equip] )+"^000000";
    switch( select( "Strength:Intelligent:Dexterity:Agility:Vitality:Luck" )){
    Case 1: setarray .RuneID[0],4700,4701,4702,4703,4704,4705,4706,4707,4708,4709; break;
    Case 2: setarray .RuneID[0],4710,4711,4712,4713,4714,4715,4716,4717,4718,4719; break;
    Case 3: setarray .RuneID[0],4720,4721,4722,4723,4724,4725,4726,4727,4728,4729; break;
    Case 4: setarray .RuneID[0],4730,4731,4732,4733,4734,4735,4736,4737,4738,4739; break;
    Case 5: setarray .RuneID[0],4740,4741,4742,4743,4744,4745,4746,4747,4748,4749; break;
    Case 6: setarray .RuneID[0],4750,4751,4752,4753,4754,4755,4756,4757,4758,4759; break;
    }
    for( set .@i,0; .@i < getarraysize( .RuneID ); set .@i,.@i + 1 ){
    set .@RuneMenu$,.@RuneMenu$ + getitemname( .RuneID[.@i] )+":";
    }
    set .@Rune,select( .@RuneMenu$ ) - 1;
    mes "Rune : ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";
    next;
    .@slot = select("Slot 1":"Slot 2":"Slot 3":"Slot 4");
    next;
    if( select("Confirm:Cancel") == 1 ){
    delitem .EquipID[.@Equip],1;
    if(.@slot == 1)
        getitem2 .EquipID[.@Equip],1,1,0,0,.RuneID[.@Rune],0,0,0;
    if(.@slot == 2)
        getitem2 .EquipID[.@Equip],1,1,0,0,0,.RuneID[.@Rune],0,0;
    if(.@slot == 3)
        getitem2 .EquipID[.@Equip],1,1,0,0,0,0,.RuneID[.@Rune],0;
    if(.@slot == 4)
        getitem2 .EquipID[.@Equip],1,1,0,0,0,0,0,.RuneID[.@Rune];
    
    mes "Done.";
    mes "^0000FF"+getitemname( .EquipID[.@Equip] )+"^000000";
    mes "Enchanted with ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000";
    }
    close;
    }
    
  6. uhm, what you could do: patch your client that the client needs the -1sak1 option (or something similar, don't know exactly what its called) maybe you can also define your own option

    then configure your patcher to start your ro client with the -1sak1 option (or if you could select a custom, then that one).

    Now, the ro client only starts when the exe got run with the -1sak1 option, and user who dont know that have to run the patcher to open the ro.exe

×
×
  • Create New...