Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 12-15-2007, 02:30 PM   #1 (permalink)
Newbie
 
Join Date: Apr 2004
Location: Texas
Age: 46
Posts: 34
Send a message via ICQ to AlexiaGandolf Send a message via MSN to AlexiaGandolf
Default Gump Help 1.0

I am not all that familiar with gump scripting. I am trying to add a button item (bottles) to this gump. How would I go about it?

Code:
AddPage(0);
    AddImageTiled(95, 40, 371, 548, 2624);
    AddLabel(215, 64, 1153, @"Bulk Resource Stone");
    AddButton(120, 130, 247, 248, 1, GumpButtonType.Reply, 0);
    AddButton(120, 180, 247, 248, 2, GumpButtonType.Reply, 0);
    AddButton(120, 230, 247, 248, 3, GumpButtonType.Reply, 0);
    AddButton(120, 280, 247, 248, 4, GumpButtonType.Reply, 0);
    AddButton(120, 330, 247, 248, 5, GumpButtonType.Reply, 0);
    AddButton(119, 380, 247, 248, 6, GumpButtonType.Reply, 0);
    AddButton(120, 430, 247, 248, 7, GumpButtonType.Reply, 0);
    AddButton(118, 480, 247, 248, 8, GumpButtonType.Reply, 0);
    AddButton(118, 530, 247, 248, 9, GumpButtonType.Reply, 0);
    AddLabel(215, 130, 1153, @"Mage Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 180, 1153, @"Necro Reg Bags @ 100 - Cost 6500");
    AddLabel(215, 230, 1153, @"Druid Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 280, 1153, @"Ranger Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 330, 1153, @"Rogue Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 380, 1153, @"Undead Reg Bags @ 100 - Cost 6000");
    AddLabel(216, 429, 1153, @"Blank Scrolls @ 100 - Cost 1000");
    AddLabel(215, 480, 1153, @"Arrows @ 100 - Cost 600");
    AddLabel(215, 534, 1153, @"Bolts @ 100 - Cost 1200");
__________________
"Thought of the Day"

Don't hold your farts in. It travels up your spine, to your brain and this is where shitty ideas come from.
AlexiaGandolf is offline   Reply With Quote
Old 12-16-2007, 01:03 PM   #2 (permalink)
Forum Expert
 
Join Date: Oct 2003
Location: Calhoun, Ga
Age: 44
Posts: 1,008
Send a message via AIM to roadmaster
Default

Quote:
Originally Posted by AlexiaGandolf View Post
I am not all that familiar with gump scripting. I am trying to add a button item (bottles) to this gump. How would I go about it?

Code:
AddPage(0);
    AddImageTiled(95, 40, 371, 548, 2624);
    AddLabel(215, 64, 1153, @"Bulk Resource Stone");
    AddButton(120, 130, 247, 248, 1, GumpButtonType.Reply, 0);
    AddButton(120, 180, 247, 248, 2, GumpButtonType.Reply, 0);
    AddButton(120, 230, 247, 248, 3, GumpButtonType.Reply, 0);
    AddButton(120, 280, 247, 248, 4, GumpButtonType.Reply, 0);
    AddButton(120, 330, 247, 248, 5, GumpButtonType.Reply, 0);
    AddButton(119, 380, 247, 248, 6, GumpButtonType.Reply, 0);
    AddButton(120, 430, 247, 248, 7, GumpButtonType.Reply, 0);
    AddButton(118, 480, 247, 248, 8, GumpButtonType.Reply, 0);
    AddButton(118, 530, 247, 248, 9, GumpButtonType.Reply, 0);
    AddLabel(215, 130, 1153, @"Mage Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 180, 1153, @"Necro Reg Bags @ 100 - Cost 6500");
    AddLabel(215, 230, 1153, @"Druid Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 280, 1153, @"Ranger Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 330, 1153, @"Rogue Reg Bags @ 100 - Cost 5500");
    AddLabel(215, 380, 1153, @"Undead Reg Bags @ 100 - Cost 6000");
    AddLabel(216, 429, 1153, @"Blank Scrolls @ 100 - Cost 1000");
    AddLabel(215, 480, 1153, @"Arrows @ 100 - Cost 600");
    AddLabel(215, 534, 1153, @"Bolts @ 100 - Cost 1200");
Code:
void AddItem( int x, int y, int itemID )
void AddItem( int x, int y, int itemID, int hue )
anything else you need can be found in your Doc's folder, double click on Index.html.

when the menu comes up click on the following options (in this order)

1. "Class Overview"
2. "Server.Gumps" not "Server"
3. "Gump"

then scroll to the bottom of the page, everything you can do with a gump is located there.
__________________
If you are not a Moderator, don't try to moderate.
roadmaster is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5