• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[7.4] Avesta

TFS has the delay system indeed. Do you have this btw? If so can you share? Thanks.

I'm the one that coded this function for OTServ SVN, check there npchandler.lua file, there are the respective changes. I can't really get to you the sources nor changes, I'm at school.
 
I'm the one that coded this function for OTServ SVN, check there npchandler.lua file, there are the respective changes. I can't really get to you the sources nor changes, I'm at school.
I don't know if you got what I ment. I was talking about a storyteller npc.
 
Hello im trying to compile avesta for windows 7.6 and i have a lot of errors
this is my c++ compiler parametrs
-DSVN
-D__USE_MYSQL__
-D_THREAD_SAFE
-D_REENTRANT
-D__PROTOCOL_76__
and Consolidator
-llibxml2
-lgmp
-llua5.1
-lboost_system
-lboost_regex
-lboost_thread
-lwsock32
-lws2_32
-lsqlite3
-lmysql
-s


Kompilator: Default compiler
Building Makefile: "E:\trunk - Kopia\server\Makefile.win"
Wykonywanie make...
make.exe -f "E:\trunk - Kopia\server\Makefile.win" all
g++.exe -c ../src/actions.cpp -o ../src/actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DSVN -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -D__PROTOCOL_76__

In file included from ../src/definitions.h:68,

from ../src/otpch.h:9,
from ../src/actions.cpp:20:
../src/compiler/gcc.h:81:27: warning: no newline at end of file
In file included from ../src/definitions.h:82,
from ../src/otpch.h:9,
from ../src/actions.cpp:20:
../src/compiler/workarounds.h:78:35: warning: no newline at end of file
In file included from ../src/player.h:25,
from ../src/actions.cpp:23:
../src/otsystem.h:60:24: sys/socket.h: No such file or directory
../src/otsystem.h:61:24: netinet/in.h: No such file or directory
../src/otsystem.h:62:23: arpa/inet.h: No such file or directory
../src/otsystem.h:63:19: netdb.h: No such file or directory
In file included from ../src/item.h:26,
from ../src/map.h:27,
from ../src/creature.h:27,
from ../src/player.h:26,
from ../src/actions.cpp:23:
../src/thing.h: In member function `virtual std::string Thing::getXRayDescription() const':
../src/thing.h:121: error: aggregate `std::stringstream ret' has incomplete type and cannot be defined

