Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click to open Guild Master
#1
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.
Reply
#2
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.
Reply
#3
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...
Reply
#4
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?
Reply
#5
It should be there, CurX and CurY I think. The mapeditor uses it.

Like I said, look at targeting.
Reply
#6
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.
Reply
#7
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.
Reply
#8
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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)