| Mirage Source http://web.miragesource.net/forums/ |
|
| Click to open Guild Master http://web.miragesource.net/forums/viewtopic.php?f=201&t=4225 |
Page 1 of 1 |
| Author: | wisefire [ Sat Aug 30, 2008 3:51 pm ] |
| Post subject: | Click to open Guild Master |
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() If NPC_BEHAVIOR_GUILDMASTER Then frmGuild.Visible = True Else Exit Sub End If End Sub 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. |
|
| Author: | Anthony [ Sat Aug 30, 2008 3:58 pm ] |
| Post subject: | Re: Click to open Guild Master |
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. |
|
| Author: | wisefire [ Sat Aug 30, 2008 4:11 pm ] |
| Post subject: | Re: Click to open Guild Master |
Anthony wrote: 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. 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... |
|
| Author: | Acruno [ Sat Aug 30, 2008 6:15 pm ] |
| Post subject: | Re: Click to open Guild Master |
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? |
|
| Author: | Anthony [ Sat Aug 30, 2008 7:58 pm ] |
| Post subject: | Re: Click to open Guild Master |
It should be there, CurX and CurY I think. The mapeditor uses it. Like I said, look at targeting. |
|
| Author: | Matt [ Sat Aug 30, 2008 9:41 pm ] |
| Post subject: | Re: Click to open Guild Master |
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. |
|
| Author: | wisefire [ Sun Aug 31, 2008 12:05 am ] |
| Post subject: | Re: Click to open Guild Master |
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.. This is simple stuff guys, cmon. Uh, Thank's. Sorry were not all as smart as you. Some of us are learning. |
|
| Author: | Matt [ Sun Aug 31, 2008 1:22 am ] |
| Post subject: | Re: Click to open Guild Master |
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.. This is simple stuff guys, cmon. Uh, Thank's. Sorry were not all as smart as you. Some of us are learning. 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? |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|