danhakhavro
-
Posts
138 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by danhakhavro
-
-
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 , 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?
-
Pleasee, when you put this logs, put there in spoilers ....
-
Finally we did it
Select to release mode and press ctrl+shift+b
Kind Regards,
Denic
I press ctrl + shit + b but nothing happen, why?
-
Thanks for everybody ho want help me and special tanks to .Devil they solved my problem in private.
-
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. -
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.<?phpsession_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ão está activada.</center>"; Exit; }if ($dados['status'] == "BLOCK") { echo "<center>A conta está 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?
-
-
Hello Mein2dev,
I have item shop whit auto login, there work fine in game 34083 but in game 40250 their dont work.
I have source with 40250 but dont know what is worng.
I think the option auto login is must be enable in source but not sure.
If somebody know and can help me please put the fix in the comment.
Thanks for attention,
-
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.
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...
-
Table not exista ))) logicaly =)))
This table delete automaticaly and i dont know why.
Now its work fine, but now i go sleep back tomorrow and the table doesn´t exist again.
-
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.
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...
-
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.
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; -
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.
-
Have you put it right in quest?
I think yes.
-
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.
-
-
-
-
I have this problem when create user in mysql.
Do you know how solve? XD
If somebody have this problem the solution is easy.
pwd_mkdb -p /etc/master.passwdchown -R mysql /var/db/mysql && chgrp -R mysql /var/db/mysqlAfter this 2 steps you can add the user. -
I have this problem when create user in mysql.
Do you know how solve? XD
-
Yes, solved.
In you tutorial you have 1 error.
In mysql instalation you say this:
echo 'apache24_enable="YES"' >> /etc/rc.confIts mysql not apache xDWell, when i go create user i have this problem. -
I restart my freebsd server and now when start apache have this error:
i think you forgive some steps in apache24 instalation xD
-
Unable probably unsuccessful in your attempts you broke something in FreeBSD.After installing mod_php56. You really need to be that way libphp5.soUse a clean FreeBSD, resume steps in the tutorial.
Ok, i go reinstall my freebsd and try again and after i come here leave 1 comment =)
-
Yes you right, this dont create the line i add them manually but .... Other error xD
I go to cd /usr/local/libexec/apache24 and i dont have libphp5.so into this directory.
How to install a Web Server Secure on FreeBSD ?
in Operating Systems
Posted · Edited by Metin2 Dev
Core X - External 2 Internal
Why o have this problem?
I looking some tutorials and they say i must install php5-mysql, but when i install them i have this problem:
When open my "link" they download my site.
What i did wrong?