Register for your free account! | Forgot your password?

You last visited: Today at 06:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Lua-C++]Full Event System

Discussion on [Lua-C++]Full Event System within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
MrLibya's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 517
Received Thanks: 339
[Lua-C++]Full Event System

Hallo All

i've been basy for while of time ( away from metin2 ) and i'm now start thinking in leave it for ever

so i will share with u my event system

what is include ?

Event.quest ( for start / close events )
event_drop.quest ( for drops items from monster/boss/stone) for all event


[ event.quest ]

[ event.quest - Untested ]



[ events_drop.quest ]


[quest_lib.lua]

source part :

add in questlua_npc

PHP Code:

int npc_get_type0
(lua_State L)
    {
        
CQuestManagerCQuestManager::instance();
        
LPCHARACTER npc q.GetCurrentNPCCharacterPtr();
        if (
npc)
        {
            if(
npc->IsMonster())
                
lua_pushnumber(L1);
            else if ( 
npc->IsStone())
                
lua_pushnumber(L2);
        }
        else
            
lua_pushnumber(L0);
        return 
1;
    } 


For who not know, the system makes easy to add new event , with no limit of items , that mean u don't need to edit anything in the quest code to add new items for the event , just add in the event field the items id and the quest will auto read how much items u put there
MrLibya is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
War Sro l Cap 130 l PVP Server l Coin System l New Event l New Pet l New System
03/28/2015 - SRO PServer Advertising - 2 Replies
War Sro The Best PVP Server Cap 130 PVP New System Awaken System Coin System Get Coin From Donwhang Cave
War Sro l Cap 130 l PVP Server l Coin System l New Event l New Pet l New System
03/22/2015 - SRO PServer Advertising - 2 Replies
War Sro The Best PVP Server Cap 130 PVP New System New Area New Avater New pet New Event EXP X150



All times are GMT +2. The time now is 06:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.