[007]DawisHU 277 Posted August 21, 2017 Share Posted August 21, 2017 LOL, forget this $.... 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 Where is problem? XD for request i made tutorial how it's work 1 1 Link to comment Share on other sites More sharing options...
Premium North 1172 Posted August 29, 2017 Premium Share Posted August 29, 2017 On 8/21/2017 at 12:54 PM, [007]DawisHU said: LOL, forget this $.... 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 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)) 1 Link to comment Share on other sites More sharing options...
[007]DawisHU 277 Posted August 30, 2017 Share Posted August 30, 2017 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 It's betterMy work 2 1 2 Link to comment Share on other sites More sharing options...
Tasho 243 Posted September 3, 2017 Share Posted September 3, 2017 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) 1 Link to comment Share on other sites More sharing options...
ytrid8r 5 Posted February 1, 2018 Share Posted February 1, 2018 I don't understand how to put the number out of effect. AFFECT_VIP = 39, https://pastebin.com/qhY017T0 I add: AFFECT_VIP = 53, chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT + 53, "Bip01", "locale/tr/effect/vip.mse") Don't work 1 Link to comment Share on other sites More sharing options...
Zorke 1 Posted March 25, 2018 Share Posted March 25, 2018 when i use the chinese fireworks the vip automatic is displayed .. how to change that? Link to comment Share on other sites More sharing options...
filippos- 5 Posted August 19, 2018 Share Posted August 19, 2018 How u do a player VIP. Link to comment Share on other sites More sharing options...
alper40s 1 Posted September 15, 2018 Share Posted September 15, 2018 Thx Link to comment Share on other sites More sharing options...
rawn3cr0 1 Posted December 12, 2018 Share Posted December 12, 2018 How i can make to don't show VIP / GM emblem. Just normal player without VIP sign. Link to comment Share on other sites More sharing options...
Developer Deliris 404 Posted December 13, 2018 Author Developer Share Posted December 13, 2018 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. r Link to comment Share on other sites More sharing options...
rawn3cr0 1 Posted December 13, 2018 Share Posted December 13, 2018 Acum 3 ore, Wahmon a spus: Well, just delete the Client Part and you are done. From Common/gmlist. And in client source? Nothing? Link to comment Share on other sites More sharing options...
Developer Deliris 404 Posted December 14, 2018 Author Developer Share Posted December 14, 2018 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. r Link to comment Share on other sites More sharing options...
Human 18 Posted December 18, 2018 Share Posted December 18, 2018 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 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted December 27, 2018 Premium Share Posted December 27, 2018 You can make a system like that using 30 Lines of codes. lol Link to comment Share on other sites More sharing options...
rawn3cr0 1 Posted December 30, 2018 Share Posted December 30, 2018 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 ... Link to comment Share on other sites More sharing options...
Premium FileX 56 Posted April 8, 2019 Premium Share Posted April 8, 2019 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; Link to comment Share on other sites More sharing options...
AlCapone 67 Posted May 14, 2019 Share Posted May 14, 2019 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 Link to comment Share on other sites More sharing options...
Developer Deliris 404 Posted May 15, 2019 Author Developer Share Posted May 15, 2019 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 r Link to comment Share on other sites More sharing options...
AlCapone 67 Posted May 15, 2019 Share Posted May 15, 2019 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 1 Link to comment Share on other sites More sharing options...
TheR3LAX13 2 Posted September 4, 2019 Share Posted September 4, 2019 (edited) On 5/22/2016 at 2:57 PM, Wahmon said: Hello everyone, today I`m going to show to how to make a VIP system from SRC. You need Launcher SRC, Server SRC. So, let`s begin. 1.Launcher: Go to UserInterface/InstanceBase.h and search Reveal hidden contents AFFECT_CHINA_FIREWORK, // 38 After that add: Reveal hidden contents AFFECT_VIP = 39, Search Reveal hidden contents BOOL IsGameMaster(); After that add: Reveal hidden contents BOOL IsVIP(); 1.2 Go to InstanceBase.cpp and search Reveal hidden contents BOOL CInstanceBase::IsGameMaster() { if (m_kAffectFlagContainer.IsSet(AFFECT_YMIR)) return true; return false; } After that add: Reveal hidden contents BOOL CInstanceBase::IsVIP() { if (m_kAffectFlagContainer.IsSet(AFFECT_VIP)) return true; return false; } In same file search: Reveal hidden contents if (IsGameMaster()) return TRUE; And after that add: Reveal hidden contents if (IsVIP()) return TRUE; //if you got bugs don`t add this line. Search: Reveal hidden contents if (rkInstDst.IsGameMaster()) return TRUE; After that add: Reveal hidden contents if (rkInstDst.IsVIP()) return TRUE; 1.3: In file InstanceBaseEffect.cpp search Reveal hidden contents if (pkInstMain->IsGameMaster()) { } After that add: Reveal hidden contents else if (pkInstMain->IsVIP()) { } Search: Reveal hidden contents if (IsGameMaster()) return; After that add: Reveal hidden contents if (IsVIP()) return; Search: Reveal hidden contents case AFFECT_YMIR: if (IsAffect(AFFECT_INVISIBILITY)) return; break; After that add: Reveal hidden contents case AFFECT_VIP: if (IsAffect(AFFECT_INVISIBILITY)) return; break; /* 1.4 In fine PythonCharacterModule.cpp search: Reveal hidden contents PyObject * chrIsGameMaster(PyObject* poSelf, PyObject* poArgs) { int iVirtualID; if (!PyTuple_GetInteger(poArgs, 0, &iVirtualID)) return Py_BuildException(); CInstanceBase * pInstance = CPythonCharacterManager::Instance().GetInstancePtr(iVirtualID); if (!pInstance) return Py_BuildValue("i", 0); return Py_BuildValue("i", pInstance->IsGameMaster()); } And after that add: Reveal hidden contents PyObject * chrIsVIP(PyObject* poSelf, PyObject* poArgs) { int iVirtualID; if (!PyTuple_GetInteger(poArgs, 0, &iVirtualID)) return Py_BuildException(); CInstanceBase * pInstance = CPythonCharacterManager::Instance().GetInstancePtr(iVirtualID); if (!pInstance) return Py_BuildValue("i", 0); return Py_BuildValue("i", pInstance->IsVIP()); } Search: Reveal hidden contents { "IsGameMaster", chrIsGameMaster, METH_VARARGS }, And after that add: Reveal hidden contents { "IsVIP", chrIsVIP, METH_VARARGS }, Launcher part done. 2.SERVER 2.1 In file common/length.h search: Reveal hidden contents GM_PLAYER, And after that add: Reveal hidden contents GM_VIP, 2.2 In file game/src/affect.h search: Reveal hidden contents AFF_CHINA_FIREWORK, And after add: Reveal hidden contents AFF_VIP = 39, 2.3 In file game/src/char.cpp search: Reveal hidden contents if (GetGMLevel() > GM_LOW_WIZARD) { m_afAffectFlag.Set(AFF_YMIR); m_bPKMode = PK_MODE_PROTECT; } And after add: Reveal hidden contents else if (GetGMLevel() == GM_VIP) { m_afAffectFlag.Set(AFF_VIP); //m_bPKMode = PK_MODE_PROTECT; //delete '//' if you want GM protection for VIP. } Search Reveal hidden contents if (GetLevel() < PK_PROTECT_LEVEL) m_bPKMode = PK_MODE_PROTECT; And after that add: Reveal hidden contents else if (GetGMLevel() == GM_VIP) { m_afAffectFlag.Set(AFF_VIP); //m_bPKMode = PK_MODE_PROTECT; //delete '//' if you want GM protection for VIP. } 2.4 In file game/src/config.cpp search Reveal hidden contents if (!strcasecmp(levelname, "LOW_WIZARD")) level = GM_LOW_WIZARD; And mofify like that: Reveal hidden contents if (!strcasecmp(levelname, "VIP")) level = GM_VIP; else if (!strcasecmp(levelname, "LOW_WIZARD")) level = GM_LOW_WIZARD; 2.5 In file db/src/ClientManager.cpp search: Reveal hidden contents else if (!stAuth.compare("WIZARD")) Info.m_Authority = GM_WIZARD; And after that add: Reveal hidden contents else if (!stAuth.compare("VIP")) Info.m_Authority = GM_VIP; 3.MYSQL 3.1 Go to your database->COMMON->RIGHT CLICK ON gmlist->DESIGN TABLE->SELECT mAuthority from Fields TAB->VALUES->ADD VIP AFTER PLAYER. 4.CLIENT 4.1. In file ROOT/PlayerSettingModule.py search Reveal hidden contents chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+37, "", "d:/ymir work/effect/etc/guild_war_flag/flag_yellow.mse") And after that add: Reveal hidden contents chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+38, "Bip01", "locale/en/effect/vip.mse") Edit locale/en with your locale : ex locale/ro || locale/de 4.2 In locale go to effect folder(WHERE YOU HAVE GM.MSE) and add THIS FILES: This is the hidden content, please Sign In or Sign Up In game will be like that: Post any problems/bugs and we will solve them tohether Sorry for my bad english..:( whisper font color and icon have problem how do i fix it? vip speaks as gm how do i fix it ? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
AlCapone 67 Posted March 16, 2020 Share Posted March 16, 2020 (edited) On 9/4/2019 at 7:23 PM, TheR3LAX13 said: whisper font color and icon have problem how do i fix it? vip speaks as gm how do i fix it ? input_main.cpp if (ch->GetGMLevel() > GM_GOD) bType = (bType & 0xF0) | WHISPER_TYPE_GM; int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->GetGMLevel() > GM_GOD ?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf); Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Lexus24X 0 Posted April 8, 2020 Share Posted April 8, 2020 (edited) It works! :) Thank you so much! I've just update the system to show [VIP] automatically in front of the name when you apply in gmlist :) https://metin2.download/picture/3tAqWw3Z7w1Hhn6TJXo4OD9IEgQQe2bt/.jpg Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active+ Member Doose 1599 Posted March 3, 2022 Active+ Member Share Posted March 3, 2022 Only works on accounts which already exists. Any idea? Link to comment Share on other sites More sharing options...
Premium Ulthar 3087 Posted June 27, 2022 Premium Share Posted June 27, 2022 (edited) Still works, witout any problem. https://metin2.download/picture/P1L9C5dt80GYCu1ul4Eiama7lmzAdFPB/.gif Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 Ulthar Link to comment Share on other sites More sharing options...
Premium Ulthar 3087 Posted June 27, 2022 Premium Share Posted June 27, 2022 (edited) Still works, witout any problem. https://metin2.download/picture/P1L9C5dt80GYCu1ul4Eiama7lmzAdFPB/.gif Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 Ulthar Link to comment Share on other sites More sharing options...
Recommended Posts