gump display on npc dblclick
Posted: Mon Apr 06, 2009 2:14 pm
Here is what I'm trying to do
I want to make it so when i double click a npc my gump pops up
This just a scrap gump from the moongate some code from two differant scripts
basicly once i get it so gump will pop up on double click of the npc i can start working ona much better gump
Code: Select all
function onCharDoubleClick( pUser, targChar )
{
var ret=displaygump(srcSock, pUser);
}
function displaygump(srcSock, pUser)
{
// Make a noise as the gump opens
pUser.SoundEffect( 0x58, false );
var myGump = new Gump;
// add a background
myGump.AddPage(1); //Page 1 Felucca
myGump.AddBackground(20, 20, 260, 245, 0x23f0);
myGump.AddText( 40, 40, 0, "Test:" );
//Cancel Button
myGump.AddButton( 47, 207, 0xfa5, 1, 0, 0 );
myGump.AddText( 80, 210, 0, "CANCEL" );
myGump.Send( srcSock );
}This just a scrap gump from the moongate some code from two differant scripts
basicly once i get it so gump will pop up on double click of the npc i can start working ona much better gump