Jump to content

Diogo Neto

Member
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

1 Follower

About Diogo Neto

Informations

  • Gender
    Male

Recent Profile Visitors

234 profile views

Diogo Neto's Achievements

Explorer

Explorer (4/16)

  • Collaborator
  • First Post
  • Conversation Starter
  • Dedicated
  • Reacting Well

Recent Badges

0

Reputation

  1. 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.
  2. 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?
  3. 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.
  4. Whenever I change the "special_group_item.txt" file, I can no longer connect to the server, what could it be?
  5. 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!
  6. 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!
  7. 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?
×
×
  • 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.