Ir para conteúdo
  • Cadastre-se

7.x GLOBAL 100% 7.40 Cliente Proprio, Port Hope 7.4, POI, Demon OaK, War System, Shared Exp, Cast System, Anti Clone, Task System.


Posts Recomendados

On 25/4/2017 at 21:29, Qwizer said:

 

 napalm911911@otchaos:~/otserv/sources$ make -j 2
make  all-am
make[1]: Entering directory '/home/napalm911911/otserv/sources'
  CXX      otserv.o
  CXX      playerbox.o
  CXX      player.o
otserv.cpp: In function ‘void otserv(StringVec, ServiceManager*)’:
otserv.cpp:599:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->p, g_config.getString(ConfigManager::RSA_PRIME1).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:600:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->q, g_config.getString(ConfigManager::RSA_PRIME2).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:601:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->d, g_config.getString(ConfigManager::RSA_PRIVATE).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:602:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->n, g_config.getString(ConfigManager::RSA_MODULUS).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:603:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->e, g_config.getString(ConfigManager::RSA_PUBLIC).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:613:15: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:613:28: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:614:15: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:614:28: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:23: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                       ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:36: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                    ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:46: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                              ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
Makefile:552: recipe for target 'otserv.o' failed
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
player.cpp: In member function ‘virtual void Player::postAddNotification(Creature*, Thing*, const Cylinder*, int32_t, CylinderLink_t)’:
player.cpp:3442:7: warning: variable ‘requireListUpdate’ set but not used [-Wunused-but-set-variable]
  bool requireListUpdate = true;
       ^~~~~~~~~~~~~~~~~
