metin2united
Wahmon

[RELEASE] VIP System from SRC

69 posts in this topic

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
On ‎12‎/‎12‎/‎2018 at 5:51 PM, rawn3cr0 said:

How i can make to don't show VIP / GM emblem.

Just normal player without VIP sign.

Well, just delete the Client Part and you are done.

On ‎8‎/‎19‎/‎2018 at 4:52 PM, filippos- said:

How u do a player VIP.

From Common/gmlist.

Share this post


Link to post
Share on other sites
19 hours ago, rawn3cr0 said:

And in client source? Nothing?

If you use this system, no.

The part where I told to delete the client part wasn't for you.

Share this post


Link to post
Share on other sites

I need help with this VIP system i tried earlier it was working but GM is treated as GM and he cant be attacked even with PK protected removed 
and also he can use / n or /b which is weird 
So Can you ppl sort it out this issue and give us the best VIP sytem with quest and source

Share this post


Link to post
Share on other sites

How i cand to show VIP in front of name , like GM

I try in InstanceBaseEffect.cpp

With if (IsGameMaster())  show GM in frot of name but if i add

if (IsVIP()) don't show VIP ...

Share this post


Link to post
Share on other sites

How fix:

 

char.cpp: In member function 'void CHARACTER::SetPlayerProto(const TPlayerTable*)':
char.cpp:2048:28: error: 'GM_VIP' was not declared in this scope
   else if (GetGMLevel() == GM_VIP)
                            ^
char.cpp:2050:29: error: 'AFF_VIP' was not declared in this scope
          m_afAffectFlag.Set(AFF_VIP);
                             ^
char.cpp:2093:1: error: a function-definition is not allowed here before '{' token
 {
 ^
char.cpp:9733:1: error: expected '}' at end of input
 }
 ^
gmake[1]: *** [Makefile:198: .obj/char.o] Error 1


Thank 😕

 

#ifndef ENABLE_GM_FLAG_IF_TEST_SERVER
	if (!test_server)
#endif
	{
#ifdef ENABLE_GM_FLAG_FOR_LOW_WIZARD
		if (GetGMLevel() > GM_PLAYER)
#else
		if (GetGMLevel() > GM_LOW_WIZARD)
#endif
		{
			m_afAffectFlag.Set(AFF_YMIR);
			m_bPKMode = PK_MODE_PROTECT;
		}
		
		else if (GetGMLevel() == GM_VIP)
		
	    {
	        m_afAffectFlag.Set(AFF_VIP);
		
	    }

	if (GetLevel() < PK_PROTECT_LEVEL)
		m_bPKMode = PK_MODE_PROTECT;

 

Share this post


Link to post
Share on other sites
En 22/5/2016 a las 14:22, AlCapone dijo:

Good my frend I will test this :)

Soo 3 years later I test it =)) 

1º The logo dont disapper after time expire you need to reboot server for that

2º Then if you reboot logo disapper but then he put the GM logo xd

3º Back of vip logo shows gm too

Share this post


Link to post
Share on other sites
9 hours ago, AlCapone said:

Soo 3 years later I test it =)) 

1º The logo dont disapper after time expire you need to reboot server for that

2º Then if you reboot logo disapper but then he put the GM logo xd

3º Back of vip logo shows gm too

Well, the tutorial I made does not include the time part

P.S: I'm impressed that you remembered after three years to test it xD

Share this post


Link to post
Share on other sites
hace 7 horas, Wahmon dijo:

Well, the tutorial I made does not include the time part

P.S: I'm impressed that you remembered after three years to test it xD

Yeah hahaha just moving in a new server and testing some vip sistems xd

  • Like 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.