How to display a window

Discussions on various DOL development features

Moderator: Support Team

How to display a window

Postby mystemas » Fri Feb 08, 2013 9:59 am

Hi All,

I search for a tip on how to display a window on the client screen, in which I would be able to display custom information. In a perfect world, it would be triggered by a right-click on a NPC, something similar to when you address a NPC who will tell you about a quest you can pick.

I found SayTo() in some pieces of code, but I'm not sure this will help.

Can one of you show me the way ?
I can't test as I'm at work :(

Many thanks,
Mystemas.
mystemas
DOL Initiate
 
Posts: 24
Joined: Thu Sep 27, 2012 1:58 pm
Location: France

Re: How to display a window

Postby Tolakram » Fri Feb 08, 2013 12:50 pm

Look at the implementation of SayTo

it's something like player.Out.sendmessagewindow

And you have options to say in the message window or popup a new window. You should find examples of this in the code.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: How to display a window

Postby mystemas » Fri Feb 08, 2013 3:24 pm

Tolakram

thanks for your support. Now that I have a hint, I loose patience about being back home :)

Thanks,
Mystemas.
mystemas
DOL Initiate
 
Posts: 24
Joined: Thu Sep 27, 2012 1:58 pm
Location: France

Re: How to display a window

Postby Dunnerholl » Sat Feb 16, 2013 3:24 pm

write your own customnpc (examples are in dol)

[thenpc].SayTo((GamePlayer)source , DOL.GS.PacketHandler.eChatLoc.CL_PopupWindow, [yourtext] ,true);

put this into the interact callback and you are set
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: How to display a window

Postby stephenxpimentel123 » Sun Feb 17, 2013 11:39 pm

this 1 will work too
player.Out.SendMessage("Your Message", eChatType.CT_Say, eChatLoc.CL_PopupWindow);
stephenxpimentel123
DOL Guest
 
Posts: 4
Joined: Wed Jan 30, 2013 11:07 pm


Return to “%s” DOL Development Discussion

Who is online

Users browsing this forum: No registered users and 1 guest