Jump to content
  • Announcements

    • Xmat

      Pravidlo pro postování v TTT

      Do sekce Tipy, triky, tutoriály nepatří žádné dotazy.   Postujte sem vaše návody, tipy a různé další věci jež uznáte za vhodné sdělit zdejšímu osazenstvu, ale veškeré dotazy směřujte do sekce Všeobecná diskuse.
    • Replik

      Seznam návodů a důležitých témat v této sekci

      Pro lepší přehlednost jsem vytvořil tento seznam, který vás, méně zkušené, lépe provede touto sekcí. Věřím, že zde najdete, co hledáte. Vypsané jsou návody, které jsou oficiálně uznané jako návody. Běžné diskuze, které neposkytují postupy a rady zvěřejněny nejsou.   Instalace vlastního MaNGOS Serveru Díky těmto návodům budete (měli by jste být) schopni vytvořit a následně spustit váš vlastní server. Nastavení je pro verze s i bez datadisku.   Instalace MaNGOS Serveru (bez datadisku TBC) - Autor Benny Instalace MaNGOS Serveru (s datadiskem TBC) - Autor Malfik Instalace MaNGOS Serveru v prostředí Linux - Autor charlie Instalace MaNGOS Serveru v prostředí Linux - Autor kupkoid   Chyby a jejich řešení při přihlašování k serveru - Autor Cybe   Zálohování uživatelských dat   Dávkový soubor (BAT soubor) pro vytvoření SQL záloh - Autor Replik   Kompilování - tvoření vlastních release (revizí)   Tvorba kompilací pro Win32 (MangoScript) - Autor bLuma   Ostatní - těžko zařaditelné, ale neznamená to, že nejsou dobré   VIP Systém - Autor charlie Tvorba Webových stránek pro MaNGOS - Autor zahuba Tvorba teleportačních NPC (MangoScript) - Autor Replik Registrační web (původně předělaná SPORA) Funkční pro Antrix i MaNGOS - Autor Replik Nastavení a spuštění Minimanager pro MaNGOS - Autor BlackMartin Nastavení MaNGOS Website - Autor Artorius   Samozřejmě jsou zde i jiné návody, ale tyto jsou nejvíce používané, proto věřím, že vám budou nápomocné. Tuto sekci budeme upravovat podle potřeby. Pokud by jste něco nenašli nebo si nevěděli rady, hledejte na fóru a teprve potom založte vlastní topik. Pokud nějaký autor vytvoří kvalitní návod a chtěl by ho zveřejnit i v tomto seznamu, doporučuji, aby mi napsal zprávu skrze PM.   Díky a přeji hezký den na WoWResource   Replik
    • Aristo

      Příspěvky tam, kde nemají co dělat

      Dodržujte zákaz přispívání do topiků s repaky pokud si to zakladatelé nepřejí!! Opakované psaní příspěvků bude trestáno warnem.
    • Aristo

      Používání spoilerů

      Poslední dobou má většina uživatelů fora zvláštní nutkání postovat extrémně dlouhé texty nebo kódy, které zabírají v nejedenom případu i 80% obsahu celé stránky a hodně tak zvedají nepřehlednost v topiku. Chtěl bych všechny uživatele požádat, aby při postování citací, jakýchkoliv kódů, errorů, atp... delších než 30 řádků používali funkci spoileru.   Funkci vyvoláte příkazem [spoiler] text [/spoiler]   Ukázka:  
Sign in to follow this  
Smrtokvitek

[C++] Apokalypsa Cataclysm - Reputation Giver

Recommended Posts

Pěkná práce, díky za share. Mínus ti může dát fakt jen hlupák ;)

  • Upvote 1

Share this post


Link to post
Share on other sites

Pěkná práce, díky za share. Mínus ti může dát fakt jen hlupák ;)

 

Ďakujem :) No to je fakt, ale je to jeho vec, keď sa mu to nepáči :whistling:

