MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned
Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides
Reload this Page [Guide] Make a Portal in C++
Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
[Guide] Make a Portal in C++
(#1)
Old
mager1794's Avatar
mager1794 is Offline
Contributor
Rep Power: 1
Reputation: 110
mager1794 will become famous soon enoughmager1794 will become famous soon enough
 
Posts: 301
Join Date: Feb 2008
[Guide] Make a Portal in C++ - 07-04-2008

How to make a Portal In C++
by Mager1794
Table of Contents
1. SQL File
2. Finding the Scripts Folder
3. Finding the Coordinates
4. Editing Portals.cpp
5. Compile it

1. SQL File
Open up your Navicat/HeidiSQL/SQLYog
which ever one you use and enter this into the Query Box

Code:
INSERT INTO gameobject_names (entry, Type, DisplayID, Name, spellfocus, sound1, sound2, sound3, sound4, sound5, sound6, sound7, sound8, sound9, unknown1, unknown2, unknown3, unknown4, unknown5, unknown6, unknown7, unknown8, unknown9, unknown10, unknown11, unknown12, unknown13, unknown14) VALUES (ENTRY, 4, DISPLAYID, "NAME", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
Make Sure you Edit your ENtry DisplayID and Name to your specific likings
remember keep track of that entry ID cause we need it

2. Finding the Portals Folder
Navigate to here
C:\Documents and Settings\Guest\Desktop\Ascent\Trunk\src\scripts\src\ExtraScripts
if using arc emu if not your Portals script is probably somewhere closely similar
to it atleast Please Note that where you see Ascent if you didn't name the folder
for your ascent source Ascent you must edit that as well if its not on your desktop
but if yours is like that then simply do Start->Run
and enter
C:\Documents and Settings\Guest\Desktop\Ascent\Trunk\src\scripts\src\ExtraScripts\

3. Find the Coordinates

in order to find the coords go into your server logon and type .gps
it will tell you mapid zoneid x y z o
write it all down for it is needed for the person to port
4. Editing Portals.cpp
Ok in your ExtraScripts folder you should find Portals.cpp open it up
go to the very end where you see
Code:
class tele_Ironforge_to_Stormwind: public GameObjectAIScript // Auberdine to Teldrassil { public: tele_Ironforge_to_Stormwind(GameObject* goinstance) : GameObjectAIScript(goinstance) {} void OnActivate(Player * pPlayer) { pPlayer->SafeTeleport(369, 0, 15.849360, 8.222371, -4.296173, 1); } static GameObjectAIScript *Create(GameObject * GO) { return new tele_Ironforge_to_Stormwind(GO); } }; GameObjectAIScript * create_go20000017(GameObject * GO) { return new tele_Ironforge_to_Stormwind(GO); } Click Enter Once here <-- void SetupPortals(ScriptMgr * mgr) { mgr->register_gameobject_script(20000000, &tele_Orgrimarr_to_Undercity::Create); mgr->register_gameobject_script(20000001, &tele_Undercity_to_Orgrimarr::Create); mgr->register_gameobject_script(20000002, &tele_Orgrimarr_to_Gromgol::Create); mgr->register_gameobject_script(20000003, &tele_Gromgol_to_Orgrimarr::Create); mgr->register_gameobject_script(20000004, &tele_Undercity_to_Gromgol::Create); mgr->register_gameobject_script(20000005, &tele_Gromgol_to_Undercity::Create); mgr->register_gameobject_script(20000006, &tele_Ratchet_to_BootyBay::Create); mgr->register_gameobject_script(20000007, &tele_BootyBay_to_Ratchet::Create); mgr->register_gameobject_script(20000008, &tele_Auberdine_to_Menathil::Create); mgr->register_gameobject_script(20000009, &tele_Menathil_to_Auberdine::Create); mgr->register_gameobject_script(20000010, &tele_Menathil_to_Theramore::Create); mgr->register_gameobject_script(20000011, &tele_Theramore_to_Menathil::Create); mgr->register_gameobject_script(20000012, &tele_Auberdine_to_Azuremyst::Create); mgr->register_gameobject_script(20000013, &tele_Azuremyst_to_Auberdine::Create); mgr->register_gameobject_script(20000014, &tele_Teldrassil_to_Auberdine::Create); mgr->register_gameobject_script(20000015, &tele_Auberdine_to_Teldrassil::Create); mgr->register_gameobject_script(20000017, &tele_Stormwind_to_Ironforge::Create); mgr->register_gameobject_script(20000016, &tele_Ironforge_to_Stormwind::Create); }
in that spot type this (Replace whats in Blue)
Code:
class tele_Start_to_Finish: public GameObjectAIScript // Auberdine to Teldrassil { public: tele_Start_to_Finish(GameObject* goinstance) : GameObjectAIScript(goinstance) {} void OnActivate(Player * pPlayer) { pPlayer->SafeTeleport(MapID, ZoneID, x, y, z, o); } static GameObjectAIScript *Create(GameObject * GO) { return new tele_Start_to_Finish(GO); } }; GameObjectAIScript * create_goEntry(GameObject * GO) { return new tele_Start_to_Finish(GO); }
now we have to register it
paste this at the very bottem (above the "}" though)
Code:
 mgr->register_gameobject_script(Entry, &tele_Start_to_Finish::Create);
5. Compile it

Now go to
C:\Documents and Settings\Guest\Desktop\Ascent\Trunk\src\scripts
Look for Scripts2008.sln if you have Visual C++ Express Edition 2008
scripts2005.sln if you have 2005
scripts2004.sln if you have 2003
open it and at the top find teh tab Build it will dropdown some options and click
Build Solution it should end Errorless
Now just logon and do
.go spawn EntryID
There ya go XD



Last edited by mager1794; 07-04-2008 at 07:44 PM.
Reply With Quote

Donate to remove ads.
(#2)
Old
Kiyoshi's Avatar
Kiyoshi is Offline
Knight
Rep Power: 1
Reputation: 28
Kiyoshi is on a distinguished road
 
Posts: 191
Join Date: Jun 2008
Location: Black Temple
07-04-2008

Lol this is overcomplicated. Just gimme a LUA one plox
Reply With Quote
(#3)
Old
backlash52 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 2
backlash52 is an unknown quantity at this point
 
Posts: 40
Join Date: May 2008
07-06-2008

omg, this is EASY compared to some stuff ive been doing, thanks so much for the great guide.
Reply With Quote
(#4)
Old
r3anims's Avatar
r3anims is Offline
Site Donator
Rep Power: 2
Reputation: 17
r3anims is on a distinguished road
 
Posts: 67
Join Date: Mar 2007
Location: Portland, Oregon
07-06-2008

Nice guide Mager, but its much easier to make it with a Portal Creator after the server is finished.

Im in need of some compiling help, Il hit you up on MSN


Reply With Quote
Reply


Donate to remove ads.

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




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


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