![]() |
Click to open Guild Master - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Click to open Guild Master (/showthread.php?tid=2043) |
Click to open Guild Master - wisefire - 30-08-2008 So.. Simply, I'm adding guilds and a guild master, When you click the guild master the Guild Creation should open.. How exactly do I get it to check the exact tile I click to check for the NPC_BEHAVIOR_GUILDMASTER? I figured something like, Code: Sub CheckGuildMaster() But that makes it so when I click anywhere on the map, any map, the Guild Form Opens... Any Ideas on how this should be done? Thanks. Re: Click to open Guild Master - Anthony - 30-08-2008 Why do you have Dim Index if your not using it? I would look at the way targeting works. I would assume you need to get your players mouse coordinates. Re: Click to open Guild Master - wisefire - 30-08-2008 Anthony Wrote:Why do you have Dim Index if your not using it? Sorry, I was messing around ealier. I though so too, But I can't seem to find anything with the Mouse tracking ect. I honestly have no idea how that would work... Re: Click to open Guild Master - Acruno - 30-08-2008 wisefire Wrote:But I can't seem to find anything with the Mouse tracking ect. I honestly have no idea how that would work... Click to move code? Re: Click to open Guild Master - Anthony - 30-08-2008 It should be there, CurX and CurY I think. The mapeditor uses it. Like I said, look at targeting. Re: Click to open Guild Master - Matt - 30-08-2008 Everything is done for you. Server side, where the playersearch stuff is executed, check the npc's behavior, if it's a guild master, send a packet back to the client, telling the client to open the window.. This is simple stuff guys, cmon. Re: Click to open Guild Master - wisefire - 31-08-2008 Perfekt Wrote:Everything is done for you. Server side, where the playersearch stuff is executed, check the npc's behavior, if it's a guild master, send a packet back to the client, telling the client to open the window.. Uh, Thank's. Sorry were not all as smart as you. Some of us are learning. Re: Click to open Guild Master - Matt - 31-08-2008 wisefire Wrote:Perfekt Wrote:Everything is done for you. Server side, where the playersearch stuff is executed, check the npc's behavior, if it's a guild master, send a packet back to the client, telling the client to open the window.. I'm actually not all that great at programming, I would consider myself a novice at best. It's just basic packet handling and following. If you can already get information on the npc or player when you click them, why couldn't you use it to do what you're trying to do? |