Jump to content

Recommended Posts

  • 4 months later...

Hi man ive this problem ... it dont do the count of quest in category ..but the category work and dont give me error ... some one can help me Please ?

 

 

edit:

sorry fixed error in ui.py

wrong tab

Screenshot24oac76.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-108209
Share on other sites

  • 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
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-114296
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
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-125891
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
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-130237
Share on other sites

17 minutes ago, TMP4 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

 

i didn't write this code and im so lazy to extract scroll bar :)

Link to comment
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-130238
Share on other sites

  • Contributor

I did not asked to extract, just paste the text.

But anyway i did it (opened the site in a VM :D ) here it is: https://pastebin.com/Uszap6fM

 

top4top used to distribute malware so it's better to avoid.

Edited by TMP4
  • Love 1
Link to comment
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-130240
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
Link to comment
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-141001
Share on other sites

  • 3 weeks later...
  • 4 years later...
On 2‏/2‏/2017 at 06:20, PACI said:

مركز تحميل M2

 

المحتوى المخفي

  • قم بالرد على هذه التدوينة لرؤية المحتوى المخفي.
( داخلي)

 

  كشف المحتويات المخفية

2829519eedbf683f.jpg.43163abb1e6184e5620

 

أهلاً بك.

 

أثناء تنظيف "خزانتي"، وجدت هذا الشيء الذي قمت بتطويره بين عامي 2014 و2015 - ربما (؟) - لخادمي في تلك اللحظة. نظرًا لأنه مغلق الآن، ولن أستخدمه، فأنا أشاركه معكم يا رفاق.

ملحوظة: لم أقم بإنشاء شريط التمرير، ولم يكن ضروريًا بالنسبة لي، لذا نعم.

 

الآن، دعونا نبدأ بفتح locale_game.txt وإضافة هذه الأسطر:



		

حسنًا، الآن ابحث عن نافذة الشخصية.py (أوسكريبت؟) ويمكنك التعليق إما صفحة المهمة أطفال أو قم بإزالتها كلها ببساطة.

الانتقال إلى الخاص بك interfaceModule.py ابحث عن هذا الخط self.BINARY_RecvQuest(الفهرس، الاسم، "الملف"، localeInfo.GetLetterImageName()) واستبداله بـ self.wndCharacter.questCategory.RecvQuest(self.BINARY_RecvQuest، الفهرس، الاسم)

حسنًا، إذن نحن في الجزء الأصعب من هذا الأمر على الإطلاق، دعنا نقول. افتح ملف uiCharacter.py وكما فعلت في ملف characterwindow.py، قم بإزالة أي سطر واحد مرتبط بالمهام أو قم ببساطة بالتعليق عليه. يمكنك فقط البحث عن هذه المتغيرات:



بمجرد قيامك بذلك، عليك فقط:




وانتهينا من جانب العميل. لقد قمت بإرفاق بعض العناصر الإضافية المطلوبة (مثل ملف Python الرئيسي (uiQuestCategory.py) وبعض موارد الصور).
تذكر تعديل المسار المرتبط بهذه الصور في هذا الملف.

بالنسبة لجانب الخادم... حسنًا، إلى الجحيم، لقد قمت بتحميله أيضًا. كسول جدا للكتابة.
إنه يحتوي فقط على وظيفة مهمة جديدة (q.getcurrentquestname()) وبعض الأشياء التي يمكنك إضافتها إلى كويستليب.لوا.

بالمناسبة، لست متأكدًا مما إذا كان لديك، ولكن إذا لم يكن لديك، فما عليك سوى إضافة هذه الوظيفة الإضافية في ui.Button() (ui.py - فئة الزر).


نسيت الجزء المصدر، fml، ها هو. أضفه إلى حسابك كويستلوا_كويست.cpp.

	

 

الآن، أخيرًا، استمتع وداعًا!

😍

  • Sad 1
Link to comment
https://metin2.dev/topic/14814-quest-categories/page/2/#findComment-175394
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.