Jump to content

Recommended Posts

  • 1 month later...
  • 2 weeks later...

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
	
Link to comment
Share on other sites

  • 2 weeks later...
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?...

Link to comment
Share on other sites

 

I have a problem.. gm (lykan) is on blue kingdom and vip (ninja) is on red. When i login at lykan i see two effects on vip character (flag+vip):

https://metin2.download/picture/hyoY241PL02XKr4dyAJ8b1NZy6Ct1uXX/.jpg

 

This is commented:

 

if (IsVIP())
	        return;    

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
Link to comment
Share on other sites

  • 3 weeks later...

@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

     

  • Love 1
Link to comment
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!

 

  • Love 1
Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...

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 "
 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1

787292068_Nvtelen.png.6faa7b0bbb3398fd29

Link to comment
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

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 5 months later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.