In file included from ../src/creatureevent.h:26,
from ../src/creature.h:33,
from ../src/player.h:26,
from ../src/actions.cpp:23:
../src/luascript.h:36:17: lua.h: No such file or directory
../src/luascript.h:37:21: lauxlib.h: No such file or directory
../src/luascript.h:38:20: lualib.h: No such file or directory
In file included from ../src/creatureevent.h:26,
from ../src/creature.h:33,
from ../src/player.h:26,
from ../src/actions.cpp:23:
../src/luascript.h: At global scope:
../src/luascript.h:301: error: ISO C++ forbids declaration of `lua_State' with no type
../src/luascript.h:301: error: expected `;' before '*' token
../src/luascript.h:303: error: expected `;' before "bool"
../src/luascript.h:305: error: expected `;' before '(' token

../src/luascript.h:309: error: variable or field `pushThing' declared void
../src/luascript.h:309: error: expected `;' before '(' token
../src/luascript.h:310: error: variable or field `pushVariant' declared void
../src/luascript.h:310: error: expected `;' before '(' token
../src/luascript.h:311: error: variable or field `pushPosition' declared void
../src/luascript.h:311: error: expected `;' before '(' token
../src/luascript.h:312: error: variable or field `pushPosition' declared void
../src/luascript.h:312: error: expected `;' before '(' token

../src/luascript.h:313: error: variable or field `pushCallback' declared void
../src/luascript.h:313: error: expected `;' before '(' token
../src/luascript.h:315: error: expected `;' before '(' token
../src/luascript.h:316: error: variable or field `popPosition' declared void
../src/luascript.h:316: error: expected `;' before '(' token
../src/luascript.h:317: error: variable or field `popPosition' declared void
../src/luascript.h:317: error: expected `;' before '(' token
../src/luascript.h:318: error: expected `;' before '(' token
../src/luascript.h:319: error: expected `;' before '(' token
../src/luascript.h:320: error: expected `;' before '(' token
../src/luascript.h:321: error: expected `;' before '(' token
../src/luascript.h:322: error: expected `;' before '(' token
../src/luascript.h:324: error: expected `;' before '(' token
../src/luascript.h:325: error: expected `;' before '(' token
../src/luascript.h:326: error: variable or field `setField' declared void

../src/luascript.h:326: error: expected `;' before '(' token
../src/luascript.h:327: error: variable or field `setField' declared void
../src/luascript.h:327: error: expected `;' before '(' token
../src/luascript.h:328: error: expected `;' before '(' token
../src/luascript.h:329: error: variable or field `setFieldBool' declared void
../src/luascript.h:329: error: expected `;' before '(' token
../src/luascript.h:330: error: expected `;' before '(' token

../src/luascript.h:339: error: expected `;' before '(' token
../src/luascript.h:342: error: expected `;' before '(' token
../src/luascript.h:343: error: expected `;' before '(' token
../src/luascript.h:344: error: expected `;' before '(' token
../src/luascript.h:345: error: expected `;' before '(' token
../src/luascript.h:346: error: expected `;' before '(' token
../src/luascript.h:347: error: expected `;' before '(' token
../src/luascript.h:348: error: expected `;' before '(' token

../src/luascript.h:349: error: expected `;' before '(' token
../src/luascript.h:350: error: expected `;' before '(' token
../src/luascript.h:351: error: expected `;' before '(' token
../src/luascript.h:352: error: expected `;' before '(' token
../src/luascript.h:353: error: expected `;' before '(' token
../src/luascript.h:354: error: expected `;' before '(' token
../src/luascript.h:355: error: expected `;' before '(' token
../src/luascript.h:356: error: expected `;' before '(' token

../src/luascript.h:357: error: expected `;' before '(' token
../src/luascript.h:358: error: expected `;' before '(' token
../src/luascript.h:359: error: expected `;' before '(' token
../src/luascript.h:360: error: expected `;' before '(' token
../src/luascript.h:361: error: expected `;' before '(' token
../src/luascript.h:362: error: expected `;' before '(' token
../src/luascript.h:363: error: expected `;' before '(' token
../src/luascript.h:364: error: expected `;' before '(' token

../src/luascript.h:365: error: expected `;' before '(' token
../src/luascript.h:366: error: expected `;' before '(' token
../src/luascript.h:367: error: expected `;' before '(' token
../src/luascript.h:368: error: expected `;' before '(' token
../src/luascript.h:369: error: expected `;' before '(' token
../src/luascript.h:371: error: expected `;' before '(' token
../src/luascript.h:372: error: expected `;' before '(' token
../src/luascript.h:373: error: expected `;' before '(' token

../src/luascript.h:374: error: expected `;' before '(' token
../src/luascript.h:375: error: expected `;' before '(' token
../src/luascript.h:376: error: expected `;' before '(' token
../src/luascript.h:377: error: expected `;' before '(' token
../src/luascript.h:378: error: expected `;' before '(' token
../src/luascript.h:379: error: expected `;' before '(' token
../src/luascript.h:380: error: expected `;' before '(' token
../src/luascript.h:381: error: expected `;' before '(' token

../src/luascript.h:382: error: expected `;' before '(' token
../src/luascript.h:383: error: expected `;' before '(' token
../src/luascript.h:384: error: expected `;' before '(' token
../src/luascript.h:385: error: expected `;' before '(' token
../src/luascript.h:386: error: expected `;' before '(' token
../src/luascript.h:387: error: expected `;' before '(' token
../src/luascript.h:388: error: expected `;' before '(' token
../src/luascript.h:389: error: expected `;' before '(' token

../src/luascript.h:390: error: expected `;' before '(' token
../src/luascript.h:392: error: expected `;' before '(' token
../src/luascript.h:394: error: expected `;' before '(' token
../src/luascript.h:395: error: expected `;' before '(' token
../src/luascript.h:396: error: expected `;' before '(' token
../src/luascript.h:397: error: expected `;' before '(' token
../src/luascript.h:398: error: expected `;' before '(' token
../src/luascript.h:399: error: expected `;' before '(' token

../src/luascript.h:400: error: expected `;' before '(' token
../src/luascript.h:401: error: expected `;' before '(' token
../src/luascript.h:402: error: expected `;' before '(' token
../src/luascript.h:403: error: expected `;' before '(' token
../src/luascript.h:404: error: expected `;' before '(' token
../src/luascript.h:405: error: expected `;' before '(' token
../src/luascript.h:406: error: expected `;' before '(' token
../src/luascript.h:407: error: expected `;' before '(' token

../src/luascript.h:408: error: expected `;' before '(' token
../src/luascript.h:411: error: expected `;' before '(' token
../src/luascript.h:412: error: expected `;' before '(' token
../src/luascript.h:413: error: expected `;' before '(' token
../src/luascript.h:414: error: expected `;' before '(' token
../src/luascript.h:415: error: expected `;' before '(' token
../src/luascript.h:418: error: expected `;' before '(' token
../src/luascript.h:419: error: expected `;' before '(' token

../src/luascript.h:420: error: expected `;' before '(' token
../src/luascript.h:421: error: expected `;' before '(' token
../src/luascript.h:422: error: expected `;' before '(' token
../src/luascript.h:423: error: expected `;' before '(' token
../src/luascript.h:424: error: expected `;' before '(' token
../src/luascript.h:425: error: expected `;' before '(' token
../src/luascript.h:426: error: expected `;' before '(' token
../src/luascript.h:427: error: expected `;' before '(' token

../src/luascript.h:428: error: expected `;' before '(' token
../src/luascript.h:429: error: expected `;' before '(' token
../src/luascript.h:430: error: expected `;' before '(' token
../src/luascript.h:433: error: expected `;' before '(' token
../src/luascript.h:434: error: expected `;' before '(' token
../src/luascript.h:435: error: expected `;' before '(' token
../src/luascript.h:438: error: expected `;' before '(' token
../src/luascript.h:439: error: expected `;' before '(' token

../src/luascript.h:440: error: expected `;' before '(' token
../src/luascript.h:443: error: expected `;' before '(' token
../src/luascript.h:444: error: expected `;' before '(' token
../src/luascript.h:445: error: expected `;' before '(' token
../src/luascript.h:446: error: expected `;' before '(' token
../src/luascript.h:447: error: expected `;' before '(' token
../src/luascript.h:448: error: expected `;' before '(' token
../src/luascript.h:449: error: expected `;' before '(' token

../src/luascript.h:450: error: expected `;' before '(' token
../src/luascript.h:451: error: expected `;' before '(' token
../src/luascript.h:452: error: expected `;' before '(' token
../src/luascript.h:453: error: expected `;' before '(' token
../src/luascript.h:454: error: expected `;' before '(' token
../src/luascript.h:455: error: expected `;' before '(' token
../src/luascript.h:456: error: expected `;' before '(' token
../src/luascript.h:457: error: expected `;' before '(' token

../src/luascript.h:460: error: expected `;' before '(' token
../src/luascript.h:461: error: expected `;' before '(' token
../src/luascript.h:462: error: expected `;' before '(' token
../src/luascript.h:463: error: expected `;' before '(' token
../src/luascript.h:464: error: expected `;' before '(' token
../src/luascript.h:465: error: expected `;' before '(' token
../src/luascript.h:466: error: expected `;' before '(' token
../src/luascript.h:467: error: expected `;' before '(' token

../src/luascript.h:468: error: expected `;' before '(' token
../src/luascript.h:469: error: expected `;' before '(' token
../src/luascript.h:470: error: expected `;' before '(' token
../src/luascript.h:472: error: expected `;' before '(' token
../src/luascript.h:474: error: expected `;' before '(' token
../src/luascript.h:475: error: expected `;' before '(' token
../src/luascript.h:476: error: expected `;' before '(' token
../src/luascript.h:477: error: expected `;' before '(' token

../src/luascript.h:478: error: expected `;' before '(' token
../src/luascript.h:479: error: expected `;' before '(' token
../src/luascript.h:480: error: expected `;' before '(' token
../src/luascript.h:481: error: expected `;' before '(' token
../src/luascript.h:482: error: expected `;' before '(' token
../src/luascript.h:483: error: expected `;' before '(' token
../src/luascript.h:484: error: expected `;' before '(' token
../src/luascript.h:485: error: expected `;' before '(' token

../src/luascript.h:486: error: expected `;' before '(' token
../src/luascript.h:487: error: expected `;' before '(' token
../src/luascript.h:488: error: expected `;' before '(' token
../src/luascript.h:489: error: expected `;' before '(' token
../src/luascript.h:490: error: expected `;' before '(' token
../src/luascript.h:491: error: expected `;' before '(' token
../src/luascript.h:492: error: expected `;' before '(' token
../src/luascript.h:494: error: expected `;' before '(' token

../src/luascript.h:495: error: expected `;' before '(' token
../src/luascript.h:496: error: expected `;' before '(' token
../src/luascript.h:497: error: expected `;' before '(' token
../src/luascript.h:498: error: expected `;' before '(' token
../src/luascript.h:499: error: expected `;' before '(' token
../src/luascript.h:500: error: expected `;' before '(' token
../src/luascript.h:502: error: expected `;' before '(' token
../src/luascript.h:503: error: expected `;' before '(' token

../src/luascript.h:504: error: expected `;' before '(' token
../src/luascript.h:505: error: expected `;' before '(' token
../src/luascript.h:506: error: expected `;' before '(' token
../src/luascript.h:507: error: expected `;' before '(' token
../src/luascript.h:509: error: expected `;' before '(' token
../src/luascript.h:510: error: expected `;' before '(' token
../src/luascript.h:511: error: expected `;' before '(' token
../src/luascript.h:513: error: expected `;' before '(' token

../src/luascript.h:514: error: expected `;' before '(' token
../src/luascript.h:515: error: expected `;' before '(' token
../src/luascript.h:516: error: expected `;' before '(' token
../src/luascript.h:517: error: expected `;' before '(' token
../src/luascript.h:519: error: expected `;' before '(' token
../src/luascript.h:520: error: expected `;' before '(' token
../src/luascript.h:521: error: expected `;' before '(' token
../src/luascript.h:522: error: expected `;' before '(' token

../src/luascript.h:523: error: expected `;' before '(' token
../src/luascript.h:525: error: expected `;' before '(' token
../src/luascript.h:526: error: expected `;' before '(' token
../src/luascript.h:527: error: expected `;' before '(' token
../src/luascript.h:528: error: expected `;' before '(' token
../src/luascript.h:529: error: expected `;' before '(' token
../src/luascript.h:530: error: expected `;' before '(' token
../src/luascript.h:531: error: expected `;' before '(' token

../src/luascript.h:532: error: expected `;' before '(' token
../src/luascript.h:535: error: expected `;' before '(' token
../src/luascript.h:536: error: expected `;' before '(' token
../src/luascript.h:537: error: expected `;' before '(' token
../src/luascript.h:538: error: expected `;' before '(' token
../src/luascript.h:539: error: expected `;' before '(' token
../src/luascript.h:540: error: expected `;' before '(' token
../src/luascript.h:541: error: expected `;' before '(' token

../src/luascript.h:544: error: expected `;' before '(' token
../src/luascript.h:545: error: expected `;' before '(' token
../src/luascript.h:546: error: expected `;' before '(' token
../src/luascript.h:547: error: expected `;' before '(' token
../src/luascript.h:548: error: expected `;' before '(' token
../src/luascript.h:551: error: expected `;' before '(' token
../src/luascript.h:552: error: expected `;' before '(' token
../src/luascript.h:553: error: expected `;' before '(' token

../src/luascript.h:554: error: expected `;' before '(' token
../src/luascript.h:555: error: expected `;' before '(' token
../src/luascript.h:556: error: expected `;' before '(' token
../src/luascript.h:559: error: expected `;' before '(' token
../src/luascript.h:560: error: expected `;' before '(' token
../src/luascript.h:561: error: expected `;' before '(' token
../src/luascript.h:562: error: expected `;' before '(' token
../src/luascript.h:563: error: expected `;' before '(' token

../src/luascript.h:564: error: expected `;' before '(' token
../src/luascript.h:565: error: expected `;' before '(' token
../src/luascript.h:566: error: expected `;' before '(' token
../src/luascript.h:567: error: expected `;' before '(' token
../src/luascript.h:569: error: expected `;' before '(' token
../src/luascript.h:570: error: expected `;' before '(' token
../src/luascript.h:571: error: expected `;' before '(' token
../src/luascript.h:572: error: expected `;' before '(' token

../src/luascript.h:574: error: expected `;' before '(' token
../src/luascript.h:575: error: expected `;' before '(' token
../src/luascript.h:578: error: expected `;' before '(' token
../src/luascript.h:579: error: expected `;' before '(' token
../src/luascript.h:581: error: expected `;' before '(' token
../src/luascript.h:582: error: expected `;' before '(' token
../src/luascript.h:584: error: expected `;' before '(' token
../src/luascript.h:585: error: expected `;' before '(' token

../src/luascript.h:587: error: expected `;' before '(' token
../src/luascript.h:588: error: expected `;' before '(' token
../src/luascript.h:589: error: expected `;' before '(' token
../src/luascript.h:590: error: expected `;' before '(' token
../src/luascript.h:591: error: expected `;' before '(' token
../src/luascript.h:592: error: expected `;' before '(' token
../src/luascript.h:593: error: expected `;' before '(' token
../src/luascript.h:594: error: expected `;' before '(' token

../src/luascript.h:596: error: expected `;' before '(' token
../src/luascript.h:597: error: expected `;' before '(' token
../src/luascript.h:598: error: expected `;' before '(' token
../src/luascript.h:599: error: expected `;' before '(' token
../src/luascript.h:601: error: expected `;' before '(' token
../src/luascript.h:602: error: expected `;' before '(' token
../src/luascript.h:603: error: expected `;' before '(' token
../src/luascript.h:605: error: expected `;' before '(' token

../src/luascript.h:607: error: expected `;' before '(' token
../src/luascript.h:608: error: expected `;' before '(' token
../src/luascript.h:609: error: expected `;' before '(' token
../src/luascript.h:610: error: expected `;' before '(' token
../src/luascript.h:611: error: expected `;' before '(' token
../src/luascript.h:612: error: expected `;' before '(' token
../src/luascript.h:613: error: expected `;' before '(' token
../src/luascript.h:614: error: expected `;' before '(' token

../src/luascript.h:615: error: expected `;' before '(' token
../src/luascript.h:616: error: expected `;' before '(' token
../src/luascript.h:617: error: expected `;' before '(' token
../src/luascript.h:618: error: expected `;' before '(' token
../src/luascript.h:619: error: expected `;' before '(' token
../src/luascript.h:620: error: expected `;' before '(' token
../src/luascript.h:621: error: expected `;' before '(' token
../src/luascript.h:622: error: expected `;' before '(' token

../src/luascript.h:623: error: expected `;' before '(' token
../src/luascript.h:624: error: expected `;' before '(' token
../src/luascript.h:626: error: expected `;' before '(' token
../src/luascript.h:627: error: expected `;' before '(' token
../src/luascript.h:628: error: expected `;' before '(' token
../src/luascript.h:629: error: expected `;' before '(' token
../src/luascript.h:630: error: expected `;' before '(' token
../src/luascript.h:631: error: expected `;' before '(' token

../src/luascript.h:632: error: expected `;' before '(' token
../src/luascript.h:633: error: expected `;' before '(' token
../src/luascript.h:634: error: expected `;' before '(' token
../src/luascript.h:635: error: expected `;' before '(' token
../src/luascript.h:636: error: expected `;' before '(' token
../src/luascript.h:637: error: expected `;' before '(' token
../src/luascript.h:638: error: expected `;' before '(' token
../src/luascript.h:639: error: expected `;' before '(' token

../src/luascript.h:640: error: expected `;' before '(' token
../src/luascript.h:641: error: expected `;' before '(' token
../src/luascript.h:643: error: expected `;' before '(' token
../src/luascript.h:644: error: expected `;' before '(' token
../src/luascript.h:645: error: expected `;' before '(' token
../src/luascript.h:646: error: expected `;' before '(' token
../src/luascript.h:647: error: expected `;' before '(' token
../src/luascript.h:648: error: expected `;' before '(' token

../src/luascript.h:649: error: expected `;' before '(' token
../src/luascript.h:650: error: expected `;' before '(' token
../src/luascript.h:651: error: expected `;' before '(' token
../src/luascript.h:652: error: expected `;' before '(' token
../src/luascript.h:653: error: expected `;' before '(' token
../src/luascript.h:654: error: expected `;' before '(' token
../src/luascript.h:655: error: expected `;' before '(' token
../src/luascript.h:656: error: expected `;' before '(' token

../src/luascript.h:657: error: expected `;' before '(' token
../src/luascript.h:659: error: expected `;' before '(' token
../src/luascript.h:661: error: expected `;' before '(' token
../src/luascript.h:663: error: expected `;' before '(' token
../src/luascript.h:664: error: expected `;' before '(' token
../src/luascript.h:665: error: expected `;' before '(' token
../src/luascript.h:667: error: `luaL_Reg' does not name a type
../src/luascript.h:668: error: expected `;' before '(' token
../src/luascript.h:669: error: expected `;' before '(' token

../src/luascript.h:670: error: expected `;' before '(' token
../src/luascript.h:671: error: expected `;' before '(' token
../src/luascript.h:672: error: expected `;' before '(' token
../src/luascript.h:673: error: expected `;' before '(' token
../src/luascript.h:674: error: expected `;' before '(' token
../src/luascript.h:675: error: expected `;' before '(' token
../src/luascript.h:676: error: expected `;' before '(' token
../src/luascript.h:677: error: expected `;' before '(' token

../src/luascript.h:678: error: expected `;' before '(' token
../src/luascript.h:679: error: expected `;' before '(' token
../src/luascript.h:681: error: `luaL_Reg' does not name a type
../src/luascript.h:682: error: expected `;' before '(' token
../src/luascript.h:683: error: expected `;' before '(' token
../src/luascript.h:684: error: expected `;' before '(' token
../src/luascript.h:685: error: expected `;' before '(' token
../src/luascript.h:686: error: expected `;' before '(' token
../src/luascript.h:687: error: expected `;' before '(' token

../src/luascript.h:688: error: expected `;' before '(' token
../src/luascript.h:689: error: expected `;' before '(' token
../src/luascript.h:690: error: expected `;' before '(' token
../src/luascript.h:692: error: `luaL_Reg' does not name a type
../src/luascript.h:693: error: expected `;' before '(' token
../src/luascript.h:694: error: expected `;' before '(' token
../src/luascript.h:695: error: expected `;' before '(' token
../src/luascript.h:696: error: expected `;' before '(' token
../src/luascript.h:697: error: expected `;' before '(' token

../src/luascript.h:698: error: expected `;' before '(' token
../src/luascript.h:699: error: expected `;' before '(' token
../src/luascript.h:701: error: expected `;' before '(' token
../src/luascript.h:702: error: expected `;' before '(' token
../src/luascript.h:703: error: expected `;' before '(' token
../src/luascript.h:704: error: expected `;' before '(' token
../src/luascript.h:705: error: expected `;' before '(' token
../src/luascript.h:706: error: expected `;' before '(' token

../src/luascript.h:707: error: expected `;' before '(' token
../src/luascript.h:708: error: expected `;' before '(' token
../src/luascript.h:710: error: ISO C++ forbids declaration of `lua_State' with no type
../src/luascript.h:710: error: expected `;' before '*' token

In file included from ../src/actions.cpp:25:
../src/npc.h:55: error: expected `;' before '(' token
../src/npc.h:56: error: expected `;' before '(' token
../src/npc.h:57: error: expected `;' before '(' token

../src/npc.h:58: error: expected `;' before '(' token
../src/npc.h:59: error: expected `;' before '(' token
../src/npc.h:60: error: expected `;' before '(' token
../src/npc.h:61: error: expected `;' before '(' token
../src/npc.h:62: error: expected `;' before '(' token
../src/npc.h:63: error: expected `;' before '(' token
../src/npc.h:64: error: expected `;' before '(' token
../src/npc.h:65: error: expected `;' before '(' token
../src/npc.h:66: error: expected `;' before '(' token
../src/npc.h:67: error: expected `;' before '(' token
../src/npc.h:69: error: expected `;' before '(' token
../src/npc.h:70: error: expected `;' before '(' token
../src/npc.h:71: error: expected `;' before '(' token
../src/npc.h:72: error: expected `;' before '(' token
../src/npc.h:73: error: expected `;' before '(' token
../src/npc.h:74: error: expected `;' before '(' token

../src/npc.h:75: error: expected `;' before '(' token
../src/npc.h:76: error: expected `;' before '(' token
../src/npc.h:77: error: expected `;' before '(' token

In file included from ../src/scheduler.h:25,
from ../src/game.h:34,
from ../src/actions.cpp:26:
../src/tasks.h:86: error: using-declaration for non-member at class scope

../src/tasks.h:86: error: expected `;' before "m_taskSignal"

In file included from ../src/game.h:34,
from ../src/actions.cpp:26:
../src/scheduler.h:44: error: using-declaration for non-member at class scope
../src/scheduler.h:44: error: expected `;' before "getCycle"
../src/scheduler.h:46: error: expected `;' before "bool"
../src/scheduler.h:58: error: using-declaration for non-member at class scope
../src/scheduler.h:58: error: expected `;' before "m_cycle"
../src/scheduler.h: In member function `bool SchedulerTask::operator<(const SchedulerTask&) const':
../src/scheduler.h:48: error: `getCycle' undeclared (first use this function)
../src/scheduler.h:48: error: (Each undeclared identifier is reported only once for each function it appears in.)
../src/scheduler.h:48: error: 'const class SchedulerTask' has no member named 'getCycle'
../src/scheduler.h: In constructor `SchedulerTask::SchedulerTask(uint32_t, boost::function<void ()(), std::allocator<void> >)':
../src/scheduler.h:54: error: `m_cycle' undeclared (first use this function)
../src/scheduler.h:54: error: `get_system_time' is not a member of `boost'
../src/scheduler.h:54: error: `boost::posix_time' has not been declared
../src/scheduler.h:54: error: `milliseconds' undeclared (first use this function)
../src/scheduler.h: At global scope:
../src/scheduler.h:110: error: using-declaration for non-member at class scope
../src/scheduler.h:110: error: expected `;' before "m_eventSignal"

In file included from ../src/actions.cpp:34:
../src/configmanager.h:132: error: `lua_State' has not been declared
../src/configmanager.h:132: error: ISO C++ forbids declaration of `_L' with no type
../src/configmanager.h:140: error: variable or field `moveValue' declared void
../src/configmanager.h:140: error: expected `;' before '(' token
../src/configmanager.h:141: error: expected `;' before '(' token
../src/configmanager.h:142: error: expected `;' before '(' token
../src/configmanager.h:143: error: expected `;' before '(' token
../src/configmanager.h:145: error: ISO C++ forbids declaration of `lua_State' with no type
../src/configmanager.h:145: error: expected `;' before '*' token

../src/actions.cpp: In member function `virtual bool Action::executeUse(Player*, Item*, const PositionEx&, const PositionEx&, bool, uint32_t)':
../src/actions.cpp:572: error: `lua_State' undeclared (first use this function)
../src/actions.cpp:572: error: `L' undeclared (first use this function)
../src/actions.cpp:572: error: 'class LuaScriptInterface' has no member named 'getLuaState'
../src/actions.cpp:575: error: `lua_pushnumber' undeclared (first use this function)
../src/actions.cpp:576: error: `pushThing' is not a member of `LuaScriptInterface'
../src/actions.cpp:577: error: `pushPosition' is not a member of `LuaScriptInterface'
../src/actions.cpp:582: error: `pushThing' is not a member of `LuaScriptInterface'
../src/actions.cpp:583: error: `pushPosition' is not a member of `LuaScriptInterface'
../src/actions.cpp:586: error: `pushThing' is not a member of `LuaScriptInterface'
../src/actions.cpp:588: error: `pushPosition' is not a member of `LuaScriptInterface'

make.exe: *** [../src/actions.o] Error 1

Wykonanie zakończone
 
i need npc pack for this server, anyone have?

- - - Updated - - -

edit: i need a mysql datebase for this server!

- - - Updated - - -

edit: i need a mysql datebase for this server!
 
i need npc pack for this server, anyone have?

- - - Updated - - -

edit: i need a mysql datebase for this server!

- - - Updated - - -

edit: i need a mysql datebase for this server!

misc/schema.mysql?

Code:
CREATE TABLE `groups` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL COMMENT 'group name',
    `flags` BIGINT UNSIGNED NOT NULL DEFAULT 0,
    `access` INT NOT NULL,
    `maxdepotitems` INT NOT NULL,
    `maxviplist` INT NOT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `accounts` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `password` VARCHAR(255) NOT NULL/* VARCHAR(32) NOT NULL COMMENT 'MD5'*//* VARCHAR(40) NOT NULL COMMENT 'SHA1'*/,
    `email` VARCHAR(255) NOT NULL DEFAULT '',
    `premend` INT UNSIGNED NOT NULL DEFAULT 0,
    `blocked` TINYINT(1) NOT NULL DEFAULT FALSE,
    `deleted` TINYINT(1) NOT NULL DEFAULT FALSE,
    `warned` TINYINT(1) NOT NULL DEFAULT FALSE,
    `warnings` INT NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `players` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL,
    `account_id` INT UNSIGNED NOT NULL,
    `group_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'users group',
    `sex` INT UNSIGNED NOT NULL DEFAULT 0,
    `vocation` INT UNSIGNED NOT NULL DEFAULT 0,
    `experience` BIGINT UNSIGNED NOT NULL DEFAULT 0,
    `level` INT UNSIGNED NOT NULL DEFAULT 1,
    `maglevel` INT UNSIGNED NOT NULL DEFAULT 0,
    `health` INT UNSIGNED NOT NULL DEFAULT 100,
    `healthmax` INT UNSIGNED NOT NULL DEFAULT 100,
    `mana` INT UNSIGNED NOT NULL DEFAULT 100,
    `manamax` INT UNSIGNED NOT NULL DEFAULT 100,
    `manaspent` INT UNSIGNED NOT NULL DEFAULT 0,
    `direction` INT UNSIGNED NOT NULL DEFAULT 0,
	`looktype` INT UNSIGNED NOT NULL DEFAULT 136,
	`lookhead` INT UNSIGNED NOT NULL DEFAULT 10,
    `lookbody` INT UNSIGNED NOT NULL DEFAULT 10,
	`looklegs` INT UNSIGNED NOT NULL DEFAULT 10,
    `lookfeet` INT UNSIGNED NOT NULL DEFAULT 10,
    `posx` INT NOT NULL DEFAULT 0,
    `posy` INT NOT NULL DEFAULT 0,
    `posz` INT NOT NULL DEFAULT 0,
    `cap` INT NOT NULL DEFAULT 0,
    `lastlogin` INT UNSIGNED NOT NULL DEFAULT 0,
    `lastlogout` INT UNSIGNED NOT NULL DEFAULT 0,
    `lastip` INT UNSIGNED NOT NULL DEFAULT 0,
    `save` TINYINT(1) NOT NULL DEFAULT TRUE,
    `conditions` BLOB NOT NULL COMMENT 'drunk, poisoned etc (maybe also food and redskull)',
    `redskulltime` INT UNSIGNED NOT NULL DEFAULT 0,
    `redskull` TINYINT(1) NOT NULL DEFAULT FALSE,
    `guildnick` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'additional nick in guild - mostly for web interfaces i think',
    `loss_experience` INT NOT NULL DEFAULT 10,
    `loss_mana` INT NOT NULL DEFAULT 10,
    `loss_skills` INT NOT NULL DEFAULT 10,
    `loss_items` INT NOT NULL DEFAULT 10,
    `rank_id` INT UNSIGNED NOT NULL COMMENT 'by this field everything with guilds is done - player has a rank which belongs to certain guild',
    `town_id` INT NOT NULL COMMENT 'old masterpos, temple spawn point position',
    `balance` INT NOT NULL DEFAULT 0 COMMENT 'money balance of the player for houses paying',
    `status` TINYINT(1) NOT NULL DEFAULT FALSE,
    PRIMARY KEY (`id`),
    UNIQUE (`name`),
    FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
    FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`)
) ENGINE = InnoDB;

CREATE TABLE `guilds` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL COMMENT 'guild name - nothing else needed here',
    `ownerid` INT NOT NULL,
    `creationdata` INT NOT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `guild_ranks` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `guild_id` INT UNSIGNED NOT NULL COMMENT 'guild',
    `name` VARCHAR(255) NOT NULL COMMENT 'rank name',
    `level` INT NOT NULL COMMENT 'rank level - leader, vice, member, maybe something else',
    PRIMARY KEY (`id`),
    FOREIGN KEY (`guild_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_viplist` (
    `player_id` INT UNSIGNED NOT NULL COMMENT 'id of player whose viplist entry it is',
    `vip_id` INT UNSIGNED NOT NULL COMMENT 'id of target player of viplist entry',
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE,
    FOREIGN KEY (`vip_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_spells` (
    `player_id` INT UNSIGNED NOT NULL,
    `name` VARCHAR(255) NOT NULL,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `server_record` (
	`record` INT UNSIGNED NOT NULL,
    PRIMARY KEY(`record`)
) ENGINE = InnoDB;

INSERT INTO `server_record` VALUES (0);

CREATE TABLE `player_storage` (
    `player_id` INT UNSIGNED NOT NULL,
    `key` INT NOT NULL,
    `value` INT NOT NULL,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_skills` (
    `player_id` INT UNSIGNED NOT NULL,
    `skillid` INT UNSIGNED NOT NULL,
    `value` INT UNSIGNED NOT NULL DEFAULT 0,
    `count` INT UNSIGNED NOT NULL DEFAULT 0,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_items` (
    `player_id` INT UNSIGNED NOT NULL,
    `sid` INT NOT NULL,
    `pid` INT NOT NULL DEFAULT 0,
    `itemtype` INT NOT NULL,
    `count` INT NOT NULL DEFAULT 0,
    `attributes` BLOB COMMENT 'replaces unique_id, action_id, text, special_desc',
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE,
    UNIQUE (`player_id`, `sid`)
) ENGINE = InnoDB;

CREATE TABLE `houses` (
    `id` INT UNSIGNED NOT NULL,
    `owner` INT NOT NULL,
    `paid` INT UNSIGNED NOT NULL DEFAULT 0,
    `warnings` INT NOT NULL DEFAULT 0,
    `lastwarning` INT UNSIGNED NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `house_lists` (
    `house_id` INT UNSIGNED NOT NULL,
    `listid` INT NOT NULL,
    `list` TEXT NOT NULL,
    FOREIGN KEY (`house_id`) REFERENCES `houses` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `bans` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `type` INT NOT NULL COMMENT 'this field defines if its ip, account, player, or any else ban',
    `value` INT UNSIGNED NOT NULL COMMENT 'ip, player guid, account number',
    `param` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'mask',
    `active` TINYINT(1) NOT NULL DEFAULT TRUE,
    `expires` INT UNSIGNED NOT NULL,
    `added` INT UNSIGNED NOT NULL,
    `admin_id` INT UNSIGNED NOT NULL DEFAULT 0,
    `reason` VARCHAR(255) NOT NULL DEFAULT '',
    `comment` VARCHAR(255) NOT NULL DEFAULT '',
    PRIMARY KEY  (`id`),
    KEY (`type`, `value`),
    KEY (`expires`)
) ENGINE = InnoDB;

CREATE TABLE `tiles` (
    `id` INT UNSIGNED NOT NULL,
    `x` INT NOT NULL,
    `y` INT NOT NULL,
    `z` INT NOT NULL,
    PRIMARY KEY(`id`)
) ENGINE = InnoDB;

CREATE TABLE `tile_items` (
    `tile_id` INT UNSIGNED NOT NULL,
    `sid` INT NOT NULL,
    `pid` INT NOT NULL DEFAULT 0,
    `itemtype` INT NOT NULL,
    `count` INT NOT NULL DEFAULT 0,
    `attributes` BLOB NOT NULL,
    FOREIGN KEY (`tile_id`) REFERENCES `tiles` (`id`) ON DELETE CASCADE,
    INDEX (`sid`)
) ENGINE = InnoDB;

CREATE TABLE `map_store` (
    `house_id` INT UNSIGNED NOT NULL,
    `data` BLOB NOT NULL,
    UNIQUE(`house_id`)
) ENGINE = InnoDB;

CREATE TABLE `player_depotitems` (
    `player_id` INT UNSIGNED NOT NULL,
    `depot_id` INT NOT NULL DEFAULT 0,
    `sid` INT NOT NULL COMMENT 'any given range eg 0-100 will be reserved for depot lockers and all > 100 will be then normal items inside depots',
    `pid` INT NOT NULL DEFAULT 0,
    `itemtype` INT NOT NULL,
    `count` INT NOT NULL DEFAULT 0,
    `attributes` BLOB NOT NULL,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE,
    INDEX (`player_id`, `depot_id`),
    UNIQUE (`player_id`, `sid`)
) ENGINE = InnoDB;

CREATE TABLE `player_deaths` (
	`player_id` INT UNSIGNED NOT NULL,
	`time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
	`level` INT UNSIGNED NOT NULL DEFAULT 1,
	`lasthit_killer` VARCHAR(255) NOT NULL,
	`mostdamage_killer` VARCHAR(255) NOT NULL,
	KEY (`player_id`),
	FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `global_storage` (
    `key` INT UNSIGNED NOT NULL,
    `value` INT NOT NULL,
    PRIMARY KEY(`key`)
) ENGINE = InnoDB;

DELIMITER |

CREATE TRIGGER `ondelete_accounts`
BEFORE DELETE
ON `accounts`
FOR EACH ROW
BEGIN
    DELETE FROM `bans` WHERE `type` = 3 AND `value` = OLD.`id`;
END|

CREATE TRIGGER `ondelete_guilds`
BEFORE DELETE
ON `guilds`
FOR EACH ROW
BEGIN
    UPDATE `players` SET `guildnick` = '', `rank_id` = 0 WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = OLD.`id`);
    DELETE FROM `guild_ranks` WHERE `guild_id` = OLD.`id`;
END|

CREATE TRIGGER `ondelete_players`
BEFORE DELETE
ON `players`
FOR EACH ROW
BEGIN
    DELETE FROM `bans` WHERE `type` = 2 AND `value` = OLD.`id`;
    UPDATE `houses` SET `owner` = 0 WHERE `owner` = OLD.`id`;
END|

CREATE TRIGGER `oncreate_guilds`
AFTER INSERT
ON `guilds`
FOR EACH ROW
BEGIN
    INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Leader', 3, NEW.`id`);
    INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Vice-Leader', 2, NEW.`id`);
    INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Member', 1, NEW.`id`);
END|

CREATE TRIGGER `oncreate_players`
AFTER INSERT
ON `players`
FOR EACH ROW
BEGIN
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 0, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 1, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 2, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 3, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 4, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 5, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 6, 10);
END|

DELIMITER ;
 
Amulet of loss dont work. does anyone know how I solve it?

- - - Updated - - -

misc/schema.mysql?

Code:
CREATE TABLE `groups` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL COMMENT 'group name',
    `flags` BIGINT UNSIGNED NOT NULL DEFAULT 0,
    `access` INT NOT NULL,
    `maxdepotitems` INT NOT NULL,
    `maxviplist` INT NOT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `accounts` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `password` VARCHAR(255) NOT NULL/* VARCHAR(32) NOT NULL COMMENT 'MD5'*//* VARCHAR(40) NOT NULL COMMENT 'SHA1'*/,
    `email` VARCHAR(255) NOT NULL DEFAULT '',
    `premend` INT UNSIGNED NOT NULL DEFAULT 0,
    `blocked` TINYINT(1) NOT NULL DEFAULT FALSE,
    `deleted` TINYINT(1) NOT NULL DEFAULT FALSE,
    `warned` TINYINT(1) NOT NULL DEFAULT FALSE,
    `warnings` INT NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `players` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL,
    `account_id` INT UNSIGNED NOT NULL,
    `group_id` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'users group',
    `sex` INT UNSIGNED NOT NULL DEFAULT 0,
    `vocation` INT UNSIGNED NOT NULL DEFAULT 0,
    `experience` BIGINT UNSIGNED NOT NULL DEFAULT 0,
    `level` INT UNSIGNED NOT NULL DEFAULT 1,
    `maglevel` INT UNSIGNED NOT NULL DEFAULT 0,
    `health` INT UNSIGNED NOT NULL DEFAULT 100,
    `healthmax` INT UNSIGNED NOT NULL DEFAULT 100,
    `mana` INT UNSIGNED NOT NULL DEFAULT 100,
    `manamax` INT UNSIGNED NOT NULL DEFAULT 100,
    `manaspent` INT UNSIGNED NOT NULL DEFAULT 0,
    `direction` INT UNSIGNED NOT NULL DEFAULT 0,
	`looktype` INT UNSIGNED NOT NULL DEFAULT 136,
	`lookhead` INT UNSIGNED NOT NULL DEFAULT 10,
    `lookbody` INT UNSIGNED NOT NULL DEFAULT 10,
	`looklegs` INT UNSIGNED NOT NULL DEFAULT 10,
    `lookfeet` INT UNSIGNED NOT NULL DEFAULT 10,
    `posx` INT NOT NULL DEFAULT 0,
    `posy` INT NOT NULL DEFAULT 0,
    `posz` INT NOT NULL DEFAULT 0,
    `cap` INT NOT NULL DEFAULT 0,
    `lastlogin` INT UNSIGNED NOT NULL DEFAULT 0,
    `lastlogout` INT UNSIGNED NOT NULL DEFAULT 0,
    `lastip` INT UNSIGNED NOT NULL DEFAULT 0,
    `save` TINYINT(1) NOT NULL DEFAULT TRUE,
    `conditions` BLOB NOT NULL COMMENT 'drunk, poisoned etc (maybe also food and redskull)',
    `redskulltime` INT UNSIGNED NOT NULL DEFAULT 0,
    `redskull` TINYINT(1) NOT NULL DEFAULT FALSE,
    `guildnick` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'additional nick in guild - mostly for web interfaces i think',
    `loss_experience` INT NOT NULL DEFAULT 10,
    `loss_mana` INT NOT NULL DEFAULT 10,
    `loss_skills` INT NOT NULL DEFAULT 10,
    `loss_items` INT NOT NULL DEFAULT 10,
    `rank_id` INT UNSIGNED NOT NULL COMMENT 'by this field everything with guilds is done - player has a rank which belongs to certain guild',
    `town_id` INT NOT NULL COMMENT 'old masterpos, temple spawn point position',
    `balance` INT NOT NULL DEFAULT 0 COMMENT 'money balance of the player for houses paying',
    `status` TINYINT(1) NOT NULL DEFAULT FALSE,
    PRIMARY KEY (`id`),
    UNIQUE (`name`),
    FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
    FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`)
) ENGINE = InnoDB;

CREATE TABLE `guilds` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL COMMENT 'guild name - nothing else needed here',
    `ownerid` INT NOT NULL,
    `creationdata` INT NOT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `guild_ranks` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `guild_id` INT UNSIGNED NOT NULL COMMENT 'guild',
    `name` VARCHAR(255) NOT NULL COMMENT 'rank name',
    `level` INT NOT NULL COMMENT 'rank level - leader, vice, member, maybe something else',
    PRIMARY KEY (`id`),
    FOREIGN KEY (`guild_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_viplist` (
    `player_id` INT UNSIGNED NOT NULL COMMENT 'id of player whose viplist entry it is',
    `vip_id` INT UNSIGNED NOT NULL COMMENT 'id of target player of viplist entry',
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE,
    FOREIGN KEY (`vip_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_spells` (
    `player_id` INT UNSIGNED NOT NULL,
    `name` VARCHAR(255) NOT NULL,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `server_record` (
	`record` INT UNSIGNED NOT NULL,
    PRIMARY KEY(`record`)
) ENGINE = InnoDB;

INSERT INTO `server_record` VALUES (0);

CREATE TABLE `player_storage` (
    `player_id` INT UNSIGNED NOT NULL,
    `key` INT NOT NULL,
    `value` INT NOT NULL,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_skills` (
    `player_id` INT UNSIGNED NOT NULL,
    `skillid` INT UNSIGNED NOT NULL,
    `value` INT UNSIGNED NOT NULL DEFAULT 0,
    `count` INT UNSIGNED NOT NULL DEFAULT 0,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `player_items` (
    `player_id` INT UNSIGNED NOT NULL,
    `sid` INT NOT NULL,
    `pid` INT NOT NULL DEFAULT 0,
    `itemtype` INT NOT NULL,
    `count` INT NOT NULL DEFAULT 0,
    `attributes` BLOB COMMENT 'replaces unique_id, action_id, text, special_desc',
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE,
    UNIQUE (`player_id`, `sid`)
) ENGINE = InnoDB;

CREATE TABLE `houses` (
    `id` INT UNSIGNED NOT NULL,
    `owner` INT NOT NULL,
    `paid` INT UNSIGNED NOT NULL DEFAULT 0,
    `warnings` INT NOT NULL DEFAULT 0,
    `lastwarning` INT UNSIGNED NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

CREATE TABLE `house_lists` (
    `house_id` INT UNSIGNED NOT NULL,
    `listid` INT NOT NULL,
    `list` TEXT NOT NULL,
    FOREIGN KEY (`house_id`) REFERENCES `houses` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `bans` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `type` INT NOT NULL COMMENT 'this field defines if its ip, account, player, or any else ban',
    `value` INT UNSIGNED NOT NULL COMMENT 'ip, player guid, account number',
    `param` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'mask',
    `active` TINYINT(1) NOT NULL DEFAULT TRUE,
    `expires` INT UNSIGNED NOT NULL,
    `added` INT UNSIGNED NOT NULL,
    `admin_id` INT UNSIGNED NOT NULL DEFAULT 0,
    `reason` VARCHAR(255) NOT NULL DEFAULT '',
    `comment` VARCHAR(255) NOT NULL DEFAULT '',
    PRIMARY KEY  (`id`),
    KEY (`type`, `value`),
    KEY (`expires`)
) ENGINE = InnoDB;

CREATE TABLE `tiles` (
    `id` INT UNSIGNED NOT NULL,
    `x` INT NOT NULL,
    `y` INT NOT NULL,
    `z` INT NOT NULL,
    PRIMARY KEY(`id`)
) ENGINE = InnoDB;

CREATE TABLE `tile_items` (
    `tile_id` INT UNSIGNED NOT NULL,
    `sid` INT NOT NULL,
    `pid` INT NOT NULL DEFAULT 0,
    `itemtype` INT NOT NULL,
    `count` INT NOT NULL DEFAULT 0,
    `attributes` BLOB NOT NULL,
    FOREIGN KEY (`tile_id`) REFERENCES `tiles` (`id`) ON DELETE CASCADE,
    INDEX (`sid`)
) ENGINE = InnoDB;

CREATE TABLE `map_store` (
    `house_id` INT UNSIGNED NOT NULL,
    `data` BLOB NOT NULL,
    UNIQUE(`house_id`)
) ENGINE = InnoDB;

CREATE TABLE `player_depotitems` (
    `player_id` INT UNSIGNED NOT NULL,
    `depot_id` INT NOT NULL DEFAULT 0,
    `sid` INT NOT NULL COMMENT 'any given range eg 0-100 will be reserved for depot lockers and all > 100 will be then normal items inside depots',
    `pid` INT NOT NULL DEFAULT 0,
    `itemtype` INT NOT NULL,
    `count` INT NOT NULL DEFAULT 0,
    `attributes` BLOB NOT NULL,
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE,
    INDEX (`player_id`, `depot_id`),
    UNIQUE (`player_id`, `sid`)
) ENGINE = InnoDB;

CREATE TABLE `player_deaths` (
	`player_id` INT UNSIGNED NOT NULL,
	`time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
	`level` INT UNSIGNED NOT NULL DEFAULT 1,
	`lasthit_killer` VARCHAR(255) NOT NULL,
	`mostdamage_killer` VARCHAR(255) NOT NULL,
	KEY (`player_id`),
	FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

CREATE TABLE `global_storage` (
    `key` INT UNSIGNED NOT NULL,
    `value` INT NOT NULL,
    PRIMARY KEY(`key`)
) ENGINE = InnoDB;

DELIMITER |

CREATE TRIGGER `ondelete_accounts`
BEFORE DELETE
ON `accounts`
FOR EACH ROW
BEGIN
    DELETE FROM `bans` WHERE `type` = 3 AND `value` = OLD.`id`;
END|

CREATE TRIGGER `ondelete_guilds`
BEFORE DELETE
ON `guilds`
FOR EACH ROW
BEGIN
    UPDATE `players` SET `guildnick` = '', `rank_id` = 0 WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = OLD.`id`);
    DELETE FROM `guild_ranks` WHERE `guild_id` = OLD.`id`;
END|

CREATE TRIGGER `ondelete_players`
BEFORE DELETE
ON `players`
FOR EACH ROW
BEGIN
    DELETE FROM `bans` WHERE `type` = 2 AND `value` = OLD.`id`;
    UPDATE `houses` SET `owner` = 0 WHERE `owner` = OLD.`id`;
END|

CREATE TRIGGER `oncreate_guilds`
AFTER INSERT
ON `guilds`
FOR EACH ROW
BEGIN
    INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Leader', 3, NEW.`id`);
    INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Vice-Leader', 2, NEW.`id`);
    INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Member', 1, NEW.`id`);
END|

CREATE TRIGGER `oncreate_players`
AFTER INSERT
ON `players`
FOR EACH ROW
BEGIN
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 0, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 1, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 2, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 3, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 4, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 5, 10);
    INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 6, 10);
END|

DELIMITER ;

thank you
 
in items.xml search for 2173 and add

XML:
<attribute key="charges" value="1"/>
 
How to make Amulet of Loss work:

In player.cpp, change that function:

Code:
void Player::dropLoot(Container* corpse)
{
	if(!corpse){
		return;
	}

	uint32_t itemLoss = lossPercent[LOSS_ITEMS];
#ifdef __SKULLSYSTEM__
	if(getSkull() == SKULL_RED){
		itemLoss = 100;
	}
#endif
	if(!lootDrop){
		itemLoss = 0;
	}

	if(itemLoss > 0){
		for(int i = SLOT_FIRST; i < SLOT_LAST; ++i){
			Item* item = inventory[i];
			if(item && ((item->getContainer()) || ((uint32_t)random_range(1, 100)) <= itemLoss)){
				g_game.internalMoveItem(this, corpse, INDEX_WHEREEVER, item, item->getItemCount(), 0);
			}
		}
	}
}

For that:
Code:
void Player::dropLoot(Container* corpse)
{
	if(!corpse){             
		return;
	}	

	uint32_t itemLoss = lossPercent[LOSS_ITEMS];
#ifdef __SKULLSYSTEM__
	if(getSkull() == SKULL_RED){
		itemLoss = 100;
	}
#endif
	if(!lootDrop){
		itemLoss = 0;
	}

	if(itemLoss > 0){
		for(int i = SLOT_FIRST; i < SLOT_LAST; ++i){
			Item* item = inventory[i];
			if(item && ((item->getContainer()) || ((uint32_t)random_range(1, 100)) <= itemLoss)){
				g_game.internalMoveItem(this, corpse, INDEX_WHEREEVER, item, item->getItemCount(), 0);
			}
		}
	}
	else if (itemLoss == 0) {
		for(int i = SLOT_FIRST; i < SLOT_LAST; ++i){
			Item* item = inventory[i];
			if (item && Item::items[item->getID()].abilities.preventLoss != 0) {
				g_game.internalRemoveItem(item);
			}
		}
	}
}

Enjoy it ;]
 
How to make Amulet of Loss work:

In player.cpp, change that function:

Code:
void Player::dropLoot(Container* corpse)
{
	if(!corpse){
		return;
	}

	uint32_t itemLoss = lossPercent[LOSS_ITEMS];
#ifdef __SKULLSYSTEM__
	if(getSkull() == SKULL_RED){
		itemLoss = 100;
	}
#endif
	if(!lootDrop){
		itemLoss = 0;
	}

	if(itemLoss > 0){
		for(int i = SLOT_FIRST; i < SLOT_LAST; ++i){
			Item* item = inventory[i];
			if(item && ((item->getContainer()) || ((uint32_t)random_range(1, 100)) <= itemLoss)){
				g_game.internalMoveItem(this, corpse, INDEX_WHEREEVER, item, item->getItemCount(), 0);
			}
		}
	}
}

For that:
Code:
void Player::dropLoot(Container* corpse)
{
	if(!corpse){             
		return;
	}	

	uint32_t itemLoss = lossPercent[LOSS_ITEMS];
#ifdef __SKULLSYSTEM__
	if(getSkull() == SKULL_RED){
		itemLoss = 100;
	}
#endif
	if(!lootDrop){
		itemLoss = 0;
	}

	if(itemLoss > 0){
		for(int i = SLOT_FIRST; i < SLOT_LAST; ++i){
			Item* item = inventory[i];
			if(item && ((item->getContainer()) || ((uint32_t)random_range(1, 100)) <= itemLoss)){
				g_game.internalMoveItem(this, corpse, INDEX_WHEREEVER, item, item->getItemCount(), 0);
			}
		}
	}
	else if (itemLoss == 0) {
		for(int i = SLOT_FIRST; i < SLOT_LAST; ++i){
			Item* item = inventory[i];
			if (item && Item::items[item->getID()].abilities.preventLoss != 0) {
				g_game.internalRemoveItem(item);
			}
		}
	}
}

Enjoy it ;]

Thank you again Nottinghster, but im not so good at C++. can you help me?
 
I don't know about you guys but after compiling I'm getting spell/npc errors using Windows:

Code:
LuaScriptInterface:popboolean<>. Error: Expected boolean type parameter.
 
Last edited:
Problem:
I can't open the Avesta.exe server engine file. I've searched all over the forums and i havent seen anyone with a simmular problem.

Error message:
View attachment 18354
"Could not access the specified device path or file. You may not have the appropriate permissions to access the item."



I would like to add that i can run later versions of server distrobutions as the TFS etc.

Ofcourse i've tryed to run it as admin and it still dosn't work.

I would really be glad if someone took the time to help me.

Thanks in advance.
/Jocche

- - - Updated - - -

I can only Open the Server Avesta.exe When running in Windows Safe mode.

When i don't run my computer in error safe mode i get this problem when i try to start the server:

"Could not access the specified device path or file. You may not have the appropriate permissions to access the item."

Reputaion will ofcourse be given if you assist me in this issue.

Thanks in advance.

Regards,

Jocche
 
What's so special about this server, says nothing in the thread. Just 7.4 Avesta. No other information specified lol
 
Or maybe you can try it with lua code ...

Creaturescripts > die.lua
LUA:
function onDie(cid, corpse)

local AOL_ID = 2173
	
	if getPlayerSkullType(cid) ~= SKULL_RED then
		if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE) == AOL_ID then
			doPlayerRemoveItem(cid, AOL_ID, 1)
		end
	end	

end

You have to declare it in creaturescripts.xml
PHP:
<event script="die.lua" name="Amulet_of_Loss" type="die"/>

Note: Didn't test it!
 
Or maybe you can try it with lua code ...

Creaturescripts > die.lua
LUA:
function onDie(cid, corpse)

local AOL_ID = 2173
    
    if getPlayerSkullType(cid) ~= SKULL_RED then
        if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE) == AOL_ID then
            doPlayerRemoveItem(cid, AOL_ID, 1)
        end
    end    

end

You have to declare it in creaturescripts.xml
PHP:
<event script="die.lua" name="Amulet_of_Loss" type="die"/>

Note: Didn't test it!

onDie not working from rev94 to latest revision.
 
onDie not working from rev94 to latest revision.

Didn't know that, never used that engine version!

- - - Updated - - -

Try to replace your actual function onDie in creatureevent.cpp for that (REV54):
http://code.google.com/p/avesta74/source/browse/trunk/src/creatureevent.cpp?spec=svn54&r=54

Code:
uint32_t CreatureEvent::executeOnDie(Creature* creature, Item* corpse)
{
        //onDie(cid, corpse)
        if(m_scriptInterface->reserveScriptEnv()){
                ScriptEnviroment* env = m_scriptInterface->getScriptEnv();

                #ifdef __DEBUG_LUASCRIPTS__
                std::stringstream desc;
                desc << creature->getName();
                env->setEventDesc(desc.str());
                #endif

                env->setScriptId(m_scriptId, m_scriptInterface);
                env->setRealPos(creature->getPosition());

                uint32_t cid = env->addThing(creature);
                uint32_t corpseid = env->addThing(corpse);

                lua_State* L = m_scriptInterface->getLuaState();

                m_scriptInterface->pushFunction(m_scriptId);
                lua_pushnumber(L, cid);
                lua_pushnumber(L, corpseid);

                int32_t result = m_scriptInterface->callFunction(2);
                m_scriptInterface->releaseScriptEnv();

                return (result != LUA_FALSE);
        }
        else{
                std::cout << "[Error] Call stack overflow. CreatureEvent::executeOnDie" << std::endl;
                return 0;
        }
}

- - - Updated - - -

If it won't work, here's my personal creatureevent.cpp and creatureevent.h, test it!

Download link --> http://dl.dropbox.com/u/99819086/OTServ/CreatureScripts%20-%20Sources.rar
 
Didn't know that, never used that engine version!

- - - Updated - - -

Try to replace your actual function onDie in creatureevent.cpp for that (REV54):
creatureevent.cpp - avesta74 - A modified Open Tibia Server for the old tibia 7.4 - Google Project Hosting

Code:
uint32_t CreatureEvent::executeOnDie(Creature* creature, Item* corpse)
{
        //onDie(cid, corpse)
        if(m_scriptInterface->reserveScriptEnv()){
                ScriptEnviroment* env = m_scriptInterface->getScriptEnv();

                #ifdef __DEBUG_LUASCRIPTS__
                std::stringstream desc;
                desc << creature->getName();
                env->setEventDesc(desc.str());
                #endif

                env->setScriptId(m_scriptId, m_scriptInterface);
                env->setRealPos(creature->getPosition());

                uint32_t cid = env->addThing(creature);
                uint32_t corpseid = env->addThing(corpse);

                lua_State* L = m_scriptInterface->getLuaState();

                m_scriptInterface->pushFunction(m_scriptId);
                lua_pushnumber(L, cid);
                lua_pushnumber(L, corpseid);

                int32_t result = m_scriptInterface->callFunction(2);
                m_scriptInterface->releaseScriptEnv();

                return (result != LUA_FALSE);
        }
        else{
                std::cout << "[Error] Call stack overflow. CreatureEvent::executeOnDie" << std::endl;
                return 0;
        }
}

- - - Updated - - -

If it won't work, here's my personal creatureevent.cpp and creatureevent.h, test it!

Download link --> http://dl.dropbox.com/u/99819086/OTServ/CreatureScripts - Sources.rar

Oh and by the way, on both codes you gave concerning amulet of loss not working, you forgot to set ITEM LOSS PERCENT to 0 :)
 
Back
Top