| iiRadu a întrebat:

Buna,

Recent mi-am deschis o comunitate care nu o sa o public momentan.
Este vorba de Metin2, ei bine mai am de lucru la client, si ma rog cum sa fac sa se deschida shopul, cand dau click pe moneda.
Ce nu este corect scris? - Mai trebuie modificat in alta parte in afara de root.eix-epk?
Ex: Modificare
root - uishop.py

app.ShowWebPage(
"http://www.metinforge.ro/index_is.php?s=itemshop",
(x, y, x+MALL_PAGE_WIDTH, y+MALL_PAGE_HEIGHT))


Full Code:

import net
import player
import item
import snd
import shop
import net
import wndMgr
import app
import chat

import ui
import uiCommon
import mouseModule
import locale

######################################################## ###########################################
## Shop
class ShopDialog(ui.ScriptWindow):

def __init__(self):
ui.ScriptWindow.__init__(self)
self.tooltipItem = 0
self. xShopStart = 0
self. yShopStart = 0
self. questionDialog = None
self. popup = None
self.itemBuyQuestionDialog = None

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

def Refresh(self):
getItemID=shop.GetItemID
getItemCount=shop.GetItemCount
setItemID=self.itemSlotWindow.SetItemSlot
for i in xrange(shop.SHOP_SLOT_COUNT):
itemCount = getItemCount(i)
if itemCount USE_SHOP_LIMIT_RANGE or abs(y - self. yShopStart) > USE_SHOP_LIMIT_RANGE:
self.Close()


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(
"http://www.metinforge.ro/index_is.php?s=itemshop",
(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

Răspuns Câştigător
| Al3xInHo a răspuns:

Iti trebuie un site separat pe care sa il pui in Pawno ca atunci cand apesi sa se deschida.
Trebuie sa modifici din site tot.
Nu recomand asa ceva.

0 răspunsuri: