Ohai Posted March 3, 2017 Share Posted March 3, 2017 Hi guys, I'm making a city have a couple of questions. I'm not sure how to export it all, are there tools that can convert your model into a WMO group. I know mirrormachine would crash with anything over 50k verts so thats out, what else is there? Second, is there any way to script guards and make them leave those locations with red dots on map? Also for the map thing, does it matter if my city is a compact wmo or should I just paint chunks in noggit make it a zone? Link to comment Share on other sites More sharing options...
Skarn Posted March 3, 2017 Share Posted March 3, 2017 Link to comment Share on other sites More sharing options...
Ohai Posted March 3, 2017 Author Share Posted March 3, 2017 yea was thinking about happyhacks hack lol, will deff come back to that tutorial, his topic wasn't detailed back on modcraft. So a city would be just a large wmo group? I could connect like 3-4 WMOs that have around 70-k verts each? But I'm still interested why are cities always one WMO(group), and what would be the difference if I painted chunks in noggit and then just place WMOs on that? Link to comment Share on other sites More sharing options...
Amaroth Posted March 3, 2017 Share Posted March 3, 2017 For WMO plugin, Skarn has linked it already. You may try to download the newest test beta version, if you wish to, too. Repo is linked in that topic. What should geometry look like I discuss on my YT channel, as well as plugin installation. Guards... I have never tryed to do this, even while I wanted to multiple times, but it seems fairly simple. world.points_of_interest defies coordinates for "flags". They are called from gossip_menu_option (called from gossip_menu, which is called from creature_template). The last paragraph of your question... I don't get it. Just make a WMO and spawn it to your map? Where's a problem with that? Or make a new map, with that WMO on it. Or make a new map, which is only made out of that WMO. All is possible. It depends on what you want to achieve. English YT tutorial channel. Check it out if you preffer videos over walls of text.:https://www.youtube.com/AmarothEng I am now completely retired from modding. I am still reading PMs and reacting to them, however, I am not keeping up to date with what is going on in the community and my ability to help you is becoming very limited - I no longer remember some things, I don't have tools installed anymore, and I don't know what is up to date nowadays. Link to comment Share on other sites More sharing options...
Amaroth Posted March 3, 2017 Share Posted March 3, 2017 4 minutes ago, Ohai said: So a city would be just a large wmo group? I could connect like 3-4 WMOs that have around 70-k verts each? But I'm still interested why are cities always one WMO(group), and what would be the difference if I painted chunks in noggit and then just place WMOs on that? There is no real difference. Both works. But imagine you'd be building something like Stormwind out of multiple objects. Not very convenient way, its easier to build such city with a lot of connections between parts/buildings in 3D. On the other hand, making just one huge object won't make it very easy for you to re-use any building used in that city. So it has some drawbacks as well. Yet again, its up to you, and depends on what you would like to achieve. English YT tutorial channel. Check it out if you preffer videos over walls of text.:https://www.youtube.com/AmarothEng I am now completely retired from modding. I am still reading PMs and reacting to them, however, I am not keeping up to date with what is going on in the community and my ability to help you is becoming very limited - I no longer remember some things, I don't have tools installed anymore, and I don't know what is up to date nowadays. Link to comment Share on other sites More sharing options...
Ohai Posted March 3, 2017 Author Share Posted March 3, 2017 Ok, so guess I'll be able to port this but no tool for guards seems, if you don't know, then probably no one ever made that.. guess I'll be coming back here with that prob later -_0 .b Link to comment Share on other sites More sharing options...
Amaroth Posted March 3, 2017 Share Posted March 3, 2017 Uh... what tool for guards do you exactly need? I have just absolutely no clue wth are you talking about, what tool, what for, what is here for what you'd need any kind of specialized tool whatsoever? Oo English YT tutorial channel. Check it out if you preffer videos over walls of text.:https://www.youtube.com/AmarothEng I am now completely retired from modding. I am still reading PMs and reacting to them, however, I am not keeping up to date with what is going on in the community and my ability to help you is becoming very limited - I no longer remember some things, I don't have tools installed anymore, and I don't know what is up to date nowadays. Link to comment Share on other sites More sharing options...
Ohai Posted March 3, 2017 Author Share Posted March 3, 2017 Like a standalone tool? I haven't done DBC editing much, or quest making nothing like that. So don't even know whats controling guards, guess that would be DBC, or in the sql's? Thats also why I was asking why are cities always one WMO, wondered if those guard-map coords required a WMO or a zone or how ever it works. I thought there mustve been a reason there always one WMO, didn't wanna make a zone in noggit, place everything then realize there are some setbacks. I'm making a racial capital btw Link to comment Share on other sites More sharing options...
Amaroth Posted March 3, 2017 Share Posted March 3, 2017 1 hour ago, Amaroth said: Guards... I have never tryed to do this, even while I wanted to multiple times, but it seems fairly simple. world.points_of_interest defies coordinates for "flags". They are called from gossip_menu_option (called from gossip_menu, which is called from creature_template). But... I have explained all here already. All of these are WORLD DATABASE tables bro :D. Its MySQL thing. No tools. No DBCs. Just MySQL database tables. English YT tutorial channel. Check it out if you preffer videos over walls of text.:https://www.youtube.com/AmarothEng I am now completely retired from modding. I am still reading PMs and reacting to them, however, I am not keeping up to date with what is going on in the community and my ability to help you is becoming very limited - I no longer remember some things, I don't have tools installed anymore, and I don't know what is up to date nowadays. Link to comment Share on other sites More sharing options...
bfx Posted March 3, 2017 Share Posted March 3, 2017 For guards point of interest (markers on map) If you're using the Eluna lua engine you can do it with Lua Here's a working example i wrote which you can use. -- Guards POI -- local NPC_GUARD = 90351 -- Change this to your NPC id. local Guard = {} function Guard.OnGossipHello(event, player, creature) player:GossipClearMenu() player:GossipMenuAddItem(0, "Locations", 0, 1) player:GossipSendMenu(100, creature, menu_id) end function Guard.OnGossipSelect(event, player, creature, sender, id, code) if (id == 1) then player:GossipClearMenu() player:GossipMenuAddItem(0, "Location One", 0, 2) player:GossipMenuAddItem(0, "Location Two", 0, 3) player:GossipSendMenu(100, creature, menu_id) end if (id == 2) then player:GossipSendPOI(2238, 2995, 7, 75, 0, "Npc or location one") -- X,Y,icon,flags,data player:GossipSendMenu(100, creature, menu_id) end if (id == 3) then player:GossipSendPOI(2238, 2980, 7, 75, 0, "Npc or location two") -- X,Y,icon,flags,data player:GossipSendMenu(100, creature, menu_id) end end RegisterCreatureGossipEvent(NPC_GUARD, 1, Guard.OnGossipHello) RegisterCreatureGossipEvent(NPC_GUARD, 2, Guard.OnGossipSelect) Link to comment Share on other sites More sharing options...
Ohai Posted March 3, 2017 Author Share Posted March 3, 2017 awsome thank you, I dont know Eluna or any other pagan nelf gods but I no html, css and actionscript ,b And where would this code go in SQL? Isn't SQL just table data or.. wats gowing on here Link to comment Share on other sites More sharing options...
bfx Posted March 4, 2017 Share Posted March 4, 2017 Amaroth is referring to the table points of interest in the world database. -- To be added in the world database, the 1st value you need to remember as you will be referencing it later in the c++ script -- DELETE FROM `points_of_interest` WHERE `ID` = 465; INSERT INTO `points_of_interest` (`ID`, `PositionX`, `PositionY`, `Icon`, `Flags`, `Name`) VALUES ('465', '23222323', '323232', '7', '99', 'Npc location'); I don't use SmartAI so i can't write the query for you since I'm not familiar with it, however the c++ version can be found below. #include "ScriptMgr.h" #include "ScriptedGossip.h" enum POI { LOCATION_ONE = 465, // The id registered in points_of_interest table in the world database }; // Point of interest guard script class npc_guard_poi : public CreatureScript { public: npc_guard_poi() : CreatureScript("npc_guard_poi") { } bool OnGossipHello(Player* player, Creature* creature) override { player->ADD_GOSSIP_ITEM(GOSSIP_ICON_INTERACT_1, "Locations", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Goodbye..", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 99); player->SEND_GOSSIP_MENU(100, creature->GetGUID()); return true; } bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) override { player->PlayerTalkClass->ClearMenus(); switch (action) { case GOSSIP_ACTION_INFO_DEF + 1: player->PlayerTalkClass->SendPointOfInterest(LOCATION_ONE); player->SEND_GOSSIP_MENU(100, creature->GetGUID()); break; case GOSSIP_ACTION_INFO_DEF + 99: player->CLOSE_GOSSIP_MENU(); break; } return true; } }; void AddSC_npc_custom_guards() { new npc_guard_poi(); } Link to comment Share on other sites More sharing options...
Ohai Posted March 4, 2017 Author Share Posted March 4, 2017 thanks really cool of you, I'm not 1/4 done in Blender with the city so won't be getting into this soon I think, but still nice I'll come back later on this topic (maybe even spam PM you a bit ;P) Link to comment Share on other sites More sharing options...
Making a city
By Ohaiin Level Design
Recommended Posts