Jump to content

danhakhavro

member
  • Posts

    138
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by danhakhavro

  1. I've got a question for you , when i enter in the client , even if i modify /data/root/serverinfo.py even if i modify /data/pc2/root/serverinfo.py , the name of servers ports and ip still remain as they are..

    Solutions please?:-d

     

    ####EDIT :  I deleted root and pc1 + 2 then compiled , same thing :D , do i need to delete every .pyc file from every folder ?

     

    Some problem, i change serverinfo.py but them dont change....

    Somebody know the solution?

  2. It's ok, but if in the 34083 you've changed the sas key the problem is that. In the source the sas key is for default (if I don't wrong) GF9001.

    So, you've to edit this:

    if ($sas == md5($playerID . $accountID . "####X"))
    

    to:

    if ($sas == md5($playerID . $accountID . "GF9001"))
    

    or change it in source.

     

    Yes, i put ### because it is password xD But yes i change it in source, when i open item shop in game they say: "Error".

     

    #return false;
    echo "<center>Error</center>";

     
    In 34083 i put diff, now i dont have it and dont know if diff change only the "GF9001" or any else.
  3. For the auto login in your item-shop you've to receive to your PHP script the player id (pid) as GET request ([...]/ishop?pid=231). Check the received requests with:

    <?php
    	exit(filter_input(INPUT_SERVER, 'REQUEST_URI')); // /ishop?pid=231[...]
    ?>
    
    and see how your item-shop do the login.

     

     

     

    <?php
    session_start();
    mysql_connect("localhost", "www", "XXXXXX");
     
    $pid = $_GET['pid'];
    #$c = $_GET['c'];
    #$sid = $_GET['sid'];
    $sas = $_GET['sas'];
     
    function logar($sas, $playerID)
    {
    $IDCONTA = mysql_query("SELECT * FROM player.player WHERE id = '".$playerID."'");
    $accountID2 = mysql_fetch_array($IDCONTA);
    $accountID = $accountID2['account_id'];
    if ($sas == md5($playerID . $accountID . "####X"))
    {
     
    $username = mysql_query("SELECT * FROM account.account where id = '".$accountID."'");
    $dados = mysql_fetch_array($username);
    if ($dados['status'] == "N ACTIV") { echo "<center>A conta ainda n&atilde;o est&aacute; activada.</center>"; Exit; }
    if ($dados['status'] == "BLOCK") { echo "<center>A conta est&aacute; bloqueada.</center>"; Exit; }
    $_SESSION['user_login']=1;
    #$_SESSION['user_id']=$dados['id'];
    $_SESSION['user_id']=$dados['id'];
    $_SESSION['user_name']=$dados['login'];
    $_SESSION['user_mail']=$dados['email'];
    $_SESSION['user_coins']=$dados['cash'];
    $_SESSION['user_delcode']=$dados['social_id'];
    echo'<meta http-equiv="refresh" content="0; URL=ishop.php"> ';
    #echo "certo";
    exit;
    } else
    {
    #return false;
    echo "<center>Error</center>";
    }
     
    }
     
    logar($sas, $pid);
     
    #if(logar($sas, $pid) == true) {
     
    #}
     
    ?>

     

     

    snprintf(buf, sizeof(buf), "mall http://%s/ishop?pid=%u&c=%s&sid=%d&sas=%s",
    				g_strWebMallURL.c_str(), ch->GetPlayerID(), country_code, g_server_id, sas);
    

    Code in source. This make you link like: http://%s/ishop/?pid=7&c=ro&sid=1&sas=0

     

     

    In my source i have like that:

     

    snprintf(buf, sizeof(buf), "mall http://%s/ishop?pid=%u&c=%s&sid=%d&sas=%s",
    g_strWebMallURL.c_str(), ch->GetPlayerID(), country_code, g_server_id, sas);
     
    ch->ChatPacket(CHAT_TYPE_COMMAND, buf);
    }
    }
     

     

    My link is for example, www.metin2dev.org/ishop2 how i must put it there?

  4.  

     

    Hello metindev,

     

    I have 1 problem in my mysql, i want too create a table but when i crate it, she work fine, but when i turn pc off and back another day the table doesnt exist.

     

    If i doo backup of mysql the problem to be continued.

     

    There print of my problem.

     

    TlM1d.png

     

    Somebody know how i can solve it?

     

    There a table of mysql:

     

    CREATE TABLE IF NOT EXISTS `XXXX` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `nume` varchar(30) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

     

     

    Somebody know why this happen?

    Its really boring...

     

  5.  

    Hello metindev,

     

    I have 1 problem in my mysql, i want too create a table but when i crate it, she work fine, but when i turn pc off and back another day the table doesnt exist.

     

    If i doo backup of mysql the problem to be continued.

     

    There print of my problem.

     

    TlM1d.png

     

    Somebody know how i can solve it?

     

    There a table of mysql:

     

    CREATE TABLE IF NOT EXISTS `XXXX` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `nume` varchar(30) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

     

     

    Somebody know why this happen?

    Its really boring...

  6. Hello metindev,

     

    I have 1 problem in my mysql, i want too create a table but when i crate it, she work fine, but when i turn pc off and back another day the table doesnt exist.

     

    If i doo backup of mysql the problem to be continued.

     

    There print of my problem.

     

    TlM1d.png

     

    Somebody know how i can solve it?

     

    There a table of mysql:

     

    CREATE TABLE IF NOT EXISTS `XXXX` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `nume` varchar(30) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

  7. No you don't :)

     

    If u want for example green Q icon.. you have this:

        if name[0] == '*':
            btn.SetUpVisual("locale/cz/icon/scroll_close_green.tga")
            btn.SetOverVisual("locale/cz/icon/scroll_open_green.tga")
            btn.SetDownVisual("locale/cz/icon/scroll_open_green.tga")
    

    So use in the quest this: send_letter("*Test Quest")

     

    Yes, now its work!!! 

    Thanks you very much.

     

    Mrdhe.jpg

  8.  

     

     

    For files 40250:

     

    interfacemodule:

    		# QUEST_LETTER_IMAGE
    		##!! 20061026.levites.Äù½ºÆ®_À̹ÌÁö_±³Ã¼
    		import item
    		if "item"==iconType:
    			item.SelectItem(int(iconName))
    			buttonImageFileName=item.GetIconImageFileName()
    		else:
    			buttonImageFileName=iconName
    
    		if localeInfo.IsEUROPE():
    			if name[0] == '*':
    				btn.SetUpVisual("locale/cz/icon/scroll_close_green.tga")
    				btn.SetOverVisual("locale/cz/icon/scroll_open_green.tga")
    				btn.SetDownVisual("locale/cz/icon/scroll_open_green.tga")
    				name = name[1:]
    			elif name[0] == '&':
    				btn.SetUpVisual("locale/cz/icon/scroll_close_blue.tga")
    				btn.SetOverVisual("locale/cz/icon/scroll_open_blue.tga")
    				btn.SetDownVisual("locale/cz/icon/scroll_open_blue.tga")
    				name = name[1:]
    			else:
    				btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
    				btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
    				btn.SetDownVisual(localeInfo.GetLetterOpenImageName())				
    				if "highlight" == iconType:
    					btn.SetUpVisual("locale/ymir_ui/highlighted_quest.tga")
    					btn.SetOverVisual("locale/ymir_ui/highlighted_quest_r.tga")
    					btn.SetDownVisual("locale/ymir_ui/highlighted_quest_r.tga")
    				else:
    					btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
    					btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
    					btn.SetDownVisual(localeInfo.GetLetterOpenImageName())				
    		else:
    			btn.SetUpVisual(buttonImageFileName)
    			btn.SetOverVisual(buttonImageFileName)
    			btn.SetDownVisual(buttonImageFileName)
    			btn.Flash()
    		# END_OF_QUEST_LETTER_IMAGE

    uicharacter:

    		for i in questRange[:questCount]:
    			(questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(self.questShowingStartIndex+i)
    			if questName[0] == '*':
    				questName = questName[1:]
    			elif questName[0] == '&':
    				questName = questName[1:]
    			elif questName[0] == '~':
    				questName = questName[1:]
    			self.questNameList[i].SetText(questName)
    			self.questNameList[i].Show()
    			self.questLastCountList[i].Show()
    			self.questLastTimeList[i].Show()
    

    ;-) this work for 100% on 40250..

     

     

    Some is worong, i put how you say and here a result.

     

    SS1ge.png

  9. I have this problem when create user in mysql.

     

    y5F4c.png

     

    Do you know how solve? XD

     

    If somebody have this problem the solution is easy.

     

    pwd_mkdb -p /etc/master.passwd
    chown -R mysql /var/db/mysql && chgrp -R mysql /var/db/mysql
     
    After this 2 steps you can add the user.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.