adamsharp Posted August 12, 2009 Author Share Posted August 12, 2009 okay ive nearly done /hug but i need to know how to do somethingif i clicked someone called bill and he was my target how would i make it say You Hug Bill.?Thanks Adamsharp Link to comment Share on other sites More sharing options...
Godlord Posted August 12, 2009 Share Posted August 12, 2009 > Case "/hug"> ' Try the parameter first, if there's any.> If Len(TextSay(1)) <> 0 Then> PlayerID = FindPlayer(TextSay(1))> > If PlayerID <> 0 Then> Call GlobalMsg(GetPlayerName(Index) & " hugs " & GetPlayerName(PlayerID), BRIGHTRED)> > Exit Sub> End If> End If> > ' The using the target, if there's any.> If GetPlayerTarget(Index) <> 0 Then> Call GlobalMsg(GetPlayerName(Index) & " hugs " & GetPlayerName(GetPlayerTarget(Index)), BRIGHTRED)> > Exit Sub> ElseIf GetPlayerTargetNpc(Index) <> 0 Then> Call GlobalMsg(GetPlayerName(Index) & " hugs " & GetNpcName(GetPlayerTargetNpc(Index)), BRIGHTRED)> > Exit Sub> End If> > Call PlayerMsg(Index, "Can't hug when there's no target selected.", BRIGHTRED)> Exit Sub**Addendum**: added support for NPC's + for /hug .Regards, Godlord. Link to comment Share on other sites More sharing options...
Anna Comnena Posted August 12, 2009 Share Posted August 12, 2009 Type this in the chatbox:= hugs Bill.Will read in the chatbox:Playername hugs Bill.I think… it might be another key though, but there is a built in emote chat (like /me in MSN and IRC). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now