Beiträge von strangerino
-
-
Would like to ask you one more thing, I'm trying to use utf-8 in the server source, but I only see "?" instead of our special symbols.
I edit the file in Notepad++ (Encoding: UTF8 without BOM, WE > ISO 8859-1, ANSI). None of those worked correctly.Also, is it possible to change the color of the chat message / assign the chat output to client's locale (Displaying a predefined message from Client. Ex: Server requests variable CHAT_MINING_SPECIAL and client responds with CHAT_MINING_SPECIAL Blablabla)?
-
It works fine by now. Thank you!
-
Lua only.
I'm editing the mining.quest file.Code- quest mining begin
- state start begin
- when 20047.click or
- 20048.click or
- 20049.click or
- 20050.click or
- 20051.click or
- 20052.click or
- 20053.click or
- 20054.click or
- 20055.click or
- 20056.click or
- 20057.click or
- 20058.click or
- 20059.click or
- 30301.click or
- 30302.click or
- 30303.click or
- 30304.click or
- 30305.click or
- 30306.click begin
- if pc.is_mount() != true then
- pc.mining()
- local random = math.random(0,1000)
- if random == 156 then
- game.drop_item_with_ownership(90003)
- chat("Skvěle! Ale, co to je? Možná nějaký klíč. ")
- chat("Měl bych zjistit k čemu slouží... ")
- end
- end
- end
- end
- end
Would like to call math.random only if the item is dropped, but I'm worried it will affect my game.drop_item_with_ownership, because it drops an item too and I don't want it to be called twice.This is my expectation:
Player starts to mine an ore and every time he gets a drop the script will use an event to call a function generating a random number.
If the random number equals to 156, the player will receive a message and a specified item. -
Could you please introduce me to callbacks and how to use them in quest files?
Tried to find a thread explaining it, but didn't find it.
-
Hello,
I would like to ask you - is there a function to detect whether player has finished mining successfully?
Or maybe an event that's called after dropping an item with player's name?I'm currently working on a mining system and I need to call a function every time after player has finished mining (successfully).
-
ToXiC4K thank you so much for helping me!
-
I don't know if anybody of you already faced this problem, but I will just give it a try.
I'm trying to edit NPC names which are serversided, so changing NPC names in client's mob_proto won't affect them, which means you need to edit them in the database, but as I'm not from an english speaking country, I need to use our special letters.
But the problem is that even if I set the database encoding to Ascii/utf8/cp1250/latin2/latin1 I can't see the ingame diacritics properly. I can only see long a (á).
The only difference was made by latin1 and ascii which didn't even display the long a symbol.I have also been searching through the serverfiles and noticed there's a folder named "Datenbank" containing "conf.txt" and there is a line "LOCALE latin1" which I tried to edit to latin2, utf8, ansi, cp1250, but none of them worked and had any effect on my NPC names.
My client DOES display our special letters properly, because I can see them in the chat and in the rest of client's mob_proto. Everything works just fine, it's just that there is a problem somewhere between the database and the server.
What would you recommend me to figure this out?
-
Well, so I found this on the internet and added it to the server.
I created a folder in quest called "Actions" and then reloaded the quests, using Fliege's control panel (sh index.sh > 4 (Reload quests))
Still can't mine any ore.Code- -- # --------------------------------------------- #
- -- # Questfile from Metin2SF by Ethoard #
- -- # --------------------------------------------- #
- quest mining begin
- state start begin
- when 20015.chat."Otwórz sklep" begin
- setskin(NOWINDOW)
- npc.open_shop()
- end
- when 20015.take with item.vnum >= 29101 and item.vnum < 29200 and item.get_socket(0) != item.get_value(2) begin
- say_title("Deokbae:")
- say("Ten kilof posiada zbyt ma31 ilooa punktów.")
- say("")
- end
- when 20015.take with item.vnum >= 29101 and item.vnum < 29200 and item.get_socket(0) == item.get_value(2) begin
- say_title("Deokbae:")
- say("Chcesz ulepszya swój Kilof? Zobaczmy...")
- say("Teraz Kilof ma poziom ".. item.get_level())
- say("")
- if item.get_value(3) == 100 then
- say_title("Deokbae:")
- say("Czy chcesz go ulepszya?")
- say("")
- else
- say_title("Deokbae:")
- say("Jeoli sprobuje ulepszya Kilof, jego poziom mo?e")
- say("zostaa zredukowany, szansa to" .. 100-item.get_value(3).. "%.")
- say("Czy mam kontynuowaa?")
- say("")
- end
- local s = select("Tak", "Nie")
- if s == 1 then
- local f = __refine_pick(item.get_cell())
- if f == 2 then
- say_title("Deokbae:")
- say("Niestety, ulepszanie nie powiod3o sie...")
- say("")
- elseif f == 1 then
- say_title("Deokbae:")
- say("Uda3o sie! Oto Twój kilof.")
- say("")
- else
- say_title("Deokbae:")
- say("Niestety, ulepszanie nie powiod3o sie.")
- say("Poziom przedmiotu zosta3 obni?ony.")
- say("")
- end
- end
- end
- when 20047.click or 20048.click or 20049.click or 20050.click or 20051.click or 20052.click or 20053.click or 20054.click or 20055.click or
- 20056.click or 20057.click or 20058.click or 20059.click or 30301.click or 30302.click or 30303.click or 30304.click or 30305.click begin
- if pc.is_mount() != true then
- pc.mining()
- end
- end
- end
- end
-
Hello,
I would like to ask you/tell you about my problem that I'm currently facing and cannout figure out whats wrong.The thing is that if I take a pickaxe and click an ore, I'm unable to mine it. My character moves to the ore, but doesn't mine.
What should I take a look at as first? I tried to check mob_proto in the server database, but there is a huge load of paramaters and I honestly have no idea which one is the one affecting mining.Thanks in advance!
-
I have no idea what was so different comparing to the tutorial I found, but surprisingly this works very well and my friends are now able to connect the server with no problems.
Thank you so much! You actually helped me a lot, because I was messing with this since yesterday's morning, so it was a really long time, I can finally have a good sleep now, lmao. -
So, I've looked up the loopback adapter method you told me about and on an unnamed forum I found, that I need to create the loopback adapter and set IPv4 to my external IP with ending .1 and also use it as a gateway in sysinstall.
Sysinstall:
IPv4 Gateway: 86.63.xxx.1
IPv4: 86.63.xxx.222
Mask: 255.255.255.0Loopback Adapter:
IPv4: 86.63.xxx.1
Mask: 255.255.255.0I did these steps, set Loopback Adapter as the default connection for VirtualBox, but it didn't work.
I tried to turn on the ports in portmaps, but every time I tried to check a specific port or connect to it, the portmaps application died.Let me explain you my situation.
I have a router running on a public (static) IP 86.63.xxx.222 with a gateway 86.63.xxx.221 and mask 255.255.255.252.
There are three devices behind the router:
-> .100 (Computer)
-> .101 (Computer I'm trying to run the FreeBSD VirtualBox server on)
-> .101 (Switch leading into more devices)So theoretically... How am I able to use the external IP for the Loopback Adapter while it's being used by the router? As far as I know, I can never use one IP for multiple devices, because one of the devices would not work.
So what steps should I take to make it work as it should?
What should I set to the loopback adapter and what should I set to sysinstall, now that you know the situation I'm in and that you know my network configuration (scheme). -
I downloaded this serverfiles, configured everything, changed serverinfo.py to my IP, but I'm facing a little problem.
Everything is set up on a public IP using DMZ, so all ports are open.
But the problem is that if I join the server, everything works just fine, but when I tell my friend to join the server, he logins, chooses a character, but after he chooses a character, the game wont even get into loading "into the game" and it automatically logs him out.I even tried more clients, but still the same problem...
Just a note:
I edited serverinfo.py to my public IP 86.63.xxx.xxx and all ports are running.
Even tried to disconnect my second computer from my network and connect it to t-mobile using my phone, I noticed that I'm unable to connect too... I'm only able to connect the server, when I'm connected to my network, where the server is running, otherwise I only log in and the game kicks/logs me out after I choose a character.What should I do? How do I fix this problem?
Is it a client's fault or serverfiles fault?Note 2:
Asked a friend of mine to access the ftp/mysql, he can access it with no problems, so I honestly have no idea where to take a look and what to focus on, to figure this all out.
Sysser.txt is empty in both clients I tried out. -
Hello,
I'm trying to create a metin2 server on a public IP, but I'm failing at portmaps configuration. I'm using my internal IP 192.168.0.102 as a portmap IP and then I forward it in router to my public IP, but whenever I start all the ports in the app portmap.exe, open the ports in router and check it from any website to check ports, then the portmap.exe file crashes, so the port gets closed... I tried a lot of portmaps, but every portmap I tried was doing the same thing...What can be wrong?
-
Hello,
I bought a VPS from OVH, but they don't offer FreeBSD as an optional OS, so I contacted them to get more info and I've been told to use KVM to install FreeBSD. That I need to change the boot settings and boot the OS from an iso file, but they didn't specify how to get into BIOS.
I tried something on my own, but didn't succeed. Tried pressing F1 - F12, inc. Escape, but none of those worked, so I failed.Do you have any idea how to get into the BIOS and boot the FreeBSD iso file?