-
Posts
12 -
Joined
-
Last visited
-
Feedback
0%
About Diogo Neto
Informations
-
Gender
Male
Recent Profile Visitors
234 profile views
Diogo Neto's Achievements
-
Diogo Neto started following Discord Rich Presence , [Summary Thread] Programming & Scripts / Systems , Cape System and 7 others
-
set_quest_state not working
Diogo Neto replied to Diogo Neto's topic in Community Support - Questions & Answers
Didn't work -
Hi, I'm implementing a system for choosing skills instantly. I've created a quest so that when the player clicks on it, it opens a GUI for the player to choose skills. Quest: quest select_skill begin state start begin when login or levelup with pc.level>=5 and pc.skillgroup == 0 begin set_state(run) end end state run begin when login with pc.get_skill_group()!=0 begin restart_quest() end when login or levelup with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin send_letter("Choose your path"); end when button or info with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin command ("selectskill_open"); end end end The quest works perfectly under these conditions, but when I try to set_state_quest in the skill_reset2 quest to call it as soon as the skills are reset, it is not called. Quest 2: quest skill_reset2 begin state start begin when 9006.chat.gameforge.skill_reset2._10_npcChat begin if pc.level < 5 then say_title(gameforge.couple_ring._20_sayTitle) say(gameforge.skill_reset2._20_say) return end if pc.level >30 then say_title(gameforge.couple_ring._20_sayTitle) say(string.format(gameforge.skill_reset2._30_say, pc.level)) return end if pc.get_skill_group()==0 then say_title(gameforge.couple_ring._20_sayTitle) say(gameforge.skill_reset2._40_say) return end local cost = 10000 + pc.level * 2000 local s = 0 if not pc.has_master_skill() then say_title(gameforge.couple_ring._20_sayTitle) say(string.format(gameforge.skill_reset2._50_say, cost)) s = select(gameforge.skill_reset2._10_npcChat, gameforge.skill_reset2._60_select) else say_title(gameforge.couple_ring._20_sayTitle) say(gameforge.skill_reset2._70_say) wait() say(string.format(gameforge.skill_reset2._80_say, cost)) s = select(gameforge.skill_reset2._90_select, gameforge.locale.cancel) end if 2==s then say_title(gameforge.couple_ring._20_sayTitle) say(gameforge.skill_reset2._110_say) return end if pc.money < cost then say_title(gameforge.couple_ring._20_sayTitle) say(gameforge.skill_reset2._120_say) return end pc.changegold(-cost) pc.clear_skill() pc.set_skill_group(0) set_quest_state("select_skill","run") end end end This quest was already created in the severfiles when I started using it, I just changed the set_quest_state to the quest I wanted to call. If someone could help me explain why this is happening, I'd be very grateful.
-
How the quest works
Diogo Neto replied to Diogo Neto's topic in Community Support - Questions & Answers
Thank you both! -
Hello, I'm a beginner at making quests and I've been studying the code to get an idea of how it works, however, I'm running into some doubts. How does inserting a new quest into the server work? In other words, my question here is whether there is a specific file to insert the quest into or whether I can insert the quest anywhere. After inserting the quest, do I have to go somewhere to inform the server that it has to run that quest or will it know that it has to run it automatically as soon as I put the quest in a file?
-
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Diogo Neto replied to TMP4's topic in Binaries
At first I thought the server wouldn't start because of the changes I had made when changing the server language. However, the error had nothing to do with the steps taken to change the server language. I simply had a non-existent vnum item in a file and the server wouldn't start because of it. It's stupid, I know, but I'm new to this, so sometimes I have trouble figuring out where the error is. -
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Diogo Neto replied to TMP4's topic in Binaries
Error solved -- Edited -
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Diogo Neto replied to TMP4's topic in Binaries
Whenever I change the "special_group_item.txt" file, I can no longer connect to the server, what could it be? -
Failed to load image
Diogo Neto replied to Diogo Neto's topic in Community Support - Questions & Answers
It worked, thank you very much mate! -
Hello, I'm implementing a new system on my metin2 server and for that I have to add images, but the path is not being validated. This is what I see in 'syserr' : 0123 02:30:21226 :: uiRemoteShop.py(line:18) __LoadDialog ui.py(line:2946) LoadScriptFile ui.py(line:3142) LoadChildren ui.py(line:3070) LoadChildren ui.py(line:1983) __init__ RemoteShopDialog.__LoadDialog - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/pattern/thinboardcircle/thinboard_corner_rightbottom_circle.tga) 0123 02:30:21226 :: ============================================================================================================ 0123 02:30:21226 :: Abort!!!! I think it's because I had to create the 'ymir work' file myself and put it inside the client, but I confess I don't understand how that works. I don't understand how, before I created that file, I already had images with that '/ymir work' path. Can anyone tell me what I have to do to solve this and how this 'ymir work' thing works? Best Regards!
-
Hi, I'm new to creating metin2 servers. I'm currently customizing one to understand how it works. I'd like to implement some content I found on the Forum, but the creator of that content says I have to make changes in the "UserInterface" folder in the following files: - Locale_inc.h - Packet.h - PythonApplicationModule.cpp - PythonNetworkStream.h - PythonNetworkStreamModule.cpp - PythonNetworkStreamPhaseGame.cpp My problem is that I can't find the folder neither the files... Can anyone explain how I can access these files to make the necessary changes? I'd be very grateful for your help!
-
What's the file directory?
Diogo Neto replied to Diogo Neto's topic in Community Support - Questions & Answers
Very detailed, thanks a lot buddy -
Diogo Neto changed their profile photo
-
Hello, first time creating a metin2 server, for fun/to gain experience in the area. Initially, I do a lot of research on important factors to have on the server, but I always have doubts about the directory of the file. For example, if I have a script/code file and I want to implement it on the server, where do I put it?