[GUIDE] Teleporter NPC for MaNGOS (using C++) menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    grayfm's Avatar Active Member
    Reputation
    30
    Join Date
    May 2008
    Posts
    76
    Thanks G/R
    6/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [GUIDE] Teleporter NPC for MaNGOS (using C++)

    1. Ok first you compile the latest revision of mangos by following this guide. up until
    Now go into your src/bindings/scriptdev2 and compile same way as this (except without the tools>options part)
    and folllow these directions instead.

    2. Go to "your source folder->ScriptDev2->scripts->custom" and place this file inside.

    3. Now got to "your source folder->Scriptdev2" and open up "Makefile.am" with wordpad or notepad. Now scroll down until you see "scripts/custom/test.cpp". and add this line "scripts/custom/teleguy.cpp " without the quotes on a new line underneath. So it looks like:
    Code:
    scripts/custom/custom_gossip_codebox.cpp 
    scripts/custom/test.cpp 
    scripts/custom/teleguy.cpp 
    scripts/go/go_scripts.cpp
    Now save the file.

    4. Now open ScriptMgr.cpp in your ScriptDev2 Folder with Visual Studio or w/e program you use.
    Scroll down until you see:


    Code:
    // -- Custom --
    extern void AddSC_custom_example();
    extern void AddSC_test();
    Then add "extern void AddSC_teleguy();" without the quotes on a new line so it looks like this:

    Code:
    // -- Custom --
    extern void AddSC_custom_example();
    extern void AddSC_test();
    extern void AddSC_teleguy();
    Now scroll down until you see:

    Code:
    // -- Custom --
    AddSC_custom_example();
    AddSC_test();
    And add this line "AddSC_teleguy();" without the quotes. So you have:

    Code:
    // -- Custom --
    AddSC_custom_example();
    AddSC_test();
    AddSC_teleguy();
    Now save the file and exit.

    6. Now we need to link up the build files:
    Open scriptVC80.sln or scriptVC71.sln depending on your version of VS. In the browser on the left expand ScriptDev2, then Scripts, then custom. It should look like this:




    Drag the teleguy.cpp from your ScriptDev2/scripts/custom folder and drop it into the custom folder in VC Studio (the folder in above pic).
    7. Now in Configuration Manager change the build from Debug to Release. Then Build Solution.

    Now In navicat run this query:

    Code:
    INSERT INTO creature_template
       (`entry`, `modelid_A`, `modelid_A2`, `modelid_H`, `modelid_H2`, `name`, `subname`, `IconName`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction_A`, `faction_H`, `npcflag`, `speed`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `baseattacktime`, `rangeattacktime`, `flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `class`, `race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `flag1`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `RacialLeader`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `ScriptName`)
    VALUES
       (99001, 18, 0, 18, 0, 'Teleporter, 'The Teleport Guy', NULL, 255, 255, 15000, 15000, 7500, 7500, 1, 35, 35, 1, 1.1, 1, 0, 100, 110, 0, 800, 2500, 2500, 0, 0, 0, 0, 0, 0, 0, 200, 250, 800, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 0, 1, 0, 0, 'teleguy');
    Now to spawn the teleporter type: ".npc add 99001"

    Props to Le Froid for the windows guide referenced in this guide.
    Last edited by grayfm; 08-15-2008 at 04:19 AM.

    [GUIDE] Teleporter NPC for MaNGOS (using C++)
  2. #2
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    309
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow nice +Rep
    but the title isnt the best... need something like this: [GUIDE] Teleporter NPC for MaNGOS (using C++)
    Last edited by visitor; 08-15-2008 at 04:09 AM.
    Hey I just met you

  3. #3
    Android123's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I downloded with svn the files u said but in the 'binding folder' the folder 'scriptsdev2' doesn't exist can u check it out and tell me?

  4. #4
    Android123's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind i found it

  5. #5
    Yamajee's Avatar Banned
    Reputation
    10
    Join Date
    Feb 2007
    Posts
    150
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gray, help me out, I compile the Teleporter but it fails without giving me an error, any idea why?

  6. #6
    grayfm's Avatar Active Member
    Reputation
    30
    Join Date
    May 2008
    Posts
    76
    Thanks G/R
    6/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my msn is [email protected] ill help you out if i can just message me.

  7. #7
    Yamajee's Avatar Banned
    Reputation
    10
    Join Date
    Feb 2007
    Posts
    150
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I added you and waiting for your shout .

  8. #8
    Nicknero's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everything went fine untill step 7, i use Quice exept of Navicat, cuz Navicat had problems while downloading or somthing, and the script of step 7 doesnt work on Quice so i made my own World Teleporter, but added teleguy script... but when i talk to the guy he just says Hello (name) how can i help you? nothing more...
    help?

  9. #9
    Healboty's Avatar Member
    Reputation
    3
    Join Date
    Sep 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you do a guide for this for arcemu too pls?

  10. #10
    stevamirkovic's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re

    Good work...

  11. #11
    flintman's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im getting this error


    1>..\scripts\custom\teleguy.cpp(1) : warning C4627: '#include "sc_gossip.h"': skipped when looking for precompiled header use
    1> Add directive to 'precompiled.h' or rebuild precompiled header
    1>..\scripts\custom\teleguy.cpp(799) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "precompiled.h"' to your source?
    1>mob_anubisath_sentinel.cpp

  12. #12
    mrlocus's Avatar Member
    Reputation
    1
    Join Date
    Aug 2007
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    getting the same error

  13. #13
    rayman121985's Avatar Member
    Reputation
    1
    Join Date
    Feb 2007
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx

    ::rayman::

  14. #14
    4ndr34s's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have an error when compile: common.h not found ...

  15. #15
    4ndr34s's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have this error when i compile the swcriptdev2 :


    Extracting Revision
    Compiling...
    precompiled.cpp
    c:\SVN\MaNGOS\src\bindings\ScriptDev2\include\sc_creature.h(62) : error C2664: 'CreatureAI::CreatureAI(const CreatureAI &)' : cannot convert parameter 1 from 'Creature *' to 'const CreatureAI &'
    Reason: cannot convert from 'Creature *' to 'const CreatureAI'
    No constructor could take the source type, or constructor overload resolution was ambiguous


    please someone help me.

Page 1 of 3 123 LastLast

Similar Threads

  1. [Template/Guide] Easy Teleporter NPC for all your servers needs!!
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 08-06-2009, 08:14 AM
  2. I need teleporter npc for mangos 3.0.3
    By Wessly in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 11-22-2008, 03:18 AM
  3. [help] ascent teleport npc for horde
    By dubi123 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-18-2008, 02:34 PM
  4. [Guide] Teleporter NPC
    By Aldaus in forum WoW EMU Guides & Tutorials
    Replies: 19
    Last Post: 12-25-2007, 02:10 AM
  5. [Release]City Teleport NPC for Antrix
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-18-2007, 08:38 AM
All times are GMT -5. The time now is 08:11 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search