Jump to content
Co0L

c++ C++ | Metin2 | Deathmatch event

Recommended Posts

Hello , this is one of my first systems that i made for my pvp server 1-2 years ago and since then i was using it and it has no problems.

I'm not a system's developer i only made things for my servers and this one i want to share with you.

 

 

https://mega.nz/#!esBDGQRL!CJof_zrdIkYvMmEsyZPhRG5AIFJ4U-TLGB4dWighQdE

  • Love 7

Share this post


Link to post

in cmd please change from SV_PLAYER TO GM_PLAYER cause i changed them in my server.

  • Love 1

Share this post


Link to post

my error - Help Plss: 

 

https://prnt.sc/rb8bfq

 

deathmatch.cpp: In member function 'void CDeathMatchPvP::OnLogin(LPCHARACTER)':
deathmatch.cpp:18:18: error: 'STUN_DEATHMATCH' was not declared in this scope
    ch->AddAffect(STUN_DEATHMATCH, 0, 0, AFF_STUN, 60*60*60*365, 0, 1, 0);
                  ^~~~~~~~~~~~~~~
deathmatch.cpp:25:17: error: 'PK_MODE_DEATHMATCH' was not declared in this scope
   ch->SetPKMode(PK_MODE_DEATHMATCH);
                 ^~~~~~~~~~~~~~~~~~
deathmatch.cpp: In member function 'void FDeleteStun::operator()(LPENTITY)':
deathmatch.cpp:42:24: error: 'STUN_DEATHMATCH' was not declared in this scope
     if (ch->FindAffect(STUN_DEATHMATCH))
                        ^~~~~~~~~~~~~~~
gmake: *** [Makefile:183: .obj/deathmatch.o] Error 1
gmake: *** Waiting for unfinished jobs....

 

Share this post


Link to post
9 hours ago, shaman21 said:

my error - Help Plss: 

 

https://prnt.sc/rb8bfq

 


deathmatch.cpp: In member function 'void CDeathMatchPvP::OnLogin(LPCHARACTER)':
deathmatch.cpp:18:18: error: 'STUN_DEATHMATCH' was not declared in this scope
    ch->AddAffect(STUN_DEATHMATCH, 0, 0, AFF_STUN, 60*60*60*365, 0, 1, 0);
                  ^~~~~~~~~~~~~~~
deathmatch.cpp:25:17: error: 'PK_MODE_DEATHMATCH' was not declared in this scope
   ch->SetPKMode(PK_MODE_DEATHMATCH);
                 ^~~~~~~~~~~~~~~~~~
deathmatch.cpp: In member function 'void FDeleteStun::operator()(LPENTITY)':
deathmatch.cpp:42:24: error: 'STUN_DEATHMATCH' was not declared in this scope
     if (ch->FindAffect(STUN_DEATHMATCH))
                        ^~~~~~~~~~~~~~~
gmake: *** [Makefile:183: .obj/deathmatch.o] Error 1
gmake: *** Waiting for unfinished jobs....

 

I've got this error too :( 

Share this post


Link to post

Add those affects in affect.h

Share this post


Link to post
34 minutes ago, Co0L said:

Add those affects in affect.h

I've solved, u need to put the defines in: "commondefines.h" if u got that or in service.h if u don't have it. It depends from the source.

Byee

Share this post


Link to post
Posted (edited)

Hi,

 

All compil it's ok but when login with this sytem core crash and this :

 

Sans-titre.png

Edited by Ekinox (see edit history)

Share this post


Link to post

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.

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