Share this post


Link to post
Share on other sites

Script dobrý, jen si nemyslím že je na Cataclysmu nějak prakticky využitelný, když zatím skoro nic nefunguje :D Takže za mě ani +, ani -...

Share this post


Link to post
Share on other sites

Script dobrý, jen si nemyslím že je na Cataclysmu nějak prakticky využitelný, když zatím skoro nic nefunguje :D Takže za mě ani +, ani -...

 

Nechcem robiť reklamu, ale ja to na svojom servery využívam :whistling: asi si málo informovaný ale na Cata už toho funguje dosť, a keď je v teame plno schopních developerov tak sa da opravovať dosť rýchlo :innocent:

Share this post


Link to post
Share on other sites

Script dobrý, jen si nemyslím že je na Cataclysmu nějak prakticky využitelný, když zatím skoro nic nefunguje :D Takže za mě ani +, ani -...

A to si slysel kde ze tam skoro nic nefunguje?je pravda ze DB je ve spatnem stavu a nejsou spawny Cata zon ale jinak uz se to celkem da ;)

Share this post


Link to post
Share on other sites

Cataclysm je teď dost výzva pro developery a také je to dost dobré lákadlo pro hráče. Sice tam toho moc nefunguje, ale alespoň z toho poznáš, že se ten server snaží, podle funkčnosti toho serveru. :)

  • Upvote 1

Share this post


Link to post
Share on other sites

Ako ma spawn id ?

 

Toto je len script NPC. Do DB si ho musiš vložiť sám, a ID si sprav ľubovoľné, stačí len do toho NPC potom vložiť tento script.

Share this post


Link to post
Share on other sites

Toto je len script NPC. Do DB si ho musiš vložiť sám, a ID si sprav ľubovoľné, stačí len do toho NPC potom vložiť tento script.

 

No ja som v tomto úplný začiatočník ale malo by to vyzerať nejako takto ?

 

UPDATE `creature_template` SET `ScriptName` = "npc_reputation" WHERE `entry` = 900009;

 

Môže to byť aj týmto toto my vypísalo pri komplimácii

 

 

Creating library C:/SkyFireEMU/Build/src/server/worldserver/Release/worldserver.lib and object C:/SkyFireEMU/Build/src/server/worldserver/Release/worldserver.exp

4>game.lib(ScriptLoader.obj) : error LNK2019: unresolved external symbol "void __cdecl AddSC_npc_reputation(void)" (?AddSC_npc_reputation@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ)

4>C:\SkyFireEMU\Build\bin\Release\worldserver.exe : fatal error LNK1120: 1 unresolved externals

5>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------

5> Build all projects

6>------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------

6>Project not selected to build for this solution configuration

========== Build: 2 succeeded, 3 failed, 14 up-to-date, 1 skipped ==========

 

 

Edited by frytiks

Share this post


Link to post
Share on other sites

Těžko ti někdo bude radit, když nepostneš celej error log.

Stiskni ve Visaulku F7 a zkopíruj sem do [spoiler][code]bla bla text..[/code][/spoiler] celej ten output kompilace.

Máš tam 3 projekty, ve kterých máš errory.

Share this post


Link to post
Share on other sites

tu maš celý outpot

 

 

 

