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 LUA: Understanding Gossip Menus
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
(#31)
Old
darkgabou15 is Offline
Corporal
Rep Power: 2
Reputation: 8
darkgabou15 is an unknown quantity at this point
 
Posts: 26
Join Date: Mar 2007
06-12-2008

Ok thank you anyway -.-
Reply With Quote

Donate to remove ads.
(#32)
Old
darkgabou15 is Offline
Corporal
Rep Power: 2
Reputation: 8
darkgabou15 is an unknown quantity at this point
 
Posts: 26
Join Date: Mar 2007
06-16-2008

I get some errors at compiling >.<
Code:
------ Build started: Project: LUAScripting, Configuration: Debug Win32 ------
Compiling...
LUAEngine.cpp
..\src\luascripting\LUAEngine.cpp(1033) : error C2065: 'QUEST_EVENT_GAMEOBJECT_ACTIVATE' : undeclared identifier
..\src\luascripting\LUAEngine.cpp(1034) : error C2065: 'QUEST_EVENT_GAMEOBJECT_ACTIVATE' : undeclared identifier
..\src\luascripting\LUAEngine.cpp(1034) : error C2065: 'QUEST_EVENT_GAMEOBJECT_ACTIVATE' : undeclared identifier
..\src\luascripting\LUAEngine.cpp(2617) : warning C4244: 'argument' : conversion from 'const uint64' to 'lua_Integer', possible loss of data
..\src\luascripting\LUAEngine.cpp(3035) : warning C4244: 'argument' : conversion from 'const uint64' to 'lua_Integer', possible loss of data
..\src\luascripting\LUAEngine.cpp(3273) : error C2660: 'Unit::create_guardian' : function does not take 4 arguments
..\src\luascripting\LUAEngine.cpp(3283) : error C2039: 'isInArc' : is not a member of 'Unit'
        c:\documents and settings\acer\bureau\ascent sources 2\wow-pwnage\src\ascent-world\Unit.h(650) : see declaration of 'Unit'
Build log was saved at "file://c:\Documents and Settings\Acer\Bureau\Ascent Sources 2\WoW-Pwnage\src\scripts\projects\2008_int_debug_LUAScripting\BuildLog.htm"
LUAScripting - 5 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Reply With Quote
(#33)
Old
merlinguy21 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: 1
merlinguy21 is an unknown quantity at this point
 
Posts: 16
Join Date: Nov 2007
06-19-2008

hdfjkhasdkljgha;fjkg
Reply With Quote
(#34)
Old
kajdzas's Avatar
kajdzas 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: 1
kajdzas is an unknown quantity at this point
 
Posts: 13
Join Date: Mar 2008
Location: Azeroth (Mulgore)
06-19-2008

it don't work for me sector, can you send me your repack??? pls: [Only registered and activated users can see links. ]
Reply With Quote
(#35)
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

Would something like this work? (I just copied it from your paste bin and spaced it out, I want to see if "Remove Resurrection Sickness" would work):

Code:
function On_Gossip (pUnit, event, player)
	pUnit:GossipCreateMenu(100, player)
		pUnit:GossipMenuAddItem(player, 0, "Horde Cities", 1, 0)
		pUnit:GossipMenuAddItem(player, 0, "Alliance Cities", 2, 0)
		pUnit:GossipMenuAddItem(player, 0, "Remove Resurrection Sickness, 3, 0)
	pUnit:GossipSendMenu(player)
end

function Gossip_Submenus (pUnit, event, player, id, intid, code)
	if(intid == 1) then
	pUnit:GossipGossipMenuAddItem(99, player)
	pUnit:GossipMenuAddItem(player, 5, "Orgrimmar", 10, 0)
	pUnit:GossipMenuAddItem(player, 5, "Undercity", 11, 0)
	pUnit:GossipMenuAddItem(player, 5, "Thunder Bluff", 12, 0)
	pUnit:GossipMenuAddItem(player, 5, "Silvermoon", 13, 0)
	pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
	pUnit:GossipSendMenu(player)
end
 end

if(intid == 2) then
	pUnit:GossipCreateMenu(99, player)
	pUnit:GossipMenuAddItem(player, 5, "Stormwind", 14, 0)
	pUnit:GossipMenuAddItem(player, 5, "Ironforge", 15, 0)
	pUnit:GossipMenuAddItem(player, 5, "Darnassus", 16, 0)
	pUnit:GossipMenuAddItem(player, 5, "Exodar", 17, 0)
	pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
	pUnit:MenuSendToPlayer(player)
end
 end

if(intid == 3) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
player:SendChatMessage(11, 0, "Ah FFS stop dying!")

if(intid == 10) then
player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
 end

if(intid == 11) then
player:Teleport(0, 2050.203125, 285.650604, 56.994549)
 end

if(intid == 12) then
player:Teleport(1, -1304.569946, 205.285004, 68.681396)
 end

if(intid == 13) then
player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
 end

if(intid == 14) then
player:Teleport(0, -9100.480469, 406.950745, 92.594185)
 end

if(intid == 15) then
player:Teleport(0, -5028.265137, -825.976563, 495.301575)
 end

if(intid == 16) then
player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
 end

if(intid == 17) then
player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
 end

RegisterGossipEvent(32000 , 1, "On_Gossip")(32000 , 2,"Gossip_Submenus")
Reply With Quote
(#36)
Old
SectorSeven's Avatar
SectorSeven is Offline
Banned
Rep Power: 0
Reputation: 444
SectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really nice
 
Posts: 1,966
Join Date: Oct 2007
07-06-2008

After your custom code, add an end statement.
Reply With Quote
(#37)
Old
**Sweeny**'s Avatar
**Sweeny** is Offline
Knight-Lieutenant
Rep Power: 1
Reputation: 33
**Sweeny** is on a distinguished road
 
Posts: 284
Join Date: Dec 2007
07-07-2008

Thanks for the guide, if I can O.o but should this be working?
Code:
function WarpNPC_On_Gossip (pUnit, event, player) 
pUnit:GossipCreateMenu(100, player) 
pUnit:GossipMenuAddItem(player, 0, "Horde Cities", 1, 0)
pUnit:GossipMenuAddItem(player, 0, "Alliance Cities", 2, 0)
pUnit:GossipMenuAddItem(player, 0, "Azeroth Instances", 3, 0)
pUnit:GossipMenuAddItem(player, 0, "Outland Locations", 4, 0)
pUnit:GossipMenuAddItem(player, 0, "Grubu Arena", 5, 0)
pUnit:GossipMenuAddItem(player, 0, "Buff mez up", 6, 0)
pUnit:GossipMenuAddItem(player, 0, "Remove Rez Sickness", 7, 0)
pUnit::GossipSendMenu(player)
end
function WarpNPC_Gossip_Submenus (pUnit, event, player, id, intid, code)
if(intid == 1) then
pUnit:GossipGossipMenuAddItem(99, player)
pUnit:GossipMenuAddItem(player, 5, "Orgrimmar", 10, 0)
pUnit:GossipMenuAddItem(player, 5, "Undercity", 11, 0)
pUnit:GossipMenuAddItem(player, 5, "Thunder Bluff", 12, 0)
pUnit:GossipMenuAddItem(player, 5, "Silvermoon", 13, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:GossipSendMenu(player)
end
-- Alliance locations
if(intid == 2) then
pUnit:GossipCreateMenu(99, player)
pUnit:GossipMenuAddItem(player, 5, "Stormwind", 14, 0)
pUnit:GossipMenuAddItem(player, 5, "Ironforge", 15, 0)
pUnit:GossipMenuAddItem(player, 5, "Darnassus", 16, 0)
pUnit:GossipMenuAddItem(player, 5, "Exodar", 17, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:MenuSendToPlayer(player)
end
-- Azeroth Instances
if(intid == 3) then
pUnit:GossipCreateMenu(99, player)
pUnit:GossipMenuAddItem(player, 5, "Shadowfang", 19, 0)
pUnit:GossipMenuAddItem(player, 5, "Zul'Gurub", 20, 0)
pUnit:GossipMenuAddItem(player, 5, "Scarlet Monestry", 21, 0)
pUnit:GossipMenuAddItem(player, 5, "Strat", 22, 0)
pUnit:GossipMenuAddItem(player, 5, "Scholo", 23, 0)
pUnit:GossipMenuAddItem(player, 5, "Blackrock", 24, 0)
pUnit:GossipMenuAddItem(player, 5, "Onyxia's Lair", 25, 0)
pUnit:GossipMenuAddItem(player, 5, "Molten Core", 26, 0)
pUnit:GossipMenuAddItem(player, 5, "Kara", 27, 0)
pUnit:GossipMenuAddItem(player, 5, "Naxx", 28, 0)
pUnit:GossipMenuAddItem(player, 5, "Caverns Of Time, 29, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:MenuSendToPlayer(player)
end
-- Outland Locations
if(intid == 4) then
pUnit:GossipCreateMenu(99, player)
pUnit:GossipMenuAddItem(player, 5, "Hellfire", 30, 0
pUnit:GossipMenuAddItem(player, 5, "Zangermarsh", 31, 0
pUnit:GossipMenuAddItem(player, 5, "Nagrand", 32, 0
pUnit:GossipMenuAddItem(player, 5, "Blades Edge", 33, 0
pUnit:GossipMenuAddItem(player, 5, "Netherstorm", 34, 0
pUnit:GossipMenuAddItem(player, 5, "terokkar Forest", 35, 0
pUnit:GossipMenuAddItem(player, 5, "Shadowmoon Valley", 36, 0
pUnit:GossipMenuAddItem(player, 5, "Shattrath", 37, 0
pUnit:MenuSendToPlayer(player)
end
-- Grubu Arena
if(intid == 5) then 
pUnit:GossipCreateMenu(99, player)
pUnit:GossipMenuAddItem(player, 5, "Grubu Arena", 38, 0)
pUnit:MenuSendToPlayer(player)
end
-- Buff me up!
if(intid == 6) then
player:LearnSpell(27062)
player:UnlearnSpell(27062)
SendChatMessage(3, 0, "You have been blessed.")
end
-- Remove rez sickness
if(intid == 7) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
SendChatMessage(3, 0, "Sickness is now gone.")
end
-- Orgrimar
if(intid == 10) then
player:Teleport(1, 1484, -4417, 25)
end
-- Undercity
if(intid == 11) then
player:Teleport(0, 1831, 238, 60)
end
-- Thunder Bluff
if(intid == 12) then
player:Teleport(1, -1277, 118, 131)
end
-- Silvermoon
if(intid == 13) then
player:Teleport(530, 9413, -7277, 14)
end
--Stormwind
if(intid == 14) then
player:Teleport(0, -8951, 524, 96)
end

-- Ironforge
if(intid == 15) then
player:Teleport(0, -4981, -881, 501)
end
-- Darnasus
if(intid == 16) then
player:Teleport(1, 9948, 2413, 1327)
end
-- The Exodar
if(intid == 17) then
player:Teleport(530, -3826, 11686, -107)
end

-- Shadowfang
if(intid == 19) then
player:Teleport(0, -234.495087, 1561.946411, 76.892143)
end
-- Zul'Gurub
if(intid == 20)
player;Teleport(0, -11919.073242, -1202.459374, 92.298744)
end
-- Scarlet Monestry
if(intid == 21) then
player:Teleport(0, 2870.442627, -819.985229, 160.331085)
end
-- Strat
if(intid == 22) then
player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
end
-- Scholo
if(intid == 23) then
player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
end
-- Blackrock
if(intid == 24) then
player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
end
-- Onyxia's Lair
if(intid == 25) then
player:Teleport(1, -4708.491699, -3727.672363, 54.535076)
end
-- Molton Core
if(intid == 26) then
player:Teleport(0, -7515.409668, -1045.369629, 182.301208)
end
-- Kara
if(intid == 27) then
player:Teleport(0, -11122.913086, -2014.498779, 47.079350)
end
-- Naxx
if(intid == 28) then
player:Teleport(0, 3132.915283, -3731.012939, 138.658371)
end
-- Caverns Of Time
if(intid == 29) then
player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
end
/* Outland Locations */
if(intid == 30) then
player:Teleport()
end
-- Hellfire
if(intid == 31) then
player:Teleport(530, -248, 922, 84)
end
-- Zangermarsh
if (intid == 32) then
player:Teleport(530, -225, 5405, 22)
end
-- Nagrand
if(intid == 33) then
player:Teleport(530, -468, 8418, 28)
end
-- Blades edge
if(intid == 34) then
player:Teleport(530, 1471, 6828, 107)
end
-- Netherstorm
if(intid == 35) then
player:Teleport(530, 3396, 4182, 137)
end
-- terokkar
if(intid == 36) then
player:Teleport(530, -1202, 5313, 33)
end
-- Shadowmoon Valley
if(intid == 37) then
player:Teleport(530, -2859, 3182, 10)
end
-- Shattrath
if(intid == 38) then
player:teleport(530, -1887, 5359, -12)
end
/* Grubu Arena */
if(intid == 39) then 
player:teleport(0, -13271, 149, 34)
end
RegisterGossipEvent(32000 , 1, "WarpNPC_On_Gossip")(32000 , 2,"WarpNPC_Gossip_Submenus")


Reply With Quote
(#38)
Old
Koksy is Offline
Sergeant Major
Rep Power: 2
Reputation: 10
Koksy is on a distinguished road
 
Posts: 147
Join Date: May 2007
07-07-2008

absolutely awesome guide! Thanks a ton! Took some time to crack the numbers, but its really pretty easy when you get it
Reply With Quote
(#39)
Old
miniko 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: 1
miniko is an unknown quantity at this point
 
Posts: 11
Join Date: Jun 2008
07-07-2008

Sector you are god!

Can you make guide more "detailed" or PM me i have some things to ask
Reply With Quote
(#40)
Old
miniko 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: 1
miniko is an unknown quantity at this point
 
Posts: 11
Join Date: Jun 2008
07-07-2008

Im making this for my friend, so does he have to download anything?

Can you tell me what he have to download if he haves to ^^

And: (0, 2050.203125, 285.650604, 56.994549) is that:

MapID, X,Y,Z


And shud this work?(will modify teleport location cant just now because server is down)

Quote:
function On_Gossip (pUnit, event, player)
pUnit:GossipCreateMenu(100, player)
pUnit:GossipMenuAddItem(player, 0, "Horde Locations", 1, 0)
pUnit:GossipMenuAddItem(player, 0, "Alliance Locations", 2, 0)
pUnit:GossipSendMenu(player)
end
function Gossip_Submenus (pUnit, event, player, id, intid, code)
if(intid == 1) then
pUnit:GossipGossipMenuAddItem(99, player)
pUnit:GossipMenuAddItem(player, 5, "BG Horde-Base", 10, 0)
pUnit:GossipMenuAddItem(player, 5, "Mall", 11, 0)
pUnit:GossipMenuAddItem(player, 5, "Shattrat", 12, 0)
pUnit:GossipMenuAddItem(player, 5, "Event[When we will create one]", 13, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 2) then
pUnit:GossipCreateMenu(99, player)
pUnit:GossipMenuAddItem(player, 5, "BG Alliance-Base", 14, 0)
pUnit:GossipMenuAddItem(player, 5, "Mall", 15, 0)
pUnit:GossipMenuAddItem(player, 5, "Shattrat", 16, 0)
pUnit:GossipMenuAddItem(player, 5, "Event[When we will create one]", 17, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:MenuSendToPlayer(player)
end
if(intid == 10) then
player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
end
if(intid == 11) then
player:Teleport(1, 5257,04, -2167,99, 1259,4)
end
if(intid == 12) then
player:Teleport(1, -1304.569946, 205.285004, 68.681396)
end
if(intid == 13) then
player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
end
if(intid == 14) then
player:Teleport(0, -9100.480469, 406.950745, 92.594185)
endif
(intid == 15) then
player:Teleport(1, 5257,04, -2167,99, 1259,4)
end
if(intid == 16) then
player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
end
if(intid == 17) then
player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
end
RegisterGossipEvent(32000 , 1, "On_Gossip")(32000 , 2,"Gossip_Submenus")

Note: Sorry my BAD english

Last edited by miniko; 07-07-2008 at 06:46 PM.
Reply With Quote
(#41)
Old
AixCrasher 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: 1
AixCrasher is an unknown quantity at this point
 
Posts: 5
Join Date: Jun 2008
07-07-2008

Hi body, im spanish, so sorry mi bad english!, i got a problem!, i made this:

function Anunciador_Player_Enters_Range (pUnit, Event)
pUnit:SendChatMessage(0, 0, "Hola soy un robot")
end
RegisterUnitEvent (120000, 10, "Anunciador_Player_Enters_Range")

But, when i enter in the game, i spawn the npc number 120000, and appears, but, they didnt come to me when i enter in the player area, and he never speak, and nothing, is just a useles npc standing. Can u please help me?

Thank u so much!
Reply With Quote
(#42)
Old
Emuchild's Avatar
Emuchild is Offline
Knight
Rep Power: 1
Reputation: 29
Emuchild is on a distinguished road
 
Posts: 217
Join Date: Oct 2007
07-11-2008

Awesome guide!! +REP




Last edited by Emuchild; 07-11-2008 at 11:10 PM.
Reply With Quote
(#43)
Old
miniko 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: 1
miniko is an unknown quantity at this point
 
Posts: 11
Join Date: Jun 2008
07-12-2008

is this theard totaly dead?!
Reply With Quote
(#44)
Old
Ezikielth is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 1
Ezikielth is an unknown quantity at this point
 
Posts: 22
Join Date: Aug 2007
07-26-2008

Useful but for some reason people tend to use C++ for this field of work
Reply With Quote
(#45)
Old
Exacute's Avatar
Exacute is Offline
Sergeant Major
Rep Power: 1
Reputation: 18
Exacute is on a distinguished road
 
Posts: 147
Join Date: Mar 2008
07-31-2008

Have some problems with using it, any chance for u can send a repack with initalized C++.. mine make errors in it :P


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 318 319 320 321 322 323 324 325 326 327