Ist mMn ein Must-have, welches ich bis heute auf den offiziellen Servern misse, mithilfe solcher Kleinigkeiten lässt sich der Spielalltag angenehmer gestalten, tolle Sache.
if systemSetting.IsShowSalesText(): self.Show() x, y = chr.GetProjectPosition(self.vid, 220) self.SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
else: for key in g_privateShopAdvertisementBoardDict.keys(): if player.GetMainCharacterIndex() == key: #ىƒپى*گي’چى„*ى*„ ى•ˆë³´ى*´ê²Œ ê°گى¶”ëٹ” ê²½ىڑ°ى—گëڈ„, ي”Œë*ˆى*´ى–´ ى*گى‹*ى*ک ىƒپى*گ ي’چى„*ى*€ ë³´ى*´ëڈ„ë،* ي•¨. by ê¹€ى¤€يک¸ g_privateShopAdvertisementBoardDict[key].Show() x, y = chr.GetProjectPosition(player.GetMainCharacterIndex(), 220) g_privateShopAdvertisementBoardDict[key].SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2) else: g_privateShopAdvertisementBoardDict[key].Hide()
Hab ein kleines Problem und zwar, wenn ich den Shop anklicke funktioniert alles einwandfrei. Jedoch wenn man den Shop schließt, hängt der Shopname immer noch über den Kopf, bei beiden!
34k Client...
PHP Code:
0923 19:53:38149 :: File "uiPrivateShopBuilder.py", line 101, in OnMouseLeftButtonUp
0923 19:53:38149 :: NameError 0923 19:53:38149 :: : 0923 19:53:38149 :: global name 'True' is not defined 0923 19:53:38149 ::
Hab ein kleines Problem und zwar, wenn ich den Shop anklicke funktioniert alles einwandfrei. Jedoch wenn man den Shop schließt, hängt der Shopname immer noch über den Kopf, bei beiden!
34k Client...
PHP Code:
0923 19:53:38149 :: File "uiPrivateShopBuilder.py", line 101, in OnMouseLeftButtonUp
0923 19:53:38149 :: NameError 0923 19:53:38149 :: : 0923 19:53:38149 :: global name 'True' is not defined 0923 19:53:38149 ::
0923 19:54:39629 :: File "uiPrivateShopBuilder.py", line 101, in OnMouseLeftButtonUp
0923 19:54:39629 :: NameError 0923 19:54:39629 :: : 0923 19:54:39629 :: global name 'True' is not defined 0923 19:54:39629 ::
Du musst das True abändern in true oder TRUE.
Deine Exe bestimmt welches true es annimmt, bei mir wäre TRUE der Fall. Selbe Prinzip ist bei false/False/FALSE.
Quote:
Originally Posted by kakomamo
Thanx but i have bug with both systems with button and without button
Post your syserr from client, I think you've got the same problem as Ace.
self.textLine.SetText(text) if vid in self.shopAdvertismentBoardSeen: self.textLine.SetFontColor(1.0, 0.5, 0.1) self.textLine.UpdateRect() self.SetSize(len(text)*6 + 10*2+100, 20) self.button1.SetPosition(len(text)*6 + 10*2-100, 6) self.button2.SetPosition(len(text)*6 + 10*2-100, 6) self.Show()
g_privateShopAdvertisementBoardDict[vid] = self
def OnMouseLeftButtonUp(self): if not self.vid: return if self.vid != player.GetMainCharacterIndex(): self.textLine.SetFontColor(0, 0.98, 0.99) self.shopAdvertismentBoardSeen.append(self.vid) net.SendOnClickPacket(self.vid)
if systemSetting.IsShowSalesText(): self.Show() x, y = chr.GetProjectPosition(self.vid, 220) self.SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
else: for key in g_privateShopAdvertisementBoardDict.keys(): if player.GetMainCharacterIndex() == key: #ىƒپى*گي’چى„*ى*„ ى•ˆë³´ى*´ê²Œ ê°گى¶”ëٹ” ê²½ىڑ°ى—گëڈ„, ي”Œë*ˆى*´ى–´ ى*گى‹*ى*ک ىƒپى*گ ي’چى„*ى*€ ë³´ى*´ëڈ„ë،* ي•¨. by ê¹€ى¤€يک¸ g_privateShopAdvertisementBoardDict[key].Show() x, y = chr.GetProjectPosition(player.GetMainCharacterIndex(), 220) g_privateShopAdvertisementBoardDict[key].SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2) else: g_privateShopAdvertisementBoardDict[key].Hide(
self.textLine.SetText(text) if vid in self.shopAdvertismentBoardSeen: self.textLine.SetFontColor(1.0, 0.5, 0.1) self.textLine.UpdateRect() self.SetSize(len(text)*6 + 10*2+100, 20) self.button1.SetPosition(len(text)*6 + 10*2-100, 6) self.button2.SetPosition(len(text)*6 + 10*2-100, 6) self.Show()
g_privateShopAdvertisementBoardDict[vid] = self
def OnMouseLeftButtonUp(self): if not self.vid: return if self.vid != player.GetMainCharacterIndex(): self.textLine.SetFontColor(0, 0.98, 0.99) self.shopAdvertismentBoardSeen.append(self.vid) net.SendOnClickPacket(self.vid)
if systemSetting.IsShowSalesText(): self.Show() x, y = chr.GetProjectPosition(self.vid, 220) self.SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
else: for key in g_privateShopAdvertisementBoardDict.keys(): if player.GetMainCharacterIndex() == key: #ىƒپى*گي’چى„*ى*„ ى•ˆë³´ى*´ê²Œ ê°گى¶”ëٹ” ê²½ىڑ°ى—گëڈ„, ي”Œë*ˆى*´ى–´ ى*گى‹*ى*ک ىƒپى*گ ي’چى„*ى*€ ë³´ى*´ëڈ„ë،* ي•¨. by ê¹€ى¤€يک¸ g_privateShopAdvertisementBoardDict[key].Show() x, y = chr.GetProjectPosition(player.GetMainCharacterIndex(), 220) g_privateShopAdvertisementBoardDict[key].SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2) else: g_privateShopAdvertisementBoardDict[key].Hide(
Python 2.2 doesnt have true and false, thats why it didnt work for you. Removing the return could cause Bad effects, just write
[Release]Erneuerte Shops - Mehrere Shops auf einander![Erleichterung] 03/31/2011 - Metin2 PServer Guides & Strategies - 124 Replies Hallo und herzlich Willkommen zu meinem neuen Release!
Ich hatte in letzter Zeit viel Gelegenheit mich mit meinem Server zu beschäftigen und darum kann ich euch jetzt um diese Arbeit erleichtern.
Quests
-MB.quest eingefügt
-Dame.quest eingefügt
-Waffen_Rusten.quest eingefügt
Hier die Pics:
Angeklickte Datei auslesen 12/14/2010 - AutoIt - 0 Replies Hi,
Ich habe mir ein Programm macht das den Inhalt der Datei ausliest die man anglickt nur ich habe leider kein plan wie es geht den Pfad von angeklickte Datein auszulesen?
Also nochmal anders : Hab in der Shellvon AutoIT eine neue Rechtsklick Opton hinzugefügt und jetzt will ih das AutoIT den Datei Pfad zu der Datei ausliest auf die man Rechtklick gemacht hatt.
[RELEASE]Shops für DB 08/10/2010 - Metin2 PServer Guides & Strategies - 12 Replies Hey Com,
wollte euch mal meine eigenen Shops vorstellen und euch zum download bereitstellen.
Hier erstmal ein paar Screens!
http://www.bilder-space.de/show_img.php?img=d127c 3-1281449067.jpg&size=thumbnoch sehr mager)
http://www.bilder-space.de/show_img.php?img=7924e 5-1281449204.jpg&size=thumbWaffenhändler
http://www.bilder-space.de/show_img.php?img=25c51 9-1281449325.jpg&size=thumbRüstungshändler