player.cpp: In member function ‘virtual void Player::postRemoveNotification(Creature*, Thing*, const Cylinder*, int32_t, bool, CylinderLink_t)’:
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:46: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                              ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
Makefile:552: recipe for target 'otserv.o' failed
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/napalm911911/otserv/sources'
Makefile:409: recipe for target 'all' failed
make: *** [all] Error 2
napalm911911@otchaos:~/otserv/sources$ sudo apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
autoconf is already the newest version (2.69-11).
build-essential is already the newest version (12.4ubuntu1).
ccache is already the newest version (3.4.1-1).
libboost-dev is already the newest version (1.65.1.0ubuntu1).
libboost-filesystem-dev is already the newest version (1.65.1.0ubuntu1).
libboost-system-dev is already the newest version (1.65.1.0ubuntu1).
libboost-thread-dev is already the newest version (1.65.1.0ubuntu1).
libgmp3-dev is already the newest version (2:6.1.2+dfsg-2).
pkg-config is already the newest version (0.29.1-0ubuntu2).
libboost-regex-dev is already the newest version (1.65.1.0ubuntu1).
liblua5.1-0-dev is already the newest version (5.1.5-8.1build2).
subversion is already the newest version (1.9.7-4ubuntu1).
libmysqlclient-dev is already the newest version (5.7.30-0ubuntu0.18.04.1).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
libxml2-dev is already the newest version (2.9.4+dfsg1-6.1ubuntu1.3).
screen is already the newest version (4.6.2-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
napalm911911@otchaos:~/otserv/sources$ 

Qwizer I have tried contacting you on your whatsapp and Discord and havent been able to get in touch with you please if you can add me in discord Ransomware#8236

 

I would like to buy the premium package you have of this server if you still sell it and if possible tell me why the hell it's not compiling under linux, I really dont want to host this thing in a windows server

Link para o post
Compartilhar em outros sites
  • 1 month later...
  • Respostas 192
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

GLOBAL 100% 7.40 >> Information: -7.4 Features: No Protection zone nos barcos e  tapetes. - Spells, vocations e spells formuled baseada em Tibia 7.4. nao tem Hotkleys! -War System.

Download Scan    

desculpe mano eu uso linux nao tem exe e DLL tera que compilar as sources.

Posted Images

Estou com problema no RME. 
Já tentei abrir no RME 3.3, 3.4 e até em versões atuais que aceitam tibia 11+. 
Todos dão o mesmo problema, as sprites ficam diferente da que ta no game =( 

Alguém sabe como eu resolvo isso?

 

No jogo:


image.thumb.png.763b519e9d3f23fa31bb8bf7c8705513.png

 

No RME:
image.thumb.png.e8f19d77df6950343f99330d6ee41031.png

 

 

 

EDIT: Resolvido

usei esse guia - 
https://github.com/peonso/tibialegacyserver/wiki/Using-Remere's-Map-Editor

Editado por Ridjin (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 2 weeks later...
 
@Qwizer
 
 
 
Olá, estou com um problema, como alterar hex para não usar o ip changer? Não consigo encontrar o ip para alterar e qual RME devo usar para editar este mapa?

 

 

 

 

Olá, estou com um problema, como alterar hex para não usar o ip changer? Não consigo encontrar o ip para alterar e qual RME devo usar para editar este mapa?
Editado por AdrianQ (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 1 year later...
Em 03/06/2020 em 11:21, napalm911 disse:

 napalm911911@otchaos:~/otserv/sources$ make -j 2
make  all-am
make[1]: Entering directory '/home/napalm911911/otserv/sources'
  CXX      otserv.o
  CXX      playerbox.o
  CXX      player.o
otserv.cpp: In function ‘void otserv(StringVec, ServiceManager*)’:
otserv.cpp:599:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->p, g_config.getString(ConfigManager::RSA_PRIME1).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:600:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->q, g_config.getString(ConfigManager::RSA_PRIME2).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:601:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->d, g_config.getString(ConfigManager::RSA_PRIVATE).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:602:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->n, g_config.getString(ConfigManager::RSA_MODULUS).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:603:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->e, g_config.getString(ConfigManager::RSA_PUBLIC).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:613:15: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:613:28: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:614:15: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:614:28: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:23: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                       ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:36: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                    ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:46: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                              ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
Makefile:552: recipe for target 'otserv.o' failed
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
player.cpp: In member function ‘virtual void Player::postAddNotification(Creature*, Thing*, const Cylinder*, int32_t, CylinderLink_t)’:
player.cpp:3442:7: warning: variable ‘requireListUpdate’ set but not used [-Wunused-but-set-variable]
  bool requireListUpdate = true;
       ^~~~~~~~~~~~~~~~~
player.cpp: In member function ‘virtual void Player::postRemoveNotification(Creature*, Thing*, const Cylinder*, int32_t, bool, CylinderLink_t)’:
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:46: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                              ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
Makefile:552: recipe for target 'otserv.o' failed
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/napalm911911/otserv/sources'
Makefile:409: recipe for target 'all' failed
make: *** [all] Error 2
napalm911911@otchaos:~/otserv/sources$ sudo apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
autoconf is already the newest version (2.69-11).
build-essential is already the newest version (12.4ubuntu1).
ccache is already the newest version (3.4.1-1).
libboost-dev is already the newest version (1.65.1.0ubuntu1).
libboost-filesystem-dev is already the newest version (1.65.1.0ubuntu1).
libboost-system-dev is already the newest version (1.65.1.0ubuntu1).
libboost-thread-dev is already the newest version (1.65.1.0ubuntu1).
libgmp3-dev is already the newest version (2:6.1.2+dfsg-2).
pkg-config is already the newest version (0.29.1-0ubuntu2).
libboost-regex-dev is already the newest version (1.65.1.0ubuntu1).
liblua5.1-0-dev is already the newest version (5.1.5-8.1build2).
subversion is already the newest version (1.9.7-4ubuntu1).
libmysqlclient-dev is already the newest version (5.7.30-0ubuntu0.18.04.1).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
libxml2-dev is already the newest version (2.9.4+dfsg1-6.1ubuntu1.3).
screen is already the newest version (4.6.2-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
napalm911911@otchaos:~/otserv/sources$ 

Qwizer I have tried contacting you on your whatsapp and Discord and havent been able to get in touch with you please if you can add me in discord Ransomware#8236

 

I would like to buy the premium package you have of this server if you still sell it and if possible tell me why the hell it's not compiling under linux, I really dont want to host this thing in a windows server

solve this problem?

Link para o post
Compartilhar em outros sites
  • 2 months later...
Em 25/02/2017 em 11:47, Qwizer disse:

GLOBAL 100% 7.40

>> Information:

-7.4 Features: No Protection zone nos barcos e  tapetes.
- Spells, vocations e spells formuled baseada em Tibia 7.4. nao tem Hotkleys!
-War System.
-Cast System.
-Anti Clone.

-Task System (Mais de 50)
-Party Sharing Experience. You can share experience in-party with your friends, and receive 10% bonus experience when actived (!share).
-Nao tem runas no Shop. somente conjurada.
-Editado, conjura runas 2x mais que real tibia (ex. Sd 2x).
-Fast Soul Regen
-Conjure Runes na backpack. !
-Nao tem Wands/Rods, Burst Arrowns baseado em magic level.


>> Vocation Features:

-Paladins conjure mais ammunition. (ex. exevo con = 15 arrows)
-Mages conjure mais runes. (ex. adori vita vis = 2 SDs)
-Damage melhorado em 10% para Knights and Paladins.
-Attack speed melhorado em 10% for all vocations.
 

>> NPCs:

-Nao vende runes.
-Pode comprar bp de MF (pode remover se quizer): "buy bp mf"
-Pode comprar bp de LF (pode remover se quizer): "buy bp lf"
-Djinns in ankrahmun (Precisa de Quest)
-Eremo sells amulet of loss.
 

>> Game Features:

-Bank system.
-Auto-stack items
-Full HP and MP at level up.
-Stone Skin Amulet nao tem em NPCs, dropa somente de Warlock ou Hydra.

 

>> Extra Information:

-Real Tibia map: Full real Tibia map, incluindo todos os NPCs, Port Hope, monsters e quests 100% RL.
- POI quest e todas as rooms(Custom feita por min).

- Svarground 7.4.
-Demon Oak Quest (Custom feita por min).
-Uptime: Muito Estavel.

-Cliente Próprio das 3 ultimas imagem, não acompanha o servidor (usei somente para tirar prints).


DOWNLOAD

OTSERV/SOURCES OTX 7.x/CLIENTE/WEBSITE/DATABASE  (Pra Editar o cliente basta abrir o Tibia.exe com notepad procurar o ip 167.114.111.25 e alterar pelo o seu ip caso tenha a mesma quantidade de numeros)

Executavel + DLLs

Scan Virus Total.

 


Creditos
Qwizer - OTX

 

Em 25/02/2017 em 11:47, Qwizer disse:

GLOBAL 100% 7.40

>> Information:

-7.4 Features: No Protection zone nos barcos e  tapetes.
- Spells, vocations e spells formuled baseada em Tibia 7.4. nao tem Hotkleys!
-War System.
-Cast System.
-Anti Clone.

-Task System (Mais de 50)
-Party Sharing Experience. You can share experience in-party with your friends, and receive 10% bonus experience when actived (!share).
-Nao tem runas no Shop. somente conjurada.
-Editado, conjura runas 2x mais que real tibia (ex. Sd 2x).
-Fast Soul Regen
-Conjure Runes na backpack. !
-Nao tem Wands/Rods, Burst Arrowns baseado em magic level.


>> Vocation Features:

-Paladins conjure mais ammunition. (ex. exevo con = 15 arrows)
-Mages conjure mais runes. (ex. adori vita vis = 2 SDs)
-Damage melhorado em 10% para Knights and Paladins.
-Attack speed melhorado em 10% for all vocations.
 

>> NPCs:

-Nao vende runes.
-Pode comprar bp de MF (pode remover se quizer): "buy bp mf"
-Pode comprar bp de LF (pode remover se quizer): "buy bp lf"
-Djinns in ankrahmun (Precisa de Quest)
-Eremo sells amulet of loss.
 

>> Game Features:

-Bank system.
-Auto-stack items
-Full HP and MP at level up.
-Stone Skin Amulet nao tem em NPCs, dropa somente de Warlock ou Hydra.

 

>> Extra Information:

-Real Tibia map: Full real Tibia map, incluindo todos os NPCs, Port Hope, monsters e quests 100% RL.
- POI quest e todas as rooms(Custom feita por min).

- Svarground 7.4.
-Demon Oak Quest (Custom feita por min).
-Uptime: Muito Estavel.

-Cliente Próprio das 3 ultimas imagem, não acompanha o servidor (usei somente para tirar prints).


DOWNLOAD

OTSERV/SOURCES OTX 7.x/CLIENTE/WEBSITE/DATABASE  (Pra Editar o cliente basta abrir o Tibia.exe com notepad procurar o ip 167.114.111.25 e alterar pelo o seu ip caso tenha a mesma quantidade de numeros)

Executavel + DLLs

Scan Virus Total.

 


Creditos
Qwizer - OTX

Global 100% 7.40 com Website é esse que ta logo a cima?

Link para o post
Compartilhar em outros sites
  • 2 months later...
  • 1 month later...

Olá a todos, eu baixei as sources do servidor, porém não da pra utilizar o distro compilado pois está com vírus, estou tentando a 3 dias compilar o server, hoje consegui (pelo Visual Studio, release/64-msvc), porém quando eu vou abrir o executável, me apresentou alguns erros, a princípio, eram DLLs faltando, consegui as DLLs e foi desaparecendo erro por erro, até chegar nesse aqui, que não consegui resolver de maneira alguma, vou deixar uma imagem abaixo, mas para ficar mais claro, vou deixar escrito tudo o que já tentei fazer:

Eu tentei compilar pelo Visual Studio de varias maneiras, release 64, release 32, release gui 64, só a primeira funcionou.

 

Release/32 Da esse erro: module machine type 'x64' conflicts with target machine type 'X86'

Release GUI/64 da esse erro: Error Lnk2001 Unresolved External Symbol Winmain

 

Quando compilei por Release/64, tentei abrir o .exe e abriu aquela janela de erro do windows e pediu algumas dlls, libeay32.dll, lua5.1.dll, sqlite.dll e libeay32.dll. (Tinha pedido a sqlite.dll, porém eu removi no VS o __USE_SQLITE__ lá em Properties > C/C++ > Preprocessor > Preprocessor Definitions e mantive apenas o __USE_MYSQL__).

Eu coloquei as DLLS na pasta do server e os erros de DLL desapareceram, porém agora apresenta o seguinte erro:

 

image.thumb.png.cda3816ec8f3ef64e2584fb922f4930e.png

 

Dei uma pesquisada e encontrei que poderia ainda ser alguma DLL faltando, então utilizei o Dependencies_x64_Release para verificar, com ele constatei que não é DLL, segue print:

 

image.thumb.png.582fff817fb830f58e5f8f9ffea868cd.png

 

Não sei o que pode ser, al

Link para o post
Compartilhar em outros sites
  • 1 year later...
Em 11/09/2022 em 00:57, goesraphael disse:

Olá a todos, eu baixei as sources do servidor, porém não da pra utilizar o distro compilado pois está com vírus, estou tentando a 3 dias compilar o server, hoje consegui (pelo Visual Studio, release/64-msvc), porém quando eu vou abrir o executável, me apresentou alguns erros, a princípio, eram DLLs faltando, consegui as DLLs e foi desaparecendo erro por erro, até chegar nesse aqui, que não consegui resolver de maneira alguma, vou deixar uma imagem abaixo, mas para ficar mais claro, vou deixar escrito tudo o que já tentei fazer:

Eu tentei compilar pelo Visual Studio de varias maneiras, release 64, release 32, release gui 64, só a primeira funcionou.

 

Release/32 Da esse erro: module machine type 'x64' conflicts with target machine type 'X86'

Release GUI/64 da esse erro: Error Lnk2001 Unresolved External Symbol Winmain

 

Quando compilei por Release/64, tentei abrir o .exe e abriu aquela janela de erro do windows e pediu algumas dlls, libeay32.dll, lua5.1.dll, sqlite.dll e libeay32.dll. (Tinha pedido a sqlite.dll, porém eu removi no VS o __USE_SQLITE__ lá em Properties > C/C++ > Preprocessor > Preprocessor Definitions e mantive apenas o __USE_MYSQL__).

Eu coloquei as DLLS na pasta do server e os erros de DLL desapareceram, porém agora apresenta o seguinte erro:

 

image.thumb.png.cda3816ec8f3ef64e2584fb922f4930e.png

 

Dei uma pesquisada e encontrei que poderia ainda ser alguma DLL faltando, então utilizei o Dependencies_x64_Release para verificar, com ele constatei que não é DLL, segue print:

 

image.thumb.png.582fff817fb830f58e5f8f9ffea868cd.png

 

Não sei o que pode ser, al

Mesma coisa aqui coloco as DLL e nada... no windows normal vai qnd jogo no widnows server da esse errro acima 

Link para o post
Compartilhar em outros sites
  • 4 weeks later...

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\latestnews.php on line 18

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\latestnews.php on line 286

 

como ajeita esses dois erros no website

Link para o post
Compartilhar em outros sites
  • 1 month later...

Boa noite,

 

É normal esses erros quando abro no RME ? Se não, como corrigir ? valeu

 

Após salvar o mapa, dá erro pra carregar quando rodo o OT

 

Edit: Na vdd o meu problema era com o items.xml/otb. Resolvido

image.thumb.png.0014fdb905364d69f5486b97856eefb6.png

Editado por brunorthomaz
Consegui resolver o problema (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • 8 months later...

Quando eu tento criar um char pelo site dá o seguinte erro:
 

Citar

The Following Errors Have Occurred:
Wrong characters configuration. Try again or contact with admin. ADMIN: Edit file config/config.php and set valid characters to copy names. Character to copy doesn't exist.



Já olhei o arquivo mencionado e nada

Quando eu tento criar o char pelo site da o seguinte erro:
 

Citar

The Following Errors Have Occurred:
Wrong characters configuration. Try again or contact with admin. ADMIN: Edit file config/config.php and set valid characters to copy names. Character to copy doesn't exist.



Ja olhei o config.php e nada

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por MarcusCores
      Welcome to ShadeCores
      We are excited to finally present to you: ShadeCores!
      After a long time of development and testing, we're finally ready to launch this awesome game!
      Quick Info for laziness:
      Rates: Tibia 7.4 theme 1x Experience 1x Skills 1x Magic 1x Loot 1x Regen General info:
      Official launch: April 24, 17:00 CEST.
      Create characters: 1 hour before launch (16:00 CEST).
      Website: https://shadecores.com/?subtopic=news
      Authentic Damages Monster attacks Monsters carrying equipment & loot Monster Spawns & respawn depending on players online World light and watches Traps Line of sight system Floor saving system Exhaustion system Much more.. General Cannot multi-client REAL Proven & Verified Anti-Cheat system = No cheaters Many quests modified to add mystery to the game for everyone Much more..
      What is ShadeCores?
      ShadeCores is a game designed to mimic the oldschool version of Tibia.com, but in a slower pace.
      Our goal is to be a long lasting and functional game that doesn't run a course of being broken after a few years.
      Read more at: https://shadecores.com/?subtopic=about&view=about.

      World Map
      The map contains all places of Tibia 7.70.
      It also contains 100% spawns of Tibia 7.70.
      With exception of Ankrahmun and Port Hope that was removed for balancing purposes.

      Built authentically
      ShadeCores was built hand in hand with hacked Tibia files (7.70 version) and is very accurate to how Tibia was (with exception things that has been improved).
      If you played Tibia back in 7.4-7.70 and join ShadeCores, you will yourself notice how scary accurate every single spawn is.
      Read more at: https://shadecores.com/?subtopic=about&view=additional.

      Game health
      We have made many modifications to ensure a healthy economy and game.
      Read more at: https://shadecores.com/?subtopic=about&view=balance.

      Creature Behavior
      In ShadeCores, same as in CipSoft's, creatures that's fleeing for their life (low health) will not make any pauses no matter how close the player is.
      Creatures also doesn't have any exhaustion of their abilities such as attacks, healings and more.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=5-Features+-Creature+Behavior.

      Creature spawns
      ShadeCores has the very same spawn system that CipSoft's had back in the day.
      All creatures that spawns has a "home".
      And this "home" has a set amount of creatures that belongs to it, always same type of creature.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=3-Features+-Creature+spawns.

      Accurate creature loot & inventory
      ShadeCores have an accurate loot & inventory system for creatures, working identically as it did in CipSoft's back in the day.
      Which means that creatures with items that give light, will also light up the creature, or armors that will increase the armor of the creature, or that when a creature wear boots of haste, it will run noticeably faster!
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=1-Features+-Creatures+equipping+their+loot+%26amp%3B+loot+system.

      Authentic exhaustions
      Believe it or not, OT's have it completely wrong, OTs uses 1 or 2 kind of exhaustions depending on which version they're meant to reflect (healing + attacking spells).
      However, in CipSoft's, there were 3 different exhaustions in the old days, 4 if you include "using item on.." exhaustion which was 1 second.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=6-Features+-Exhaustion+system.

      Floor saving
      ShadeCores are running with a map-saving system that allow the map to save certain edits done by players.
      The edits can almost be anything from items added to certain places, to open doors, wall torches that's lit or not, items hiding in boxes, book cases or even unexpected containers invisible to the naked eye.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=12-Features+-Floor+saving+system.

      Game health balance
      To ensure that ShadeCores become as perfect as possible, a lot has to be considered and corrected.
      Our goal is to make a long lasting and functional game that doesn't run a course of being broken after a few years.
      In ShadeCores, you're not meant to get unlimited supplies, hunting dragons, dragon lords, demons or other demonic critters, we don't fancy the rushed pace much of Tibia has become along with the community.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=13-Features+-Game+Health+Balance+(creatures%2C+supplies%2C+gold).

      Keep valuables valuable
      In ShadeCores it's harder to obtain "good" equipment, which will turn lower level equipment into the new good equipment.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=14-Features+-Game+Health+Balance+(equipment).

      Line of sight system
      In ShadeCores we use the same line-of-sight system as in CipSoft's.
      You may notice when you're playing that sometimes you can throw things in a way you can't do in most OT's.
      And you' may also notice that sometimes, you cannot throw things in same way as in most OT's.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=8-Features+-Line+of+sight+system.

      Poison storm
      Almost every OT either has ticking poison damage from around 50 counting down until 0, while others have an instant damage followed by poison or some other mixtures.
      While in reality, damage of the poison storm is decided by level and magic level, from the first tick of damage, it decreases with a few % until it reaches 0.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=7-Features+-Poison+storm.

      Traps functionality
      Traps does a static amount of damage. 30 to be exact, it's always 30.
      However, traps cause a physical damage that listen to the creatures armor.
      It means that the damage can and will be reduced by any armor the creature may have.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=2-Features+-Traps+(item).

      World light & watches
      In ShadeCores, time and world light works exactly like it did in CipSoft's back in the day.
      Read more at: https://shadecores.com/?subtopic=support&view=faq&topic=9-Features+-World+lights+%26amp%3B+watches.

      Anti-Cheat system
      We have a very advanced and automatic anti-cheat system that detects all kind of cheats rather quickly, be it bot, macro, tasker or others.
      This system was first developed and proven to work very well in RetroCores world "Cleanera".
      It has since then been improved to be faster and detect a wider array of cheats that people could use.

      A lot of servers has basically lied about that they're anti-bot, most of players have been in "anti-bot" servers that's been exploding with cheats and nobody gets punished, which is why most with good reason wont trust whenever someone says they're "antibot".
      But through Cleanera@RetroCores, we've verified for a lot of people that we're not bullshitting you, we're legit, we have a system that works and a lot of people have tested it and found themselves shocked when their "secret cheat" got caught even though nobody was nearby them.

      Additionally to the anti-cheat, ShadeCores does not allow multi-clienting
      Multi-Clienting will be treated as a cheat and lead to a deletion.
      To make sure nobody accidentally use multi-client without knowing the rules, we've made so that it's not possible to start more than one instance of the client.
      If you try to start a new client while already having one open, you will face this little message.

      Other Game Features
      Ability to play for free. No level restrictions on items nor spells. Non-stackable runes/fluids. No Runes from NPCs. No item-hotkeys. No wands/rods. No protection zone on boats/carpets. Manual aiming Anti-lag system. Great and improved monster systems. Monsters can be lured anywhere. No stairjump exhaust. Possibility to make UH traps. Accurate 7.4 formulas. Classic premium system. Classic promotion system. Many and random raids with possibility to loot raid-rare items.
      If you're new to the community, you're welcome to join the ShadeCores Discord server to chat with other players and staff!
      plain link: https://discord.gg/BtZmNDNUz6


      ShadeCores will officially launch on April 24 at 17:00 CEST!
      You will be able to create characters starting at 16:00 CEST the same day!

      Sincerely,
      ShadeCores Staff
    • Por Pifafa
      Tibinha - YurOts
      Olá hoje trago a vocês meu projeto, tenho como objetivo atingir 50 jogadores (um sonho talvez que quase já se realizou) 
      www.tibinha.online



      Obrigado por ver meu projeto, caso tenha interesse entre nele e converse comigo, estou disponível para tira duvidas e ajudar a todos aqui!
       
    • Por Fearlet
      Tibia Infinity
       
      Olá Tibianos, é com grande satisfação e orgulho que apresento a vocês meu novo projeto consistente em diversas ideias para vários temas de servidores alternativos, com o propósito de ser a primeira equipe a desenvolver servidores, onde o servidor e o player tenham rendas num ciclo econômico a ideia principal é um servidor usando no momento apenas nosso dinheiro real BRL, porém futuramente com o capital em mãos criar nosso token TINF.
       
      No momento estamos a procura de colaboradores, desenvolvedores e patrocinadores corajosos afim de enfrentar aventuras e desafios em nossa equipe, procuramos pessoas que tenham disponibilidade de horário, disponibilidade de contato, prontos para trabalharem dedicadamente aos servidores, pessoas com facilidade de trabalho em equipe, trabalho com metas a serem cumpridas e entregues.
       
       
      Quais projetos iniciados está a caminho ?
      Temos três servidores, em desenvolvimento.

       
      TibiaLands – Este servidor é baseado na fazenda feliz para quem já jogou, ou para quem está no mundos dos NFTs uma das formas de farm é igual ao PVU (Plant vs Undead) que consiste também na plantação, mineração, gastronomia e agropecuária e até a caça de presas.
      Tibia Infinity - Servidor de Tibia alternativo baseado no Tibia 7.4. O jogo tem um verdadeiro mapa global 7.4, com todas as missões daquela época e muito mais. O RPG de Tibia Infity vai além. Na época em que Tibia 7.4 (2005) foi jogado, havia uma magia em torno de itens extremamente raros. Pessoas se reúnem ao redor do mapa tentando resolver mistérios que até hoje não foram resolvidos a nostalgia e o tempo gastos valerão a pena. Não há nenhum item intocável. Mas não será fácil, servidor está sendo 24hrs sendo pensado em como será a economia do jogo, pois sabemos que é dificil, dentro de impostos e má intenções de pessoas que existem hoje em dia.
      PokeInfinity – Servidor alternativo de pokémon onde os players entram para duelarem, com torneios diários, recompensas, tokens, porém com a principal ideia do player pagar para adquirir seu time principal e participar de torneios rankeados, para quem já jogo o torneio global (TG) da pokexgames, será basicamente aqui porém o player irá ter uma renda extra caso ele resolva investir em seu time e pense estrategicamente.

       

       
      Quer saber mais do projeto? entre no nosso Discord.
      Quer ser parte da equipe? Entre no nosso discord e chamem o ADM no pv.
      Lippe#7652
       
      https://discord.gg/53KWSBgYUc

      Alguns spoiler de uns dos projetos
       
       

      OBRIGADO A TODOS PELA ATENÇÃO !!!

       

       
    • Por bkhere
      Atualizações sobre , encontrei um grande amigo aqui no forum , então vamos fechar junto com o novo projeto 
      Atulizado dia 10/09/2021
       
      www.real-age.online
       
       
       
       
       
       
      OLD POST
      salve meus queridos tibiakinganus
      venho apresentar meu projeto vou , dar continuidade num projeto de 8 anos trabalhados e 12 anos retocando , isso mesmo 12 anos , retocando o projeto 
       
      estou precisando de membros na equipe , quem estiver interessado , a base do servidor é 8.60 - porém ele é 95% antibot , e o não tem HOTKEYS usando a base do 7.4 
      Rookgaard full graficos 7.4 + customs 
       
      emfim projeto é top , quem estiver interessado me CHAMA ! estarei postando em breve fotos 
       
      ROOKGAARD BEFORE EDITS

       
      Bridge

       
      Open 

       
      Doublet BEFORE EDIT 

       
      ----
      Segunda EDIÇÃO DOUBLET

       
      Quest

       
       You see a enchanted doublet (Arm:3).
      It weighs 24.00 oz.

       
       
       
       
       
      SEGUNDA EDIÇÃO DO TEMPLO DE ROOK 

      TEST LEVEL 130 - ML 35 
      SD COMUN "ADORI GRAN MORT" pensando ainda se venderemos ela no npc 

       
       
      TEST LEVEL 130 - ML 35 - COM ML MAIOR DANO MAIOR, PORÉM TAMBÉM CONTA LVL
      SD ANTIGA DANO 7.4 "ADORI VITA VIS" NÃO VAI VENDER NO NPC SÓMENTE PLAYERS

       
       
    • Por Akun
      Oiiii Boa Noite !!! , Gostaria de pedir a ajuda de vocês em um poblemas que eu estou tendo,
       
      Adicionei recentemente esse Script Abaixo e consegui instalar tudo direitinho, ta rodando liso.. Mas Gostaria de implementar bonus nesse script
      Exemplo:
      Player Vip: 20% a + de XP
      Player Vip: 1%   a + de ATK SPEED
       
      abaixo todo o Script
       
      [Fonte]
       
      Sistema Vip
       
      1° execute dentro da sua db
      ALTER TABLE `accounts` ADD COLUMN `viplastday` int(10) NOT NULL DEFAULT 0 AFTER `lastday`, ADD COLUMN `vipdays` int(11) NOT NULL DEFAULT 0 AFTER `lastday`;  
       
       
      2º na pasta data/creaturescripts/scripts procure pelo arquivo login.lua e adicione na segunda linha, logo após o function onLogin(player) isso
      player:loadVipData() player:updateVipTime() 3° na pasta data\ crie um arquivo chamado vipsystem.lua e adicione o seguinte
      local config = { -- true = player will be teleported to this position if Vip runs out -- false = player will not be teleported useTeleport = true, expirationPosition = Position(95, 114, 7), -- true = player will received the message you set -- false = player will not receive a message useMessage = true, expirationMessage = 'Your vip days ran out.', expirationMessageType = MESSAGE_STATUS_WARNING } if not VipData then VipData = { } end function Player.onRemoveVip(self) if config.useTeleport then self:teleportTo(config.expirationPosition) config.expirationPosition:sendMagicEffect(CONST_ME_TELEPORT) end if config.useMessage then self:sendTextMessage(config.expirationMessageType, config.expirationMessage) end end function Player.getVipDays(self) return VipData[self:getId()].days end function Player.getLastVipDay(self) return VipData[self:getId()].lastDay end function Player.isVip(self) return self:getVipDays() > 0 end function Player.addInfiniteVip(self) local data = VipData[self:getId()] data.days = 0xFFFF data.lastDay = 0 db.query(string.format('UPDATE `accounts` SET `vipdays` = %i, `viplastday` = %i WHERE `id` = %i;', 0xFFFF, 0, self:getAccountId())) end function Player.addVipDays(self, amount) local data = VipData[self:getId()] local amount = math.min(0xFFFE - data.days, amount) if amount > 0 then if data.days == 0 then local time = os.time() db.query(string.format('UPDATE `accounts` SET `vipdays` = `vipdays` + %i, `viplastday` = %i WHERE `id` = %i;', amount, time, self:getAccountId())) data.lastDay = time else db.query(string.format('UPDATE `accounts` SET `vipdays` = `vipdays` + %i WHERE `id` = %i;', amount, self:getAccountId())) end data.days = data.days + amount end return true end function Player.removeVipDays(self, amount) local data = VipData[self:getId()] if data.days == 0xFFFF then return false end local amount = math.min(data.days, amount) if amount > 0 then db.query(string.format('UPDATE `accounts` SET `vipdays` = `vipdays` - %i WHERE `id` = %i;', amount, self:getAccountId())) data.days = data.days - amount if data.days == 0 then self:onRemoveVip() end end return true end function Player.removeVip(self) local data = VipData[self:getId()] if data.days == 0 then return end data.days = 0 data.lastDay = 0 self:onRemoveVip() db.query(string.format('UPDATE `accounts` SET `vipdays` = 0, `viplastday` = 0 WHERE `id` = %i;', self:getAccountId())) end function Player.loadVipData(self) local resultId = db.storeQuery(string.format('SELECT `vipdays`, `viplastday` FROM `accounts` WHERE `id` = %i;', self:getAccountId())) if resultId then VipData[self:getId()] = { days = result.getDataInt(resultId, 'vipdays'), lastDay = result.getDataInt(resultId, 'viplastday') } result.free(resultId) return true end VipData[self:getId()] = { days = 0, lastDay = 0 } return false end function Player.updateVipTime(self) local save = false local data = VipData[self:getId()] local days, lastDay = data.days, data.lastDay local daysBefore = days if days == 0 or days == 0xFFFF then if lastDay ~= 0 then lastDay = 0 save = true end elseif lastDay == 0 then lastDay = os.time() save = true else local time = os.time() local elapsedDays = math.floor((time - lastDay) / 86400) if elapsedDays > 0 then if elapsedDays >= days then days = 0 lastDay = 0 else days = days - elapsedDays lastDay = time - ((time - lastDay) % 86400) end save = true end end if save then if daysBefore > 0 and days == 0 then self:onRemoveVip() end db.query(string.format('UPDATE `accounts` SET `vipdays` = %i, `viplastday` = %i WHERE `id` = %i;', days, lastDay, self:getAccountId())) data.days = days data.lastDay = lastDay end end  
      4° no arquivo global.lua adicione a seguinte linha
      dofile('data/vipsystem.lua')  
      Talkaction !checkvip para todos os players
       
      1° vá na pasta data/talkactions/scripts e crie um arquivo chamando checkvip.lua e adicione o seguinte
      function onSay(cid, words, param) local player = Player(cid) local days = player:getVipDays() if days == 0 then player:sendCancelMessage('You do not have any vip days.') else player:sendCancelMessage(string.format('You have %s vip day%s left.', (days == 0xFFFF and 'infinite amount of' or days), (days == 1 and '' or 's'))) end return false end 2° e em data/talkactions/talkactions.xml adicione
       
      <talkaction words="!checkvip" script="checkvip.lua"/>  
      Talkaction /vip para membros da staff
      - /vip adddays, NomedoPlayer, 5 --> Adiciona 5 dias vip para o Player. - /vip removedays, NomedoPlayer, 5 --> Remove 5 dias vip do Player. - /vip remove, PlayerName --> Remove todos os dias vip do Player. - /vip check, NomedoPlayer --> Checa quantos dias vip o Player tem. - /vip addinfinite, NomedoPlayer --> Adiciona tempo vip infinito para o Player.  
      Tiles VIP
       
      1° em data/movements/movements.xml e adicione
      <movevent event="StepIn" actionid="1500" script="viptiles.lua"/> <movevent event="StepIn" actionid="1501" script="viptiles.lua"/> 2° em data/movements/script crie o arquivo viptiles.lua e adicione o seguinte
      local vipPosition = Position(101, 116, 7) function onStepIn(cid, item, position, fromPosition) local player = Player(cid) if not player then return true end if item.actionid == 1500 then if not player:isVip() then player:teleportTo(fromPosition) fromPosition:sendMagicEffect(CONST_ME_POFF) player:sendCancelMessage('You do not have any vip days.') end elseif item.actionid == 1501 then if player:isVip() then player:teleportTo(vipPosition) player:say('!* VIP *!', TALKTYPE_MONSTER_SAY) vipPosition:sendMagicEffect(CONST_ME_STUN) else player:teleportTo(fromPosition) player:sendCancelMessage('You do not have any vip days.') fromPosition:sendMagicEffect(CONST_ME_POFF) end end return true end Items que adicionam dias VIP
       
      ItemId 10135 adiciona 10 dias vip. ItemId 10134 adiciona 30 dias vip. ItemId 10133 adiciona 90 dias vip.  
       
      1° em data/actions/actions.xml adicione
      <action fromid="10133" toid="10135" script="vipitems.lua"/> 2° e em data/actions/scripts crie um arquivo chamado vipitems.lua e adicione o seguinte
      local vipItems = { -- [itemid] = amount of vip days [10135] = 10, [10134] = 30, [10133] = 90 } function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) local player = Player(cid) local days = vipItems[item.itemid] player:addVipDays(days) player:say('!* YAY VIP! *!', TALKTYPE_MONSTER_SAY) player:getPosition():sendMagicEffect(CONST_ME_STUN) player:sendTextMessage(MESSAGE_INFO_DESCR, string.format('You received %s vip days.', days)) Item(item.uid):remove(1) return true end



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo