Jump to content

Quest Categories


Recommended Posts

  • 4 months later...
  • 2 weeks later...
  • 5 months later...

in interfacemodule.py comment this funcion too remove quest icon

Serach : def BINARY_RecvQuest

Comment this part:

 


# QUEST_LETTER_IMAGE
        ##!! 20061026.levites.Au¨ö¨¬¨¡¢ç_AI©öIAo_¡¾©øA¨ù
        #import item
        #if "item"==iconType:
        #    item.SelectItem(int(iconName))
        #    buttonImageFileName=item.GetIconImageFileName()
        #else:
        #    buttonImageFileName=iconName
        #
        #if iconName and (iconType not in ("item", "file")): # type "ex" implied
        #    btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/%s" % (iconName.replace("open", "close")))
        #    btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/%s" % (iconName))
        #    btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/%s" % (iconName))
        #else:
        #    if localeInfo.IsEUROPE():
        #        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

        #if localeInfo.IsARABIC():
        #    btn.SetToolTipText(name, 0, 35)
        #    btn.ToolTipText.SetHorizontalAlignCenter()
        #else:
        #    btn.SetToolTipText(name, -20, 35)
        #    btn.ToolTipText.SetHorizontalAlignLeft()

[spoiler/]

Link to comment
Share on other sites

  • 9 months later...
  • 1 month later...

The counter is not updating just if you close and reopen the category.

I tested with the basic war horse quest when you have to kill 100 archer in the dessert.

 

Edit: I replaced this: self.__questList.RefreshClock() with: self.__questList.RefreshQuest()

(The RefreshQuest call the RefreshClock so don't worry the clock still updating)

 

BUT! It's A solution but i don't think it's the BEST solution so better to wait for @PACI

 

Edit2: When you get a new quest it's not showing in the category just if you close and reopen the category lol. I have no solution yet.

Edited by K3zX
Link to comment
Share on other sites

  • 3 months later...
  • Contributor
20 minutes ago, Goof said:

 

Can u upload to another site please or just paste the code since it's python?

https://www.virustotal.com/gui/url/03079d2bd598335ef5f4031fbec65f07fef29036ae7190ad794d20455f8a56cf/detection

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 11 months later...
Spoiler

Hi, what do you mean with:

int quest_get_current_quest_name(lua_State* L)
	{
		CQuestManager& q = CQuestManager::instance();
		PC* pPC = q.GetCurrentPC();
	
		lua_pushstring(L, pPC->GetCurrentQuestName().c_str());
		return 1;
	}

	void RegisterQuestFunctionTable()
	{
		luaL_reg quest_functions[] = 
		{
			{ "getcurrentquestname",	quest_get_current_quest_name},
			{ NULL,						NULL						}
		};

		CQuestManager::instance().AddLuaFunctionTable("q", quest_functions);

replace the whole with this?

 

int quest_get_current_quest_index(lua_State* L)

Spoiler
int quest_get_current_quest_index(lua_State* L)
	{
		CQuestManager& q = CQuestManager::instance();
		PC* pPC = q.GetCurrentPC();

		int idx = q.GetQuestIndexByName(pPC->GetCurrentQuestName());
		lua_pushnumber(L, idx);
		return 1;
	}

 

void RegisterQuestFunctionTable()

Spoiler
void RegisterQuestFunctionTable()
	{
		luaL_reg quest_functions[] = 
		{
			{ "setstate",				quest_setstate				},
			{ "set_state",				quest_setstate				},
			{ "yield",					quest_coroutine_yield		},
			{ "set_title",				quest_set_title				},
			{ "set_title2",				quest_set_another_title		},
			{ "set_clock_name",			quest_set_clock_name		},
			{ "set_clock_value",		quest_set_clock_value		},
			{ "set_counter_name",		quest_set_counter_name		},
			{ "set_counter_value",		quest_set_counter_value		},
			{ "set_icon",				quest_set_icon_file			},
			{ "start",					quest_start					},
			{ "done",					quest_done					},
			{ "getcurrentquestindex",	quest_get_current_quest_index	},
			{ "no_send",				quest_no_send				},
			// begin_other_pc_block(pid), end_other_pc_block 사이를 other_pc_block이라고 하자.
			// other_pc_block에서는 current_pc가 pid로 변경된다.
			//						끝나면 다시 원래의 current_pc로 돌아간다.
			/*		이런 것을 위해 만듬.
					for i, pid in next, pids, nil do
						q.begin_other_pc_block(pid)
						if pc.count_item(PASS_TICKET) < 1 then
							table.insert(criminalNames, pc.get_name())
							canPass = false
						end
						q.end_other_pc_block()
					end
			*/
			// 주의 : other_pc_block 내부에서는 절대로 yield가 일어나서는 안된다.(ex. wait, select, input, ...)
			{ "begin_other_pc_block",	quest_begin_other_pc_block	}, 
			{ "end_other_pc_block",		quest_end_other_pc_block	},
			{ NULL,						NULL						}
		};

		CQuestManager::instance().AddLuaFunctionTable("q", quest_functions);
	}

 


#Edit: Okay.. lol

Edited by Ace
Spoiler

Ymir Entertainment was founded in 1999 in Seoul, Korea and 
is currently headed by Byoung Gwan Kim as CEO. The company 
started developing its first 2D online game Metin the same 
year it was founded. The game was commercially launched in 
Korea a year later and received a prize from the Korean 
                    Ministry of Information and Communication in December of the 
                    same year. Following the success of their flagship game Ymir 
                    Entertainment immediately started work on the game’s sequel 
                    Metin 2, which went into Closed Beta in Korea in May 2004. 
                    The game was officially launched in Korea and China in March 
                    2005 before being launched in Asia, Europe and North America 
                    in the years that followed. In January 2011 all of the company’s 
                    shares were bought by Webzen Inc., a Korean game giant known for 
                    their popular MMORPG, MU Online. The company was also awarded 
                    Gameforge’s Global Best Partner of the Year in 2011.
                    
                    Source: https://mmos.com/publishers/ymir-entertainment
                    
                    Thank you ymir 🙂 ❤️ and F*** you Gameforge, 2011 you ruined it.

 

Link to comment
Share on other sites

  • 3 weeks later...

Announcements



×
×
  • 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.