I'm kinda new to this whole thing, so I went ahead and downloaded Johved's Repack 3 for 3.1.1 and installed. Everything is fine, including custom items but i can't get my WarpNPC to work. I imported the SQL file, fine, I spawn the NPC but the menu isn't there. Here's the SQL script :
Code:
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('26000000', "Teleporter", "Main Cities", "", '1', '7', '0', '3', '0', '0', '10543', '0', '0', '0', '1', '1', '1', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `Item1`, `Item2`, `Item3`, `respawntime`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `resistance7`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `auraimmune_flag`, `vehicle_entry`, `CanMove`)
values ('26000000', '80', '80', '7', '9000000', '9000000', '100000', '1', '1', '100', '0', '9999999', '9999999', '0', '0', '0', '0', '0', '0', '20000', '9999', '9999', '9999', '9999', '9999', '9999', '9999', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '-1', '7');
And the LUA :
Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 999) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
unit:GossipSendMenu(player)
end
if(intid == 1) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Dalaran", 300, 0)
unit:GossipMenuAddItem(1, "Shattrath", 309, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Stormwind", 301, 0)
unit:GossipMenuAddItem(1, "Ironforge", 302, 0)
unit:GossipMenuAddItem(1, "Darnassus", 303, 0)
unit:GossipMenuAddItem(1, "Exodar", 304, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 3) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
unit:GossipMenuAddItem(1, "Undercity", 306, 0)
unit:GossipMenuAddItem(1, "Thunder Bluff", 307, 0)
unit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
unit:GossipMenuAddItem(0, "[Back]", 999, 0)
unit:GossipSendMenu(player)
end
if(intid == 300) then
player:Teleport(571, 5798.553711, 645.019287, 647.477783)
unit:GossipComplete(player)
end
if(intid == 301) then
player:Teleport(0, -8913.230469, 554.632996, 93.794830)
unit:GossipComplete(player)
end
if(intid == 302) then
player:Teleport(0, -4982.447266, -880.969604, 501.659882)
unit:GossipComplete(player)
end
if(intid == 303) then
player:Teleport(1, 9946.639648, 2610.149414, 1316.256348)
unit:GossipComplete(player)
end
if(intid == 304) then
player:Teleport(530, -4008.085205, -11885.257813, -1.419589)
unit:GossipComplete(player)
end
if(intid == 305) then
player:Teleport(1, 1505.377319, -4414.602539, 20.598469)
unit:GossipComplete(player)
end
if(intid == 306) then
player:Teleport(0, 1831.750854, 238.543503, 60.478447)
unit:GossipComplete(player)
end
if(intid == 307) then
player:Teleport(1, -1282.347534, 133.302917, 131.218323)
unit:GossipComplete(player)
end
if(intid == 308) then
player:Teleport(530, 9381.675781, -7277.671387, 14.241373)
unit:GossipComplete(player)
end
if(intid == 309) then
player:Teleport(530, -1704.053589, 5376.160156, 3.416441)
unit:GossipComplete(player)
end
end
RegisterUnitGossipEvent(26000000, 1, "On_Gossip")
RegisterUnitGossipEvent(26000000, 2, "Gossip_Submenus")
How do I get this to work ? Sorry for taking up your time, and thank you for your help (anticipated).
Cheers,
Andreas