Jump to content

Recommended Posts

class MallPageDialog(ui.ScriptWindow):
	def __init__(self):
		ui.ScriptWindow.__init__(self)

	def __del__(self):
		ui.ScriptWindow.__del__(self)

	def Destroy(self):
		self.ClearDictionary()

	def Open(self):
		#scriptLoader = ui.PythonScriptLoader()
		#scriptLoader.LoadScriptFile(self, "uiscript/mallpagedialog.py")

		self.GetChild("titlebar").SetCloseEvent(ui.__mem_func__(self.Close))
		
		(x, y)=self.GetGlobalPosition()
		x+=10
		y+=30
		
		MALL_PAGE_WIDTH = 600
		MALL_PAGE_HEIGHT = 480
		
		app.ShowWebPage(
			"https://www.google.com/", 
			(x, y, x+MALL_PAGE_WIDTH, y+MALL_PAGE_HEIGHT))

		self.Lock()
		self.Show()
		
	def Close(self):			
		app.HideWebPage()
		self.Unlock()
		self.Hide()
		
	def OnPressEscapeKey(self):
		self.Close()
		return True

 

https://metin2.download/picture/ecoYjwpw3QFFCzAu0XzQdIhvr154sC12/.png

But somehow it is looking for (ishop) instead of google.com. Can someone tell me where i have to make other changes? Im using the files from @ TMP4

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/28380-use-ingame-itemshop-as-browser/
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Forum Moderator

You can find it in cmd_general for the command "do_in_game_mall". It will pretty much send you to a specific URL which contains an encrypted string that is then uncrypted to get your character on the item shop.

You just need to have a final command of "mall https://%s" specifying "g_strWebMallURL.c_str()" (which is the url you set-up in your config file).

 

 

Edited by Gurgarath

Gurgarath
coming soon
My Services

  • Management

On channel's CONFIG file add MALL_URL

Like this:

MALL_URL: google.com

Without http or https, that part is defined on source where @Gurgarath already referenced.

raw

raw

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.