Ok yea this dont work i get error, and it Closes
Ok yea this dont work i get error, and it Closes
why did u say that this is for mangos ???????
someone has a nice tut how to make a npc work? Should be nice :P
this works great
Hey alex
I'm getting these errors when i am attempting to compile the DLL.
I'm a noob in C++ so could someone give me a hint what i am doing wrong?Code:WarpNPC.cpp .WarpNPC.cpp(30) : warning C4101: 'Menu' : unreferenced local variable .WarpNPC.cpp(46) : error C2065: 'Warpnpc' : undeclared identifier .WarpNPC.cpp(46) : error C2059: syntax error : ')' Setup.cpp .Setup.cpp(5) : error C2491: '_exp_get_version' : definition of dllimport function not allowed .Setup.cpp(10) : error C2491: '_exp_script_register' : definition of dllimport function not allowed .Setup.cpp(11) : error C3861: 'SetupWarpnpc': identifier not found
Thanks![]()
Last edited by Boogman; 02-16-2008 at 04:08 AM.
'omg yay' ^^ This will really help
Ok so i have managed to compile the source
Don't ask me how :P
So i drop the DLL into the script bin and during startup of ascent-world i get the error "warpnpc.dll : 0x0DA50000 : Version functions not found!"
WTF does that mean??? ROFL
Oh and some of the errors in my previous post where actually a fault of the script generator.
The header it creates defines "WarpNPC"
The 2 source codes reference back as "Warpnpc".
In my adventures of C++ i found that it is case sensitive so a quick fix got it woking!
I'm so chuffed hahhahahhaha
Last edited by Boogman; 02-18-2008 at 11:28 AM.
Ok i can confirm this generator does work.
The source it creates does have a couple of errors in it and missing some info for the DLL to load in ascent.
Heres the info that needs to be added to the top of the setup.cpp file
Code:extern "C" SCRIPT_DECL uint32 _exp_get_script_type() { return SCRIPT_TYPE_MISC; }
When compiling the source and you are getting errors about "WarpNPC not defined/declared or something it just means you need to modify the warpnpc.cpp and setup.cpp files so that this matches on all (Is case sensitive)
Make sure that the setup.cpp and warpnpc.cpp both match EXACTLY to this SetupWarpNPC and it should compile.Code:void SetupWarpNPC(ScriptMgr * mgr);
If you have named your source something different it may now be the same as this though.
Just use whatever is in the setup.h fine like above.
Hope this helps someone who is having trouble compiling the source!
stolen from d3scene
how do u compile this? sorry im kinda a nub to the scripting and compiling stuff?
#JODYS'WATCHiN
Yeh me to,Maybe usefull to put a guide in ur post , Cause I really want to use this![]()
thanks this looks usefull
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C2146: syntax error : missing ';' before identifier 'Custom'
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C2182: 'SetupCrusaderWoW' : illegal use of type 'void'
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C2146: syntax error : missing ';' before identifier 'Area'
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C2146: syntax error : missing ';' before identifier 'porter'
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C2065: 'ScriptMgr' : undeclared identifier
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C2065: 'mgr' : undeclared identifier
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\scotland user\desktop\c++\output\setup.h(4) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Setup.cpp
c:\documents and settings\scotland user\desktop\c++\output\setup.cpp(1) : fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Documents and Settings\Scotland User\My Documents\Visual Studio 2008\Projects\Crusaderwarper\Crusaderwarper\Debug\BuildLog.htm"
Crusaderwarper - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I got these Errors will someone help please