Register for your free account! | Forgot your password?

You last visited: Today at 11:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Kleine Python Frage

Discussion on Kleine Python Frage within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 2,903
Received Thanks: 1,262
Kleine Python Frage

Hallo,

Ich möchte das Premium system einbauen und habe in der Game.py das stehen.:

PHP Code:
import dbg
        
if app.GetGlobalTimeStamp() - self.lastupdate 0:
            
self.lastupdate app.GetGlobalTimeStamp()
        if 
app.GetGlobalTimeStamp() - self.lastupdatee 0:
            
self.lastupdatee app.GetGlobalTimeStamp()
        if 
gamemasta.find("[VIP]")!=-1:
            if 
self.lastupdate == 0:
                
self.lastupdate app.GetGlobalTimeStamp()
            if 
app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                
self.lastupdate app.GetGlobalTimeStamp()
                
net.SendEmoticon(19-1)
                
#net.SendChatPacket("1(vip)") 
Proplem dabei ist, der effect kommt immer wieder und verdoppelt sich halt, was nicht der sinn dabei ist.

Wie kann ich das beheben?
£αšεℜ™ is offline  
Old 03/07/2014, 23:43   #2
 
elite*gold: 0
Join Date: Jan 2011
Posts: 2,903
Received Thanks: 1,262
#up
£αšεℜ™ is offline  
Reply


Similar Threads Similar Threads
[Python] kleine Frage
01/08/2013 - General Coding - 11 Replies
Ich habe angefangen mit Python, wenn ich mir jetzt aus Test Gründen eine Passwort abfrage erstelle (If/Else) funktioniert diese aber nur wenn: pw = input() if pw == "9999": print("Das Passwort ist richtig") else: print("Das Passwort ist falsch")
[RELEASE]2 Kleine Python Sachen
02/04/2012 - Metin2 PServer Guides & Strategies - 50 Replies
Heyho, Ich hatte gerade mal LW und da habe ich mir gedacht mache ich mal zwei Sachen aus meinem Client Pub vllt kann der eine oder andere damit was anfangen :) Es sind kleine Sachen als nicht rummeckern . Haters ALT+F4 ! So die Erste Sache wäre der ändernde Fenstername bei jedem Start. Dazu Entpackt die Root.eix/epk und öffnet die locale.py



All times are GMT +2. The time now is 11:05.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.