Jump to content
metin2dev
Metin2International
Wahmon

[RELEASE] VIP System from SRC

Recommended Posts

To remove protection PK

Search in char.cpp

else if (GetGMLevel() != GM_PLAYER)

and replace with

else if (GetGMLevel() != GM_PLAYER && GetGMLevel() != GM_VIP)

  • Like 1

Share this post


Link to post
Share on other sites

i have a error when i try to cmpile db.


compile ClientManager.cpp
ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
ClientManager.cpp:3686: error: 'GM_VIP' was not declared in this scope
gmake: *** [.obj/ClientManager.o] Error 1
root@:/usr/src/newoffsource/db/src #



#ifdef __VIP_SYSTEM__ //3684
        else if (!stAuth.compare("VIP")) //3685
            Info.m_Authority = GM_VIP; //3686
#endif //3687
	

Share this post


Link to post
Share on other sites
On 7/29/2016 at 10:40 PM, ladcatalin said:

i have a error when i try to cmpile db.



compile ClientManager.cpp
ClientManager.cpp: In member function 'bool CClientManager::__GetAdminInfo(const char*, std::vector<TAdminInfo, std::allocator<TAdminInfo> >&)':
ClientManager.cpp:3686: error: 'GM_VIP' was not declared in this scope
gmake: *** [.obj/ClientManager.o] Error 1
root@:/usr/src/newoffsource/db/src #



#ifdef __VIP_SYSTEM__ //3684
        else if (!stAuth.compare("VIP")) //3685
            Info.m_Authority = GM_VIP; //3686
#endif //3687
	

Do you know how to solve this?...

Share this post


Link to post
Share on other sites

Can someone add a questfunction - IsVIP for some quest? ^^

 

i need a little quest:
 

when user  vip - he get 50% more golddrop, 50% more exp, 50% more itemdrop (example bonusse) for 2 weeks

Share this post


Link to post
Share on other sites

@Jorila

You can add fucking easy a bonus and something now ^^ you need to save a your time for vip in questflag, and after that you need to make a check when he login with timer expired of vip to delete bonus and grade bla bla.

Anyway, this 'system' is not system is only fucking shit add new grade, because is only copy all from function gm, is like 'System GameMaster' jesus..and shit method xD

[File: src/game/questlua_pc.cpp]

  • 1.) Search:
    	int pc_get_skillgroup(lua_State* L)  
    	{
    		lua_pushnumber(L, CQuestManager::instance().GetCurrentCharacterPtr()->GetSkillGroup());
    		return 1;
    	}
    2.) Add bellow:
  • #ifdef ENABLE_CHECK_VIP_TEST
    	int pc_is_vip(lua_State* L)
    	{
    		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
    		lua_pushboolean(L, ch->GetGMLevel() == GM_VIP);
    		return 1;
    	}
    #endif
  • 3.) Search:
    			{ "get_skill_group",	pc_get_skillgroup	},
  • 4.) Add bellow:
    #ifdef ENABLE_CHECK_VIP_TEST
    			{ "is_vip",		pc_is_vip		},
    #endif
    [File: locale/country/questfunction]
    pc.is_vip
  • Example to use in quest:
    quest check_vip_test begin
    	state start begin
    		when 70007.use begin
    			local argument = { "true", "false" }
    			if pc.is_vip() then    --[[ # pc.is_vip() == true ]]
    				syschat(string.format("<Debug> Argument checking for vip is: %s", argument[1]))	
    			else                   --[[ # pc.is_vip() == false ]]
    				syschat(string.format("<Debug> Argument checking for vip is: %s", argument[2]))		
    			end
    		end
    	end
    end

     

  • Like 1

Share this post


Link to post
Share on other sites

@VegaS

Thank you ^^ sorry i am a noob. your quest is good, but i need a quest where user get the VIP when he/she use an item.

i forgot <.< one question. can you make a little quest:

when user use item 70007(example ID), user get the VIP for 2 weeks and he/she get (example) 50% more itemdrop, 50% more golddrop.

thank you very much!

 

  • Like 1

Share this post


Link to post
Share on other sites

Hello,
Nice but i hate source :)
I make this 100% manual :D
Vip features..:

  • -Vip pet
  • Vip Mount
  • Vip shop (higher vip level cheapest shop)
  • builded to vip10
  • vip1 -  teleport only empire all map1-2
  • vip2-  can teleport map1-2 and ork + sd 1 + another location
  • vip costume
  • vip farm map
  • vip daily quest
  • vip daily +2 daily run token
  • daily reward
  • purchase system = like first purchase ,second etc...
  • and more :D

VIP.jpg

DON'T request for this system,

i understand why not make pc.player playerVIP why gamemaster ? :o

On 2017. 02. 08. at 7:00 AM, Human said:

Hi i got some bugs hope you solve it 

Do3PAqT.jpg

This is unsolvable i say why...
u remember what is the source code?

GameMaster:

Spoiler

BOOL CInstanceBase::IsGameMaster()
{
    if (m_kAffectFlagContainer.IsSet(AFFECT_YMIR))
        return true;
    return false;
}

VIP:
 

Spoiler

BOOL CInstanceBase::IsVIP()
{
    if (m_kAffectFlagContainer.IsSet(AFFECT_VIP))
        return true;
    return false;
}

This tut just make new gm style whit name is " VIP "
 

Share this post


Link to post
Share on other sites

then 

On 3/1/2017 at 4:37 AM, [007]DawisHU said:

Hello,
Nice but i hate source :)
I make this 100% manual :D
Vip features..:

  • -Vip pet
  • Vip Mount
  • Vip shop (higher vip level cheapest shop)
  • builded to vip10
  • vip1 -  teleport only empire all map1-2
  • vip2-  can teleport map1-2 and ork + sd 1 + another location
  • vip costume
  • vip farm map
  • vip daily quest
  • vip daily +2 daily run token
  • daily reward
  • purchase system = like first purchase ,second etc...
  • and more :D

VIP.jpg

DON'T request for this system,

then how to use your system ???

i understand why not make pc.player playerVIP why gamemaster ? :o

This is unsolvable i say why...
u remember what is the source code?

GameMaster:

  Hide contents

BOOL CInstanceBase::IsGameMaster()
{
    if (m_kAffectFlagContainer.IsSet(AFFECT_YMIR))
        return true;
    return false;
}

VIP:
 

  Hide contents

BOOL CInstanceBase::IsVIP()
{
    if (m_kAffectFlagContainer.IsSet(AFFECT_VIP))
        return true;
    return false;
}

This tut just make new gm style whit name is " VIP "

If i change Gamemaster to VIP will it work? i guess it will say we need to declare the function IsVIP

 

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   1 member

×