Jump to content
metin2dev
Metin2International
Wahmon

[RELEASE] VIP System from SRC

Recommended Posts

LOL, forget this $....  :facepalm:

like python:

Quote


        if gamemasta.find("(VIP1)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(29)

        if gamemasta.find("(VIP2)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(30)


        if gamemasta.find("(VIP3)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(31)

        if gamemasta.find("(VIP4)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(32)


        if gamemasta.find("(VIP5)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(33)

        if gamemasta.find("(VIP6)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(34)


        if gamemasta.find("(VIP7)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(35)

        if gamemasta.find("(VIP8)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(36)


        if gamemasta.find("(VIP9)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(37)

        if gamemasta.find("(VIP10)")!=-1:
            if self.lastupdate == 0:
                self.lastupdate = app.GetGlobalTimeStamp()
            if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
                self.lastupdate = app.GetGlobalTimeStamp()
                net.SendEmoticon(38)

 

make new item.
ittem in quest rename player with add (vip1-2-3-4-5-6-7-8-9-10)
And this python work wery vell :D

Where is problem? XD

for request i made tutorial how it's work

Share this post


Link to post
Share on other sites
On 8/21/2017 at 12:54 PM, [007]DawisHU said:

LOL, forget this $....  :facepalm:

like python:

make new item.
ittem in quest rename player with add (vip1-2-3-4-5-6-7-8-9-10)
And this python work wery vell :D

Where is problem? XD

for request i made tutorial how it's work

for python`s sake

 

mylist = ["(VIP1)","(VIP2)","(VIP3)","(VIP4)","(VIP5)","(VIP6)","(VIP7)","(VIP8)","(VIP9)","(VIP10)"]
enumeratelist = list(enumerate(mylist, start=29))
 
for e_value,vip in enumeratelist:
    if gamemasta.find(str(vip))!=-1:
        if self.lastupdate == 0:
            self.lastupdate = app.GetGlobalTimeStamp()
        if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
            self.lastupdate = app.GetGlobalTimeStamp()
net.SendEmoticon(int(e_value))
  • Like 1

Share this post


Link to post
Share on other sites
20 hours ago, Fleon said:

for python`s sake

 

mylist = ["(VIP1)","(VIP2)","(VIP3)","(VIP4)","(VIP5)","(VIP6)","(VIP7)","(VIP8)","(VIP9)","(VIP10)"]
enumeratelist = list(enumerate(mylist, start=29))
 
for e_value,vip in enumeratelist:
if gamemasta.find(str(vip))!=-1:
if self.lastupdate == 0:
self.lastupdate = app.GetGlobalTimeStamp()
if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
self.lastupdate = app.GetGlobalTimeStamp()
net.SendEmoticon(int(e_value))

Nice.
I just give example  for beginner's in python :)
You python code awesome.
 

On 2016. 08. 17. at 10:42 PM, Lehel said:

Where can I find the interface (taskbar) you're using? Please tell me.

This is illumina V3.0 interface :D
It's better

My work

 

Share this post


Link to post
Share on other sites
On 8/29/2017 at 1:39 PM, Fleon said:

for python`s sake

 

mylist = ["(VIP1)","(VIP2)","(VIP3)","(VIP4)","(VIP5)","(VIP6)","(VIP7)","(VIP8)","(VIP9)","(VIP10)"]
enumeratelist = list(enumerate(mylist, start=29))
 
for e_value,vip in enumeratelist:
if gamemasta.find(str(vip))!=-1:
if self.lastupdate == 0:
self.lastupdate = app.GetGlobalTimeStamp()
if app.GetGlobalTimeStamp() - self.lastupdate >= 5:
self.lastupdate = app.GetGlobalTimeStamp()
net.SendEmoticon(int(e_value))

We can do it like this too.

for (key, value) in enumerate(["(VIP1)","(VIP2)","(VIP3)","(VIP4)","(VIP5)","(VIP6)","(VIP7)","(VIP8)","(VIP9)","(VIP10)"]):
	if gamemasta.find(value) != -1:
		if (not self.lastupdate):
			self.lastupdate = app.GetGlobalTimeStamp()
		if (app.GetGlobalTimeStamp() - self.lastupdate) >= 5:
			self.lastupdate = app.GetGlobalTimeStamp()
			net.SendEmoticon(key + 29)

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×