Jump to content

misterM

Members
  • Posts

    24
  • Joined

  • Last visited

About misterM

  • Birthday 01/03/1997

Profile Information

  • Gender
    Male
  • Location
    EUA

Recent Profile Visitors

1884 profile views

misterM's Achievements

Poring

Poring (1/15)

  • Dedicated
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. I have already tried saving on various types of encoding and they all appear this I based on https://github.com/zackdreaver/ROenglishRE
  2. in my cash shop is showing some numbers in use FC, I have already removed all messages from msgstringtable. Even if you remove all messages and NO MSG is displayed, this number appears. Does anyone know how to fix problem?
  3. same error here and I'm using the last iteminfo of kro
  4. @Temtaime which packet to use to connect with your client?
  5. One question, the main chat log is generated when? I was testand I was able to generate all the other more log main chat no. Does anyone know? https://github.com/rathena/rathena/blob/88e48ed6ff314976ecc6ac5f80d40e1113d13e9a/src/map/intif.cpp#L290
  6. @Secrets would it be possible to add timestamp to client messages?
  7. Guys, can I get the id of all the monsters present on a map? Is there any script command for this ?
  8. @Lighta I was able to install the compiler, gcc 5 compiles normally, plus gcc 6 and 7 points many errors to rathena. look gcc 6 Test in Debian CXX skill.cpp /tmp/ccU68UrG.ltrans20.ltrans.o: In function `YAML::Emitter::SpaceOrIndentTo(bool, unsigned long)': <artificial>:(.text+0x1ab): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x1d1): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x200): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' /tmp/ccU68UrG.ltrans20.ltrans.o: In function `YAML::Emitter::~Emitter()': <artificial>:(.text+0x349): undefined reference to `YAML::ostream_wrapper::~ostream_wrapper()' /tmp/ccU68UrG.ltrans20.ltrans.o: In function `YAML::Emitter::Emitter()': <artificial>:(.text+0x636): undefined reference to `YAML::ostream_wrapper::ostream_wrapper()' /tmp/ccU68UrG.ltrans20.ltrans.o: In function `YAML::Emitter::PrepareNode(YAML::EmitterNodeType::value)': <artificial>:(.text+0xf51): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0xf6b): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x1081): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x10ac): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x124b): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' /tmp/ccU68UrG.ltrans20.ltrans.o:<artificial>:(.text+0x12f1): more undefined references to `YAML::ostream_wrapper::write(char const*, unsigned long)' follow /tmp/ccU68UrG.ltrans0.ltrans.o: In function `YAML::Utils::WriteTag(YAML::ostream_wrapper&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)': <artificial>:(.text+0x75): undefined reference to `YAML::ostream_wrapper::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' <artificial>:(.text+0x390): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x3d1): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' /tmp/ccU68UrG.ltrans13.ltrans.o: In function `YAML::EmitFromEvents::OnSequenceEnd()': <artificial>:(.text+0x371): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x39d): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x410): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' /tmp/ccU68UrG.ltrans13.ltrans.o:<artificial>:(.text+0x430): more undefined references to `YAML::ostream_wrapper::write(char const*, unsigned long)' follow /tmp/ccU68UrG.ltrans13.ltrans.o: In function `YAML::EmitFromEvents::OnScalar(YAML::Mark const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': <artificial>:(.text+0x615): undefined reference to `YAML::ostream_wrapper::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' <artificial>:(.text+0x6dd): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x702): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x742): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x762): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' <artificial>:(.text+0x782): undefined reference to `YAML::ostream_wrapper::write(char const*, unsigned long)' /tmp/ccU68UrG.ltrans13.ltrans.o:<artificial>:(.text+0x7a2): more undefined references to `YAML::ostream_wrapper::write(char const*, unsigned long)' follow collect2: error: ld returned 1 exit status Makefile:59: recipe for target 'char-server' failed make[1]: *** [char-server] Error 1 make[1]: Leaving directory '/server/test/emulator/src/char' Makefile:48: recipe for target 'char' failed make: *** [char] Error 2 make: *** Waiting for unfinished jobs.... LD map-server scanner.h:208:17: warning: type of 'libconfig_yy_scan_string' does not match original declaration [-Wlto-type-mismatch] scanner.c:1964:17: note: 'libconfig_yy_scan_string' was previously declared here scanner.c:1964:17: note: code may be misoptimized unless -fno-strict-aliasing is used scanner.h:202:6: warning: type of 'libconfig_yy_delete_buffer' does not match original declaration [-Wlto-type-mismatch] scanner.c:1743:10: note: 'libconfig_yy_delete_buffer' was previously declared here scanner.c:1743:10: note: code may be misoptimized unless -fno-strict-aliasing is used
  9. When I'm going to compile shows this error does anyone know what to do to compile without error ? checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether make sets $(MAKE)... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ar... /usr/bin/ar checking whether byte ordering is bigendian... yes configure: error: bigendian is not supported... stopping This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = 37771f16-5899-4938-84e3-b4740a6cd025 uname -m = x86_64 uname -r = 4.12.14-coreos uname -s = Linux uname -v = #1 SMP Wed Sep 20 22:20:05 UTC 2017 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2490: checking for gcc configure:2506: found /usr/bin/gcc configure:2517: result: gcc configure:2746: checking for C compiler version configure:2755: gcc --version >&5 gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2766: $? = 0 configure:2755: gcc -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) configure:2766: $? = 0 configure:2755: gcc -V >&5 gcc: '-V' option must have argument configure:2766: $? = 1 configure:2755: gcc -qversion >&5 gcc: unrecognized option '-qversion' gcc: no input files configure:2766: $? = 1 configure:2786: checking whether the C compiler works configure:2808: gcc conftest.c >&5 configure:2812: $? = 0 configure:2860: result: yes configure:2863: checking for C compiler default output file name configure:2865: result: a.out configure:2871: checking for suffix of executables configure:2878: gcc -o conftest conftest.c >&5 configure:2882: $? = 0 configure:2904: result: configure:2926: checking whether we are cross compiling configure:2934: gcc -o conftest conftest.c >&5 configure:2938: $? = 0 configure:2945: ./conftest configure:2949: $? = 0 configure:2964: result: no configure:2969: checking for suffix of object files configure:2991: gcc -c conftest.c >&5 configure:2995: $? = 0 configure:3016: result: o configure:3020: checking whether we are using the GNU C compiler configure:3039: gcc -c conftest.c >&5 configure:3039: $? = 0 configure:3048: result: yes configure:3057: checking whether gcc accepts -g configure:3077: gcc -c -g conftest.c >&5 configure:3077: $? = 0 configure:3118: result: yes configure:3135: checking for gcc option to accept ISO C89 configure:3198: gcc -c -g -O2 conftest.c >&5 configure:3198: $? = 0 configure:3211: result: none needed configure:3237: checking how to run the C preprocessor configure:3268: gcc -E conftest.c configure:3268: $? = 0 configure:3282: gcc -E conftest.c conftest.c:9:28: error: ac_nonexistent.h: No such file or directory configure:3282: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3307: result: gcc -E configure:3327: gcc -E conftest.c configure:3327: $? = 0 configure:3341: gcc -E conftest.c conftest.c:9:28: error: ac_nonexistent.h: No such file or directory configure:3341: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3370: checking for grep that handles long lines and -e configure:3428: result: /bin/grep configure:3433: checking for egrep configure:3495: result: /bin/grep -E configure:3500: checking for ANSI C header files configure:3520: gcc -c -g -O2 conftest.c >&5 configure:3520: $? = 0 configure:3593: gcc -o conftest -g -O2 conftest.c >&5 configure:3593: $? = 0 configure:3593: ./conftest configure:3593: $? = 0 configure:3604: result: yes configure:3617: checking for sys/types.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for sys/stat.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for stdlib.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for string.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for memory.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for strings.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for inttypes.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for stdint.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3617: checking for unistd.h configure:3617: gcc -c -g -O2 conftest.c >&5 configure:3617: $? = 0 configure:3617: result: yes configure:3630: checking minix/config.h usability configure:3630: gcc -c -g -O2 conftest.c >&5 conftest.c:52:26: error: minix/config.h: No such file or directory configure:3630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <stdio.h> | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # ifdef HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | #include <minix/config.h> configure:3630: result: no configure:3630: checking minix/config.h presence configure:3630: gcc -E conftest.c conftest.c:19:26: error: minix/config.h: No such file or directory configure:3630: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <minix/config.h> configure:3630: result: no configure:3630: checking for minix/config.h configure:3630: result: no configure:3651: checking whether it is safe to define __EXTENSIONS__ configure:3669: gcc -c -g -O2 conftest.c >&5 configure:3669: $? = 0 configure:3676: result: yes configure:4077: checking whether make sets $(MAKE) configure:4099: result: yes configure:4156: checking for gcc configure:4183: result: gcc configure:4412: checking for C compiler version configure:4421: gcc --version >&5 gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4432: $? = 0 configure:4421: gcc -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) configure:4432: $? = 0 configure:4421: gcc -V >&5 gcc: '-V' option must have argument configure:4432: $? = 1 configure:4421: gcc -qversion >&5 gcc: unrecognized option '-qversion' gcc: no input files configure:4432: $? = 1 configure:4436: checking whether we are using the GNU C compiler configure:4464: result: yes configure:4473: checking whether gcc accepts -g configure:4534: result: yes configure:4551: checking for gcc option to accept ISO C89 configure:4627: result: none needed configure:4705: checking for g++ configure:4721: found /usr/bin/g++ configure:4732: result: g++ configure:4759: checking for C++ compiler version configure:4768: g++ --version >&5 g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4779: $? = 0 configure:4768: g++ -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) configure:4779: $? = 0 configure:4768: g++ -V >&5 g++: '-V' option must have argument configure:4779: $? = 1 configure:4768: g++ -qversion >&5 g++: unrecognized option '-qversion' g++: no input files configure:4779: $? = 1 configure:4783: checking whether we are using the GNU C++ compiler configure:4802: g++ -c -DMAXCONN=16384 conftest.cpp >&5 configure:4802: $? = 0 configure:4811: result: yes configure:4820: checking whether g++ accepts -g configure:4840: g++ -c -g -DMAXCONN=16384 conftest.cpp >&5 configure:4840: $? = 0 configure:4881: result: yes configure:4906: checking for ar configure:4924: found /usr/bin/ar configure:4936: result: /usr/bin/ar configure:4957: checking whether byte ordering is bigendian configure:4972: g++ -c -g -O2 -std=c++11 -DMAXCONN=16384 -I../common conftest.cpp >&5 cc1plus: error: unrecognized command line option "-std=c++11" configure:4972: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | /* end confdefs.h. */ | #ifndef __APPLE_CC__ | not a universal capable compiler | #endif | typedef int dummy; | configure:5017: g++ -c -g -O2 -std=c++11 -DMAXCONN=16384 -I../common conftest.cpp >&5 cc1plus: error: unrecognized command line option "-std=c++11" configure:5017: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | /* end confdefs.h. */ | #include <sys/types.h> | #include <sys/param.h> | | int | main () | { | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | bogus endian macros | #endif | | ; | return 0; | } configure:5061: g++ -c -g -O2 -std=c++11 -DMAXCONN=16384 -I../common conftest.cpp >&5 cc1plus: error: unrecognized command line option "-std=c++11" configure:5061: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" make: *** No targets specified and no makefile found. Stop. | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | /* end confdefs.h. */ | #include <limits.h> | | int | main () | { | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | bogus endian macros | #endif | | ; | return 0; | } configure:5152: g++ -o conftest -g -O2 -std=c++11 -DMAXCONN=16384 -I../common conftest.cpp >&5 cc1plus: error: unrecognized command line option "-std=c++11" configure:5152: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | /* end confdefs.h. */ | #include <stdio.h> | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # ifdef HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | int | main () | { | | /* Are we little or big endian? From Harbison&Steele. */ | union | { | long int l; | char c[sizeof (long int)]; | } u; | u.l = 1; | return u.c[sizeof (long int) - 1] == 1; | | ; | return 0; | } configure:5163: result: yes configure:5167: error: bigendian is not supported... stopping ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_bigendian=yes ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_minix_config_h=no ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_objext=o ac_cv_path_AR=/usr/bin/ar ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_GREP=/bin/grep ac_cv_prog_CPP='gcc -E' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_make_make_set=yes ac_cv_safe_to_define___extensions__=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='/usr/bin/ar' CC='gcc' CFLAGS='-g -O2 -pipe -ffast-math -Wall' CFLAGS_AR='' CPP='gcc -E' CPPFLAGS=' -DMAXCONN=16384 -I../common' CXX='g++' CXXCPP='' CXXFLAGS='-g -O2 -std=c++11' DEFS='' DLLEXT='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' EXEEXT='' GREP='/bin/grep' HAVE_MYSQL='' HAVE_PCRE='' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' MYSQL_CFLAGS='' MYSQL_CONFIG_HOME='' MYSQL_LIBS='' MYSQL_VERSION='' OBJEXT='o' OCHR='char-server' OLOG='login-server' OMAP='map-server' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PCRE_CFLAGS='' PCRE_LIBS='' PCRE_VERSION='' SET_MAKE='' SHELL='/bin/sh' SOFLAGS='' WITH_PLUGINS='' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define __EXTENSIONS__ 1 #define _ALL_SOURCE 1 #define _GNU_SOURCE 1 #define _POSIX_PTHREAD_SEMANTICS 1 #define _TANDEM_SOURCE 1 configure: exit 1
  10. Hello folks I was wanting to add more maps in the parse of mob, I even got it though he does the random only once, I always wanted the monster to appear he does a random of maps. Here is the code below the modified part, I think it's because the txt file is read only once, could anyone help me how can I make the maps stay random? static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const char* start, const char* buffer, const char* filepath) { int num, class_, i, j, mob_lv = -1, ai = -1, size = -1, w1count; short m,x,y,xs = -1, ys = -1; char mobname[NAME_LENGTH]; struct spawn_data mob, *data; struct mob_db* db; int mp; memset(&mob, 0, sizeof(struct spawn_data)); mob.state.boss = !strcmpi(w2,"boss_monster"); // w1=<map name>,<x>,<y>{,<xs>{,<ys>}} // w3=<mob name>{,<mob level>} // w4=<mob id>,<amount>{,<delay1>{,<delay2>{,<event>{,<mob size>{,<mob ai>}}}}} if( ( w1count = sscanf(w1, "%15[^,],%15[^,],%15[^,],%6hd,%6hd,%6hd,%6hd", mob.parse[0].map, mob.parse[1].map, mob.parse[2].map, &x, &y, &xs, &ys) ) < 3 || sscanf(w3, "%23[^,],%11d", mobname, &mob_lv) < 1 || sscanf(w4, "%11d,%11d,%11u,%11u,%77[^,],%11d,%11d[^\t\r\n]", &class_, &num, &mob.delay1, &mob.delay2, mob.eventname, &size, &ai) < 2 ) { ShowError("npc_parse_mob: Invalid mob definition in file '%s', line '%d'.\n * w1=%s\n * w2=%s\n * w3=%s\n * w4=%s\n", filepath, strline(buffer,start-buffer), w1, w2, w3, w4); return strchr(start,'\n');// skip and continue } if( mapindex_name2id(mob.parse[0].map) == 0 || mapindex_name2id(mob.parse[1].map) == 0 || mapindex_name2id(mob.parse[2].map) == 0) { ShowError("npc_parse_mob: Unknown map1 '%s', map2 '%s', map3 '%s' in file '%s', line '%d'.\n", mob.parse[0].map, mob.parse[2].map, mob.parse[3].map, filepath, strline(buffer,start-buffer)); return strchr(start,'\n');// skip and continue } for(mp = 0; mp < 4; mp++) { m = map_mapname2mapid(mob.parse[mp].map); if( m < 0 )//Not loaded on this map-server instance. return strchr(start,'\n');// skip and continue } mob.m = (unsigned short)m;
  11. I added a quest in the quest_db database, but when I get the quest in npc, it does not show correctly in the quest bar, does anyone know how I can fix this?
  12. I am trying to do something that I did not find which function to use, I have a mob plant, I would like other monsters to attack the plant, does anyone know if there is a script function that does this?
  13. Hello rathena. A time ago beret posted the packets of a system in the forum of hercules, and the topic was hidden, I could see the content before it gets hidden and I found it interesting. This system allows you to add items in the cash shop with the day and time to insert and time that the item remains in the shop before it was removed. Packets by Beret: // packet = 0x9ac struct PACKET_CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO { /* this+0x0 */ short PacketType /* this+0x2 */ short PacketLength /* this+0x4 */ unsigned long AID } // packet = 0x9ad struct PACKET_ZC_ACK_CASH_BARGAIN_SALE_ITEM_INFO { /* this+0x0 */ short PacketType /* this+0x2 */ short Result /* this+0x4 */ unsigned short ItemID /* this+0x6 */ int Price } // packet = 0x9ae struct PACKET_CZ_REQ_APPLY_BARGAIN_SALE_ITEM { /* this+0x0 */ short PacketType /* this+0x2 */ unsigned long AID /* this+0x6 */ unsigned short ItemID /* this+0x8 */ int Count /* this+0xc */ int StartDate /* this+0x10 */ unsigned char SellingTime } // packet = 0x9af struct PACKET_ZC_ACK_APPLY_BARGAIN_SALE_ITEM { /* this+0x0 */ short PacketType /* this+0x2 */ short Result } // packet = 0x9b0 struct PACKET_CZ_REQ_REMOVE_BARGAIN_SALE_ITEM { /* this+0x0 */ short PacketType /* this+0x2 */ unsigned long AID /* this+0x6 */ unsigned short ItemID } // packet = 0x9b1 struct PACKET_ZC_ACK_REMOVE_BARGAIN_SALE_ITEM { /* this+0x0 */ short PacketType /* this+0x2 */ short Result } // packet = 0x9b2 struct PACKET_ZC_NOTIFY_BARGAIN_SALE_SELLING { /* this+0x0 */ short PacketType /* this+0x2 */ unsigned short ItemID /* this+0x4 */ short TabCode } // packet = 0x9b3 struct PACKET_ZC_NOTIFY_BARGAIN_SALE_CLOSE { /* this+0x0 */ short PacketType /* this+0x2 */ unsigned short ItemID /* this+0x4 */ short TabCode } // packet = 0x9b4 struct PACKET_CZ_OPEN_BARGAIN_SALE_TOOL { /* this+0x0 */ short PacketType /* this+0x2 */ unsigned long AID } // packet = 0x9b5 struct PACKET_ZC_OPEN_BARGAIN_SALE_TOOL { /* this+0x0 */ short PacketType }
  14. my C code is giving error while receiving the item. A message pops up that I'm overweight, but I do not have any item in my inventory, then the item is dropped to floor. Example code: if (.@check_level > 2) getitem 520,1; else getitem 522,1;
×
×
  • Create New...