Jump to content

Tdi123

Members
  • Posts

    189
  • Joined

  • Last visited

Posts posted by Tdi123

  1. On 5/5/2022 at 12:45 AM, Emistry said:

    your script suppose to kick the second or next character who have same IP or unique id.

    But you tested with only one char, which is also an Admin character.

    Test it with 2 normal character instead.

    remove the debug message, since its meant for debug purpose

    debugmes [email protected]$;

     

    I tested with admin account, and with groud_id 0 player account

    Did not work

  2. 2 hours ago, Emistry said:
    -	script	Sample	-1,{
    
    OnInit:
    	// 1= if you have gepard 0=if you do not use gepard
    	[email protected]_gepard = 1;
    	
    	setarray .map$,
    		"quiz_00"
    		, "prt_are_in"
    		, "bat_c01"
    		, "guild_vs2"
    		, "ordeal_1-2"
    		, "coliseum"
    		, "ama_test"
    		, "quiz_02"
    		, "safari"
    		, "niflheim"
    		, "que_qsch01"
    		, "[email protected]"
    		, "[email protected]"
    		, "p_track01"
    		, "pvp_n_2-1";
    		
    	[email protected]_size = getarraysize(.map$);
    	for ([email protected] = 0; [email protected] < [email protected]_size; [email protected]++)
    		setmapflag .map$[[email protected]], MF_LOADEVENT;
    		
    	.sql_field$ = ([email protected]_gepard ? "last_unique_id" : "last_ip");
    	end;
    	
    OnPCLoadMapEvent:
    	[email protected]$ = strcharinfo(3);
    	if (inarray(.map$, [email protected]$) == -1) end;
    	
    	[email protected]$ = "SELECT `account_id` FROM `login`";
    	[email protected]$ = [email protected]$ + " WHERE 1=1";
    	[email protected]$ = [email protected]$ + " AND `group_id` < 99";
    	[email protected]$ = [email protected]$ + " AND `account_id` <> "+getcharid(3);
    	[email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `vendings` WHERE `autotrade` > 0)";
    	[email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `buyingstores` WHERE `autotrade` > 0)";
    	[email protected]$ = [email protected]$ + " AND `"+.sql_field$+"` IN (SELECT `"+.sql_field$+"` FROM `login` WHERE `account_id` = "+getcharid(3)+")";
    
    	debugmes [email protected]$;
    	[email protected] = query_sql([email protected]$, [email protected]);
    	[email protected]_aid = getcharid(3);
    	
    	if ([email protected]) {
    		for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) {
    			if (attachrid([email protected][[email protected]])) {
    				if (strcharinfo(3) == [email protected]$) {
    					attachrid [email protected]_aid;
    					dispbottom "[ BrasilRO ] Me desculpe, mas para evitar abusos, Double Clients não são permitidos nesse mapa.";
    					sleep2 2000;
    					atcommand "@kick " + strcharinfo(0);
    					end;
    				}
    			}
    		}
    	}
    	end;
    }

    please at least try to tell "what" is not working next time, thank you.

    I tested OffLine by IP and it presents this error, with unique_id, nothing happens when entering maps that cannot dual acc

    1202078669_Semttulo.png.fac9e5ed62e2efc1e6fc99cc97c9b75b.png

    with or without group_id 99, same error happens

     

    1206376353_Semttulo.png.c72f7cd61fd4bccbffcbce02f50de8d9.png

    tested in the following ways:

    [email protected]$ = "SELECT `account_id` FROM `login`";
        [email protected]$ = [email protected]$ + " WHERE 1=1";
        [email protected]$ = [email protected]$ + " AND `group_id` < 100";
        [email protected]$ = [email protected]$ + " AND `account_id` <> "+getcharid(3);
        [email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `vendings` WHERE `autotrade` > 0)";
        [email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `buyingstores` WHERE `autotrade` > 0)";
        [email protected]$ = [email protected]$ + " AND `"+.sql_field$+"` IN (SELECT `"+.sql_field$+"` FROM `login` WHERE `account_id` = "+getcharid(3)+")";

    [email protected]$ = strcharinfo(3);
        if (inarray(.map$, [email protected]$) == -1) end;
        
        [email protected]$ = "SELECT `account_id` FROM `login`";
        [email protected]$ = [email protected]$ + " WHERE 1=1";
        [email protected]$ = [email protected]$ + " AND `group_id` < 99";
        [email protected]$ = [email protected]$ + " AND `account_id` <> "+getcharid(3);
        [email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `vendings` WHERE `autotrade` > 0)";
        [email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `buyingstores` WHERE `autotrade` > 0)";
        [email protected]$ = [email protected]$ + " AND `"+.sql_field$+"` IN (SELECT `"+.sql_field$+"` FROM `login` WHERE `account_id` = "+getcharid(3)+")";

    [email protected]$ = strcharinfo(3);
        if (inarray(.map$, [email protected]$) == -1) end;
        
        [email protected]$ = "SELECT `account_id` FROM `login`";
        [email protected]$ = [email protected]$ + " WHERE 1=1";
        [email protected]$ = [email protected]$ + " AND `account_id` <> "+getcharid(3);
        [email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `vendings` WHERE `autotrade` > 0)";
        [email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `buyingstores` WHERE `autotrade` > 0)";
        [email protected]$ = [email protected]$ + " AND `"+.sql_field$+"` IN (SELECT `"+.sql_field$+"` FROM `login` WHERE `account_id` = "+getcharid(3)+")";

    [email protected]_gepard = 0; and [email protected]_gepard = 1;

    Did not work

  3. 2 hours ago, Emistry said:

    may try this

    -	script	Sample	-1,{
    	end;
    
    OnInit:
    	// 1= if you have gepard 0=if you do not use gepard
    	[email protected]_gepard = 1;
    	
    	setarray .map$,
    		"quiz_00"
    		, "prt_are_in"
    		, "bat_c01"
    		, "guild_vs2"
    		, "ordeal_1-2"
    		, "coliseum"
    		, "ama_test"
    		, "quiz_02"
    		, "safari"
    		, "niflheim"
    		, "que_qsch01"
    		, "[email protected]"
    		, "[email protected]"
    		, "p_track01"
    		, "pvp_n_2-1";
    		
    	[email protected]_size = getarraysize(.map$);
    	for ([email protected] = 0; [email protected] < [email protected]_size; [email protected]++)
    		setmapflag .map$[[email protected]], MF_LOADEVENT;
    		
    	.sql_field$ = ([email protected]_gepard ? "last_unique_id" : "last_ip");
    	end;
    	
    OnPCLoadMapEvent:
    	[email protected]$ = strcharinfo(3);
    	if (inarray(.map$, [email protected]$) == -1) end;
    	
    	[email protected]$ = "SELECT `account_id` FROM `login`";
    	[email protected]$ = [email protected]$ + " WHERE `group_id` < 99";
    	[email protected]$ = [email protected]$ + " AND `account_id` <> "+getcharid(3);
    	[email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `vendings` AND `autotrade` > 0)";
    	[email protected]$ = [email protected]$ + " AND `account_id` NOT IN (SELECT `account_id` FROM `buyingstores` AND `autotrade` > 0)";
    	[email protected]$ = [email protected]$ + " AND `"+.sql_field$+"` IN (SELECT `"+.sql_field$+"` FROM `login` WHERE `account_id` = "+getcharid(3)+")";
    
    	[email protected] = query_sql([email protected]$, [email protected]);
    	[email protected]_aid = getcharid(3);
    	
    	if ([email protected]) {
    		for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) {
    			if (attachrid([email protected][[email protected]])) {
    				if (strcharinfo(3) == [email protected]$) {
    					attachrid [email protected]_aid;
    					dispbottom "[ BrasilRO ] Me desculpe, mas para evitar abusos, Double Clients não são permitidos nesse mapa.";
    					atcommand "@kick " + strcharinfo(0);
    					end;
    				}
    			}
    		}
    	}
    	end;
    }

     

     

    Did not work

  4. Example:

    prontera,150,150,3 script pack 99,{

      mes "[Pack]";

      mes "Do you want to receive your pack right now?";

      next;
        switch(select("Yes, please:No, Thanks!")) {
            case 1:

                   close2;

                  getitem 607,3;

                   end;

            case 2:

                   close;

    }

    }

  5. 21 hours ago, Caspian said:

    I think these errors are not related with the Batteground.

    They are related with your client side, not the source code from the extended battleground.

    could you tell me a data or hexed compatible with this system?

     

    20 hours ago, Akkarin said:

    ty, sorry!

  6. Step by Step guide: 
    1.  Build the csv2yaml.bat file located in the "tools" folder. 

    2.  Once the build is complete, the build will have generated a csv2yaml.exe file located in your ROOT folder. 

    3.  Double click the csv2yaml.exe file and it will generate your txt files -> YML (If applicable). 

    Be sure to put your files to be converted in the import folder, the exe will ask if you want to overwrite the existing file. 🙂  

     

    23 hours ago, Start_ said:

    You need to compile first (It should done when you compile server)

    Then run csv2yaml.bat

    Why does this error happen, starting from this line?

    1.png

  7. I'm using the old version of rathena, where the item_db is still in .txt, if there is already an answer to this question, please post the link here, thanks in advance for the help.

    My question would be if there is any faster way, using a tool for example. Edit one by one, I know how to do it, the problem is that there are more than a thousand items lol

    Sorry for my english, I'm using google translator

  8. My idea would be using the already existing formula in the emulator:

    rathena-master\db\pre-re\item_group_db.yml

    - Group: GEMSTONE
        SubGroups:
          - SubGroup: 1
            List:
              - Item: Yellow_Gemstone
                Rate: 1
              - Item: Red_Gemstone
                Rate: 1
              - Item: Blue_Gemstone
                Rate: 1

    Sorry for my english, I'm using google translator!

     

×
×
  • Create New...

Important Information

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