• 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!

Avesta NPCS !

Lording

Well-Known Member
Joined
Jan 9, 2008
Messages
802
Reaction score
80
Im trying to use jiddo's npc system but i get this error in console:
(Avesta 0.6.5)
Lua Script Error: [Npc Interface]
data/npc/scripts/Venore/Asrak.lua

data/npc/scripts/lib/npcsystem/npcsystem.lua:55: attempt to call global 'getNpcParameter' (a nil value)
Warning: [NpcScript:NpcScript] Can not load script. data/npc/scripts/Venore/Asrak.lua
Would be nice if you can help me!
 
Last edited:
you need to add it to the sources Ferrus(avesta 0.6.5) uses a old sucky npc system i prefer jiddo also but you need te refix the npc.h and the npc.cpp in the sources


kind regards
 
I have no idea how to do that actually..

@Lording
I recommend you to contact someone that knows C++ and can edit the sources for you, or you find a better Console, like TFS 0.4_SVN or 0.3.7
 
This is my build result:
------ Build started: Project: server, Configuration: Release Win32 ------
otpch.cpp
account.cpp
actions.cpp
allocator.cpp
ban.cpp
baseevents.cpp
beds.cpp
chat.cpp
combat.cpp
commands.cpp
condition.cpp
configmanager.cpp
connection.cpp
container.cpp
creature.cpp
creatureevent.cpp
cylinder.cpp
database.cpp
databasemysql.cpp
databasesqlite.cpp
depot.cpp
Compiling...
exception.cpp
fileloader.cpp
game.cpp
globalevent.cpp
house.cpp
housetile.cpp
ioaccount.cpp
iomapotbm.cpp
iomapserialize.cpp
iomapxml.cpp
ioplayer.cpp
item.cpp
items.cpp
logger.cpp
luascript.cpp
mailbox.cpp
map.cpp
md5.cpp
monster.cpp
monsters.cpp
Compiling...
movement.cpp
networkmessage.cpp
npc.cpp
npc.cpp(23): warning C4627: '#include "npc.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(1394): warning C4018: '>=' : signed/unsigned mismatch
npc.cpp(1453): warning C4018: '>=' : signed/unsigned mismatch
npc.cpp(1573): warning C4800: 'Npc *const ' : forcing value to bool 'true' or 'false' (performance warning)
npc.cpp(1906): warning C4018: '>' : signed/unsigned mismatch
npc.cpp(1914): warning C4018: '>=' : signed/unsigned mismatch
npc.cpp(1923): warning C4018: '>=' : signed/unsigned mismatch
npc.cpp(2716): warning C4800: 'Npc *' : forcing value to bool 'true' or 'false' (performance warning)
otserv.cpp
outfit.cpp
outputmessage.cpp
party.cpp
player.cpp
position.cpp
protocol.cpp
protocolgame.cpp
protocollogin.cpp
raids.cpp
rsa.cpp
scheduler.cpp
scriptmanager.cpp
server.cpp
sha1.cpp
spawn.cpp
spells.cpp
Compiling...
status.cpp
talkaction.cpp
tasks.cpp
teleport.cpp
thing.cpp
tile.cpp
tools.cpp
trashholder.cpp
vocation.cpp
waitlist.cpp
weapons.cpp
Generating code
Finished generating code
server.vcxproj -> C:\Documents and Settings\Usuario\Escritorio\project\server\Release\server.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Anyone know whats wrong ^^?

Or maybe this one without modify nothing at npc.cpp :
------ Build started: Project: server, Configuration: Release Win32 ------
otpch.cpp
account.cpp
actions.cpp
allocator.cpp
ban.cpp
baseevents.cpp
beds.cpp
chat.cpp
combat.cpp
commands.cpp
condition.cpp
configmanager.cpp
connection.cpp
container.cpp
creature.cpp
creatureevent.cpp
cylinder.cpp
database.cpp
databasemysql.cpp
databasesqlite.cpp
depot.cpp
Compiling...
exception.cpp
fileloader.cpp
game.cpp
globalevent.cpp
house.cpp
housetile.cpp
ioaccount.cpp
iomapotbm.cpp
iomapserialize.cpp
iomapxml.cpp
ioplayer.cpp
item.cpp
items.cpp
logger.cpp
luascript.cpp
mailbox.cpp
map.cpp
md5.cpp
monster.cpp
monsters.cpp
Compiling...
movement.cpp
networkmessage.cpp
npc.cpp
npc.cpp(23): warning C4627: '#include "npc.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(24): warning C4627: '#include "game.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(25): warning C4627: '#include "tools.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(26): warning C4627: '#include "configmanager.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(28): warning C4627: '#include "spells.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(29): warning C4627: '#include "player.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(35): warning C4627: '#include <fstream>': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(40): warning C4627: '#include "luascript.h"': skipped when looking for precompiled header use
Add directive to 'otpch.h' or rebuild precompiled header
npc.cpp(2898): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "otpch.h"' to your source?
otserv.cpp
outfit.cpp
outputmessage.cpp
party.cpp
player.cpp
position.cpp
protocol.cpp
protocolgame.cpp
protocollogin.cpp
raids.cpp
rsa.cpp
scheduler.cpp
scriptmanager.cpp
server.cpp
sha1.cpp
spawn.cpp
spells.cpp
Compiling...
status.cpp
talkaction.cpp
tasks.cpp
teleport.cpp
thing.cpp
tile.cpp
tools.cpp
trashholder.cpp
vocation.cpp
waitlist.cpp
weapons.cpp
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
at the first build i changed the npc.cpp i just added a line:
#include otpch.h
and thats all
 
Last edited:
Back
Top