1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
1>  Checking Build System
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/acelite/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/acelite/ace/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/mysqllite/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/bzip2/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/zlib/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/g3dlite/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/gsoap/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/dep/libmpq/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/src/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/src/genrev/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/src/server/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/src/server/shared/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/src/server/game/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/src/server/collision/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/SkyFireEMU/Build/src/server/authserver/CMakeFiles/generate.stamp is up-to-date.
1>  CMake is re-running because C:/SkyFireEMU/Build/src/server/scripts/CMakeFiles/generate.stamp is out-of-date.
1>    the file 'C:/SkyFireEMU/Core/src/server/scripts/Custom/CMakeLists.txt'
1>    is newer than 'C:/SkyFireEMU/Build/src/server/scripts/CMakeFiles/generate.stamp.depend'
1>    result='-1'
1>  -- Detected 32-bit platform
1>  -- Using supplied MySQL sources
1>  -- MSVC: Enabled large address awareness
1>  -- MSVC: Overloaded standard names
1>  -- MSVC: Disabled NON-SECURE warnings
1>  -- MSVC: Disabled POSIX warnings
1>  -- MSVC: Disabled generic compiletime warnings
1>  
1>  -- WARNING - Missing or outdated git - did you forget to install a recent version?
1>  -- WARNING - Observe that for revision hash/date to work you need at least version 1.7
1>  -- WARNING - Missing repository tags - you may need to pull tags with git fetch -t
1>  -- WARNING - Continuing anyway - note that the versionstring will be set to 0000-00-00 00:00:00 (Archived)
1>  
1>  * SkyFireEMU rev. hash  : Archived
1>  * SkyFireEMU rev. date  : 0000-00-00 00:00:00 +0000
1>  
1>  * Install core to        : C:/Program Files (x86)/SkyFire
1>  
1>  * Build world/auth       : Yes (default)
1>  * Build with scripts     : Yes (default)
1>  * Build map/vmap tools   : Yes
1>  * Build core w/PCH       : Yes (default)
1>  * Build scripts w/PCH    : Yes (default)
1>  * Use SFMT for RNG       : No  (default)
1>  * Show compile-warnings  : No  (default)
1>  * Use coreside debug     : No  (default)
1>  * Use MySQL sourcetree   : Yes (default)
1>  
1>  -- MySQL 5.5.15
1>  -- SCRIPT PREPARATIONS
1>    -> Prepared: Spells
1>    -> Prepared: Examples
1>    -> Prepared: Commands
1>CUSTOMBUILD : CMake error : Error in cmake code at
1>  C:/SkyFireEMU/Core/src/server/scripts/Custom/CMakeLists.txt:19:
1>  Parse error.  Expected "(", got identifier with text "AddSC_npc_reputation".
1>  CMake Error at src/server/scripts/CMakeLists.txt:43 (include):
1>    include could not find load file:
1>  
1>      Custom/CMakeLists.txt
1>  
1>  
1>    -> Prepared: World
1>    -> Prepared: Outdoor PVP Zones
1>    -> Prepared: Eastern Kingdoms
1>    -> Prepared: Kalimdor
1>    -> Prepared: Outland
1>  -- SCRIPT PREPARATION COMPLETE
1>    -> Prepared: Northrend
1>  
1>  -- Configuring incomplete, errors occurred!
1>  CMake Configure step failed.  Build files cannot be regenerated correctly.  Attempting to stop IDE build.
2>------ Build started: Project: revision.h, Configuration: Release Win32 ------
2>  -- WARNING - Missing or outdated git - did you forget to install a recent version?
2>  
2>  -- WARNING - Observe that for revision hash/date to work you need at least version 1.7
2>  -- WARNING - Missing repository tags - you may need to pull tags with git fetch -t
2>  -- WARNING - Continuing anyway - note that the versionstring will be set to 0000-00-00 00:00:00 (Archived)
3>------ Build started: Project: scripts, Configuration: Release Win32 ------
3>  Building Custom Rule C:/SkyFireEMU/Core/src/server/scripts/CMakeLists.txt
3>  CMake is re-running because C:\SkyFireEMU\Build\src\server\scripts\CMakeFiles\generate.stamp is out-of-date.
3>    the file 'C:/SkyFireEMU/Core/src/server/scripts/Custom/CMakeLists.txt'
3>    is newer than 'C:\SkyFireEMU\Build\src\server\scripts\CMakeFiles\generate.stamp.depend'
3>    result='-1'
3>  -- Detected 32-bit platform
3>  -- Using supplied MySQL sources
3>  -- MSVC: Enabled large address awareness
3>  -- MSVC: Overloaded standard names
3>  -- MSVC: Disabled NON-SECURE warnings
3>  -- MSVC: Disabled POSIX warnings
3>  -- MSVC: Disabled generic compiletime warnings
3>  
3>  -- WARNING - Missing or outdated git - did you forget to install a recent version?
3>  -- WARNING - Observe that for revision hash/date to work you need at least version 1.7
3>  -- WARNING - Missing repository tags - you may need to pull tags with git fetch -t
3>  -- WARNING - Continuing anyway - note that the versionstring will be set to 0000-00-00 00:00:00 (Archived)
3>  
3>  * SkyFireEMU rev. hash  : Archived
3>  * SkyFireEMU rev. date  : 0000-00-00 00:00:00 +0000
3>  
3>  * Install core to        : C:/Program Files (x86)/SkyFire
3>  
3>  * Build world/auth       : Yes (default)
3>  * Build with scripts     : Yes (default)
3>  * Build map/vmap tools   : Yes
3>  * Build core w/PCH       : Yes (default)
3>  * Build scripts w/PCH    : Yes (default)
3>  * Use SFMT for RNG       : No  (default)
3>  * Show compile-warnings  : No  (default)
3>  * Use coreside debug     : No  (default)
3>  * Use MySQL sourcetree   : Yes (default)
3>  
3>  -- MySQL 5.5.15
3>  -- SCRIPT PREPARATIONS
3>    -> Prepared: Spells
3>    -> Prepared: Examples
3>    -> Prepared: Commands
3>CUSTOMBUILD : CMake error : Error in cmake code at
3>  C:/SkyFireEMU/Core/src/server/scripts/Custom/CMakeLists.txt:19:
3>  Parse error.  Expected "(", got identifier with text "AddSC_npc_reputation".
3>  CMake Error at src/server/scripts/CMakeLists.txt:43 (include):
3>    include could not find load file:
3>  
3>      Custom/CMakeLists.txt
3>  
3>  
3>    -> Prepared: World
3>    -> Prepared: Outdoor PVP Zones
3>    -> Prepared: Eastern Kingdoms
3>    -> Prepared: Kalimdor
3>    -> Prepared: Outland
3>  -- SCRIPT PREPARATION COMPLETE
3>    -> Prepared: Northrend
3>  
3>  -- Configuring incomplete, errors occurred!
4>------ Build started: Project: worldserver, Configuration: Release Win32 ------
4>     Creating library C:/SkyFireEMU/Build/src/server/worldserver/Release/worldserver.lib and object C:/SkyFireEMU/Build/src/server/worldserver/Release/worldserver.exp
4>game.lib(ScriptLoader.obj) : error LNK2019: unresolved external symbol "void __cdecl AddSC_npc_reputation(void)" (?AddSC_npc_reputation@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ)
4>C:\SkyFireEMU\Build\bin\Release\worldserver.exe : fatal error LNK1120: 1 unresolved externals
5>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
5>  Build all projects
6>------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------
6>Project not selected to build for this solution configuration 
========== Build: 2 succeeded, 3 failed, 14 up-to-date, 1 skipped ==========

 

Share this post


Link to post
Share on other sites

:stupid:

Proboha, co jsi cpal do souboru CMakeLists.txt? Tys tam napsal "AddSC_npc_reputation"? Zbláznil ses? :tease:

To přeci patří do ScriptLoader.cpp! Do CMakeLists.txt se píšou jenom názvy souborů! :angry:

 

src/server/scripts/Custom/CMakeLists.txt

set(scripts_STAT_SRCS
 ${scripts_STAT_SRCS}
 Custom/muj_script1.cpp
 Custom/muj_script2.cpp
 Custom/muj_script3.cpp
)

message("  -> Prepared: Custom") 

 

Edited by Wolf Officious

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×