Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides > Mangos Guides

Mangos Guides This section is for WoW emulated server, Mangos guides.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
  #1  
Old 08-15-2008
grayfm's Avatar
grayfm is offline.
Master Sergeant
  
 
Join Date: May 2008
Location: Chicago
Posts: 74
Reputation: 28
Points: 808, Level: 1
Points: 808, Level: 1 Points: 808, Level: 1 Points: 808, Level: 1
Level up: 82%, 92 Points needed
Level up: 82% Level up: 82% Level up: 82%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
[GUIDE] Teleporter NPC for MaNGOS (using C++)

1. Ok first you compile the latest revision of mangos by following this guide[Only registered and activated users can see links. ] up until
Quote:
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 [Only registered and activated users can see links. ] 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:


Click the image to open in full size.

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 06:19 AM.
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #2  
Old 08-15-2008
visitor is offline.
Contributor
  
 
Join Date: Mar 2008
Location: Behind you
Posts: 197
Reputation: 85
wow nice
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 06:09 AM.
Reply With Quote
  #3  
Old 09-06-2008
Android123's Avatar
Android123 is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Aug 2008
Posts: 11
Reputation: 1
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?
Reply With Quote
  #4  
Old 09-06-2008
Android123's Avatar
Android123 is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Aug 2008
Posts: 11
Reputation: 1
Never mind i found it
Reply With Quote
  #5  
Old 09-12-2008
Yamajee's Avatar
Yamajee is offline.
Sergeant Major
  
 
Join Date: Feb 2007
Posts: 156
Reputation: 10
Gray, help me out, I compile the Teleporter but it fails without giving me an error, any idea why?
__________________

Owner of Apocalypse Pre-TBC WoW [Only registered and activated users can see links. ]
Reply With Quote
  #6  
Old 09-12-2008
grayfm's Avatar
grayfm is offline.
Master Sergeant
  
 
Join Date: May 2008
Location: Chicago
Posts: 74
Reputation: 28
Points: 808, Level: 1
Points: 808, Level: 1 Points: 808, Level: 1 Points: 808, Level: 1
Level up: 82%, 92 Points needed
Level up: 82% Level up: 82% Level up: 82%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
my msn is [Only registered and activated users can see links. ] ill help you out if i can just message me.
__________________
Reply With Quote
  #7  
Old 09-12-2008
Yamajee's Avatar
Yamajee is offline.
Sergeant Major
  
 
Join Date: Feb 2007
Posts: 156
Reputation: 10
I added you and waiting for your shout .
__________________

Owner of Apocalypse Pre-TBC WoW [Only registered and activated users can see links. ]
Reply With Quote
  #8  
Old 10-02-2008
Nicknero is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Sep 2008
Posts: 3
Reputation: 1
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?
Reply With Quote
  #9  
Old 10-02-2008
Healboty is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Sep 2008
Posts: 7
Reputation: 3
can you do a guide for this for arcemu too pls?
Reply With Quote
  #10  
Old 10-02-2008
stevamirkovic is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Aug 2008
Posts: 27
Reputation: 1
Points: 370, Level: 1
Points: 370, Level: 1 Points: 370, Level: 1 Points: 370, Level: 1
Level up: 93%, 30 Points needed
Level up: 93% Level up: 93% Level up: 93%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Re

Good work...
Reply With Quote
  #11  
Old 11-24-2008
flintman is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Aug 2008
Posts: 1
Reputation: 1
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
Reply With Quote
  #12  
Old 02-10-2009
mrlocus is offline.
New User
  
 
Join Date: Aug 2007
Posts: 2
Reputation: 1
Points: 406, Level: 1
Points: 406, Level: 1 Points: 406, Level: 1 Points: 406, Level: 1
Level up: 2%, 494 Points needed
Level up: 2% Level up: 2% Level up: 2%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
getting the same error
Reply With Quote
  #13  
Old 02-24-2009
rayman121985 is offline.
New User
  
 
Join Date: Feb 2007
Posts: 8
Reputation: 1
thx

::rayman::
Reply With Quote
  #14  
Old 04-17-2009
4ndr34s is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Mar 2009
Posts: 10
Reputation: 1
i have an error when compile: common.h not found ...
Reply With Quote
  #15  
Old 04-20-2009
4ndr34s is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Mar 2009
Posts: 10
Reputation: 1
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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -4. The time now is 12:17 AM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492