Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE]
Corporal
Rep Power: 2
Reputation: 8 Posts: 26
Join Date: Mar 2007
06-12-2008
Ok thank you anyway -.-
Donate to remove ads.
Corporal
Rep Power: 2
Reputation: 8 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 ==========
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 Posts: 16
Join Date: Nov 2007
06-19-2008
hdfjkhasdkljgha;fjkg
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 Posts: 13
Join Date: Mar 2008
Location: Azeroth (Mulgore)
06-19-2008
Knight
Rep Power: 1
Reputation: 28 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")
Banned
Rep Power: 0
Posts: 1,968
Join Date: Oct 2007
07-06-2008
After your custom code, add an end statement.
Knight-Lieutenant
Rep Power: 1
Reputation: 32 Posts: 278
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")
Master Sergeant
Rep Power: 2
Reputation: 7 Posts: 113
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
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 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
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 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 .
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 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!
Knight
Rep Power: 1
Reputation: 26 Posts: 200
Join Date: Oct 2007
07-11-2008
Awesome guide!! +REP
Last edited by Emuchild; 07-11-2008 at 11:10 PM .
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 Posts: 11
Join Date: Jun 2008
07-12-2008
is this theard totaly dead?!
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 Posts: 22
Join Date: Aug 2007
3 Weeks Ago
Useful but for some reason people tend to use C++ for this field of work
Sergeant
Rep Power: 1
Reputation: 11 Posts: 66
Join Date: Mar 2008
2 Weeks Ago
Have some problems with using it, any chance for u can send a repack with initalized C++.. mine make errors in it :P
Remember to + Rep Peoples who helps you!
Donate to remove ads.
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
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