Author Topic: Menu Combo Box  (Read 4593 times)

0 Members and 1 Guest are viewing this topic.

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3016
  • Activity:
    3.6%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Menu Combo Box
« on: May 06, 2015, 05:36:35 PM »
0
Is there a way of putting 2 on the same menu? I am trying to make 2 different combo boxes but they both end up having the same items.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Menu Combo Box
« Reply #1 on: May 06, 2015, 06:07:53 PM »
0
Is there a way of putting 2 on the same menu? I am trying to make 2 different combo boxes but they both end up having the same items.

That should work fine.  Can you post some of your code?
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Menu Combo Box
« Reply #2 on: May 06, 2015, 06:12:46 PM »
0
Not sure if this is what you are looking for.  but if you make a second combo box with a different name. it should work.

In your main loop
Code: [Select]
MENU GET list
    IF #MENURES = 1            
      gosub    
    if #menures = 2
      gosub
    if #menures = 3
      gosub
  

this for your menu
Code: [Select]

        menu Combo Create list 48 42 130
menu Combo Add list xxxx
menu Combo Add list yyyyy
menu Combo Add list zzzz


Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3016
  • Activity:
    3.6%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Menu Combo Box
« Reply #3 on: May 06, 2015, 06:27:11 PM »
0
This is what I have, you can paste it into EUO to bring up the menu

Code: [Select]
;===================================================================

set #lpc 200

gosub CraftAndFill

while #true
{
  gosub CheckMenu
  wait 4
}
return

;===================================================================

sub CheckMenu
  if #menubutton = CraftMage
    gosub CraftMagePressed
  if #menubutton = CraftNecro
    gosub CraftNecroPressed
  if #menubutton = CraftMyst
    gosub CraftMystPressed
  if #menubutton = CraftingNecro
    gosub CraftNecroResetPressed
  if #menubutton = SetResource
    gosub SetResourcePressed
  if #menubutton = SetStorage
    gosub SetStoragePressed
  if #menubutton = Closed
    {
     gosub end
    }
return

;===================================================================

sub CraftAndFill
  menu Clear
  menu show 700 250
  menu Window Title Alpha Version 0.1
  menu Window Color Black
  menu Window Size 450 370
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Style Bold
  menu Font Color WindowText
  menu Font Color Lime
  menu Font Align Center
  menu Font Size 12
  menu Text titles 100 20 Crisis Legendary Scribe Alpha
  menu Font Size 11
  menu font bgcolor black
  menu Text titles 57 93 Set Resource Secure
  menu Text titles 258 93 Set Storage Secure
  menu Text titles 85 225 Choose Mage Spell to Craft
  menu Combo Create %mage_scroll 85 250 193
  menu Text titles 303 225 Amount
  menu edit Amount_to_Craft 303 250 50 %Amount_to_Craft
  menu Text titles 370 225 Crafted
  menu Text titles 85 285 Choose Necro Spell to Craft
  menu Combo Create %necro_scroll 85 315 193
  menu Text titles 303 285 Amount
  menu edit Amount_to_Craft 303 315 50 %Amount_to_Craft
  menu Text titles 370 225 Crafted
  menu Text titles 370 285 Crafted
  menu font bgcolor black
  menu edit Resource_Secure 115 128 85 %Resource_Secure
  menu edit Storage_Secure 310 128 85 %Storage_Secure
  menu Text Titles 70 55 Status:
  menu Font Size 9
  menu Font Color Black
  menu Font BGColor Lime
  menu Button SetResource 60 125 40 33 Set
  menu Button SetScroll 255 125 40 33 Set
  menu Button CraftMage 25 245 40 33 Craft
  menu Button CraftNecro 25 310 40 33 Craft
  menu Button CraftMageSpells 20 180 125 33 Craft Mage Spells
  menu Button CraftNecroSpells 165 180 125 33 Craft Necro Spells
  menu Button CraftMystSpells 310 180 125 33 Craft Myst Spells
  gosub newstatus lime black 10 Ready to Begin
  ;first circle
  menu combo add %mage_scroll Clumsy
  menu combo add %mage_scroll Create Food
  menu combo add %mage_scroll Feeblemind
  menu combo add %mage_scroll Heal
  menu combo add %mage_scroll Magic Arrow
  menu combo add %mage_scroll Night Sight
  menu combo add %mage_scroll Reactive Armor
  menu combo add %mage_scroll Weaken
  ;second circle
  menu combo add %mage_scroll Agility
  menu combo add %mage_scroll Cunning
  menu combo add %mage_scroll Cure
  menu combo add %mage_scroll Harm
  menu combo add %mage_scroll Magic Trap
  menu combo add %mage_scroll Magic Untrap
  menu combo add %mage_scroll Protection
  menu combo add %mage_scroll Strength
  ;third circle
  menu combo add %mage_scroll Bless
  menu combo add %mage_scroll Fireball
  menu combo add %mage_scroll Magic Lock
  menu combo add %mage_scroll Poison
  menu combo add %mage_scroll Telekinesis
  menu combo add %mage_scroll Teleport
  menu combo add %mage_scroll Unlock
  menu combo add %mage_scroll Wall of Stone
  ;fourth circle
  menu combo add %mage_scroll Arch Cure
  menu combo add %mage_scroll Arch Protection
  menu combo add %mage_scroll Curse
  menu combo add %mage_scroll Fire Field
  menu combo add %mage_scroll Greater Heal
  menu combo add %mage_scroll Lightning
  menu combo add %mage_scroll Mana Drain
  menu combo add %mage_scroll Recall
  ;fifth circle
  menu combo add %mage_scroll Blade Spirits
  menu combo add %mage_scroll Dispel Field
  menu combo add %mage_scroll Incognito
  menu combo add %mage_scroll Magic Reflection
  menu combo add %mage_scroll Mind Blast
  menu combo add %mage_scroll Paralyze
  menu combo add %mage_scroll Poison Field
  menu combo add %mage_scroll Summon Creature
  ;sixth circle
  menu combo add %mage_scroll Dispel
  menu combo add %mage_scroll Energy Bolt
  menu combo add %mage_scroll Explosion
  menu combo add %mage_scroll Invisibility
  menu combo add %mage_scroll Mark
  menu combo add %mage_scroll Mass Curse
  menu combo add %mage_scroll Paralyze Field
  menu combo add %mage_scroll Reveal
  ;seventh circle
  menu combo add %mage_scroll Chain Lightning
  menu combo add %mage_scroll Energy Field
  menu combo add %mage_scroll Flamestrike
  menu combo add %mage_scroll Gate Travel
  menu combo add %mage_scroll Mana Vampire
  menu combo add %mage_scroll Mass Dispell
  menu combo add %mage_scroll Meteor Swarm
  menu combo add %mage_scroll Polymorph
  ;eighth circle
  menu combo add %mage_scroll Earthquake
  menu combo add %mage_scroll Energy Vortex
  menu combo add %mage_scroll Resurrection
  menu combo add %mage_scroll Summon Air Elemental
  menu combo add %mage_scroll Summon Daemon
  menu combo add %mage_scroll Summon Earth Elemental
  menu combo add %mage_scroll Summon Fire Elemental
  menu combo add %mage_scroll Summon Water Elemental
  
  menu combo add %necro_scroll Animate Dead
  set #menubutton N/A
return

Both Combo Boxes bring up all choices when I was hoping that one would have list of mage scrolls and the other the necro scrolls

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Menu Combo Box
« Reply #4 on: May 06, 2015, 06:39:33 PM »
0
nice

if that doesn't work  you can always try menu Check checkbox,    or look at C_2 potion.   he got a unique way to make mixte of potion.

Let be honest,  You can buy Lev 1-4 magery.   Your combo box can be just to make most popular spell that sell.   Just saying.


Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Menu Combo Box
« Reply #5 on: May 06, 2015, 07:25:30 PM »
0
Looks like you don't have a couple variables initialized, so you are really creating ONE control named "N/A"  

If you add this to the top of the script, it works:

Code: [Select]
;===================================================================

set #lpc 200

set %mage_scroll MageScroll
set %necro_scroll NecroScroll
...
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3016
  • Activity:
    3.6%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Menu Combo Box
« Reply #6 on: May 06, 2015, 08:12:32 PM »
0
I will give that a try and see how it works. I also did this but it is a lot more code so I may go with the original if setting those variables work.

The buttons work in this so give it a shot and let me know what you think.

Code: [Select]
;spellbooks
set %Mage_Book MPF
set %Necro_Book XXM
set %Myst_Book RGR_RJR

;tools
set %Scribe_Tool PBG
set %Tink_Tool JTL

;non-reagent resources
set %Iron_Ingot ENK
set %Blank_Scroll DPF

;Magery Reagents
set %Black_Pearl KUF
set %Blood_Moss JUF
set %Sulfurous_Ash SZF
set %Mandrake_Root MZF
set %Ginseng JZF
set %Nightshade WZF
set %Spidersilk RZF
set %Garlic KZF

;Necro Reagents
set %Nox_Crystal UZF
set %Grave_Dust TZF
set %Batwing IUF
set %Pig_Iron YZF
set %Daemon_Blood DUF

;Mystic Reagents
set %Bone GUF
set %Dragons_Blood JIY
set %Fertile_Dirt NZF
set %Daemon_Bones OZF

set %Resources DPF_ENK_KUF_MZF_JUF_KZF_SZF_JZF_RZF_WZF_UZF_TZF_IUF_YZF_DUF_GUF_JIY_NZF_OZF_

set %Scroll_Secure #backpackid

;===================================================================

set #lpc 200

gosub LegendaryScribeMain

while #true
{
  gosub CheckMenu
  wait 4
}
return

;===================================================================

sub CheckMenu
  if #menubutton = CraftMageSpellbook
    gosub CraftMagePressed
  if #menubutton = CraftNecroSpellbook
    gosub CraftNecroPressed
  if #menubutton = CraftMystSpellbook
    gosub CraftMystPressed
  if #menubutton = CraftMageScroll
    gosub CraftMageScrollPressed
  if #menubutton = CraftNecroScroll
    gosub CraftNecroScrollPressed
  if #menubutton = CraftMystScroll
    gosub CraftMystScrollPressed
  if #menubutton = SetResource
    gosub SetResourcePressed
  if #menubutton = SetStorage
    gosub SetStoragePressed
  if #menubutton = Closed
    {
     gosub end
    }
return

;===================================================================

sub LegendaryScribeMain
  menu Clear
  menu show 700 250
  menu Window Title Alpha Version 0.1
  menu Window Color Black
  menu Window Size 450 295
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Style Bold
  menu Font Color WindowText
  menu Font Color Lime
  menu Font Align Center
  menu Font Size 12
  menu Text titles 100 20 Crisis Legendary Scribe Alpha
  menu Font Size 11
  menu font bgcolor black
  menu Text titles 57 93 Set Resource Secure
  menu Text titles 258 93 Set Storage Secure
  menu font bgcolor black
  menu edit Resource_Secure 115 128 85 %Resource_Secure
  menu edit Storage_Secure 310 128 85 %Storage_Secure
  menu Text Titles 70 55 Status:
  menu Font Size 9
  menu Font Color Black
  menu Font BGColor Lime
  menu Button SetResource 60 125 40 33 Set
  menu Button SetStorage 255 125 40 33 Set
  menu Button CraftMageSpellbook 15 180 130 33 Craft Mage Spellbook
  menu Button CraftNecroSpellbook 160 180 130 33 Craft Necro Spellbook
  menu Button CraftMystSpellbook 305 180 130 33 Craft Myst Spellbook
  menu Button CraftMageScroll 15 235 130 33 Craft Mage Scroll
  menu Button CraftNecroScroll 160 235 130 33 Craft Necro Scroll
  menu Button CraftMystScroll 305 235 130 33 Craft Myst Scroll
  gosub newstatus lime black 10 Ready to Begin
  set #menubutton N/A
return

;===================================================================

sub LegendaryScribeMageScroll
  menu Clear
  menu show 700 250
  menu Window Title Alpha Version 0.2
  menu Window Color Black
  menu Window Size 450 375
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Style Bold
  menu Font Color WindowText
  menu Font Color Lime
  menu Font Align Center
  menu Font Size 12
  menu Text titles 100 20 Crisis Legendary Scribe Alpha
  menu Font Size 11
  menu font bgcolor black
  menu Text titles 57 93 Set Resource Secure
  menu Text titles 257 93 Set Storage Secure
  menu Text titles 77 290 Choose Mage Spell to Craft
  menu Combo Create %mage_scroll 75 318 193
  menu Text titles 303 290 Amount
  menu edit Amount_to_Craft 303 318 50 %Amount_to_Craft
  menu Text titles 370 290 Crafted
  menu font bgcolor black
  menu edit Resource_Secure 115 128 85 %Resource_Secure
  menu edit Storage_Secure 310 128 85 %Storage_Secure
  menu Text Titles 70 55 Status:
  menu Font Size 9
  menu Font Color Black
  menu Font BGColor Lime
  menu Button SetResource 60 125 40 33 Set
  menu Button SetScroll 255 125 40 33 Set
  menu Button StartCraft 15 315 40 33 Craft
  menu Button CraftMageSpellbook 15 180 130 33 Craft Mage Spellbook
  menu Button CraftNecroSpellbook 160 180 130 33 Craft Necro Spellbook
  menu Button CraftMystSpellbook 305 180 130 33 Craft Myst Spellbook
  menu Button CraftMageScroll 15 240 130 33 Craft Mage Scroll
  menu Button CraftNecroScroll 160 240 130 33 Craft Necro Scroll
  menu Button CraftMystScroll 305 240 130 33 Craft Myst Scroll
  gosub newstatus lime black 10 Ready to Begin
  ;first circle
  menu combo add %mage_scroll Clumsy
  menu combo add %mage_scroll Create Food
  menu combo add %mage_scroll Feeblemind
  menu combo add %mage_scroll Heal
  menu combo add %mage_scroll Magic Arrow
  menu combo add %mage_scroll Night Sight
  menu combo add %mage_scroll Reactive Armor
  menu combo add %mage_scroll Weaken
  ;second circle
  menu combo add %mage_scroll Agility
  menu combo add %mage_scroll Cunning
  menu combo add %mage_scroll Cure
  menu combo add %mage_scroll Harm
  menu combo add %mage_scroll Magic Trap
  menu combo add %mage_scroll Magic Untrap
  menu combo add %mage_scroll Protection
  menu combo add %mage_scroll Strength
  ;third circle
  menu combo add %mage_scroll Bless
  menu combo add %mage_scroll Fireball
  menu combo add %mage_scroll Magic Lock
  menu combo add %mage_scroll Poison
  menu combo add %mage_scroll Telekinesis
  menu combo add %mage_scroll Teleport
  menu combo add %mage_scroll Unlock
  menu combo add %mage_scroll Wall of Stone
  ;fourth circle
  menu combo add %mage_scroll Arch Cure
  menu combo add %mage_scroll Arch Protection
  menu combo add %mage_scroll Curse
  menu combo add %mage_scroll Fire Field
  menu combo add %mage_scroll Greater Heal
  menu combo add %mage_scroll Lightning
  menu combo add %mage_scroll Mana Drain
  menu combo add %mage_scroll Recall
  ;fifth circle
  menu combo add %mage_scroll Blade Spirits
  menu combo add %mage_scroll Dispel Field
  menu combo add %mage_scroll Incognito
  menu combo add %mage_scroll Magic Reflection
  menu combo add %mage_scroll Mind Blast
  menu combo add %mage_scroll Paralyze
  menu combo add %mage_scroll Poison Field
  menu combo add %mage_scroll Summon Creature
  ;sixth circle
  menu combo add %mage_scroll Dispel
  menu combo add %mage_scroll Energy Bolt
  menu combo add %mage_scroll Explosion
  menu combo add %mage_scroll Invisibility
  menu combo add %mage_scroll Mark
  menu combo add %mage_scroll Mass Curse
  menu combo add %mage_scroll Paralyze Field
  menu combo add %mage_scroll Reveal
  ;seventh circle
  menu combo add %mage_scroll Chain Lightning
  menu combo add %mage_scroll Energy Field
  menu combo add %mage_scroll Flamestrike
  menu combo add %mage_scroll Gate Travel
  menu combo add %mage_scroll Mana Vampire
  menu combo add %mage_scroll Mass Dispell
  menu combo add %mage_scroll Meteor Swarm
  menu combo add %mage_scroll Polymorph
  ;eighth circle
  menu combo add %mage_scroll Earthquake
  menu combo add %mage_scroll Energy Vortex
  menu combo add %mage_scroll Resurrection
  menu combo add %mage_scroll Summon Air Elemental
  menu combo add %mage_scroll Summon Daemon
  menu combo add %mage_scroll Summon Earth Elemental
  menu combo add %mage_scroll Summon Fire Elemental
  menu combo add %mage_scroll Summon Water Elemental
  set #menubutton N/A
return

;===================================================================

sub LegendaryScribeNecroScroll
  menu Clear
  menu show 700 250
  menu Window Title Alpha Version 0.2
  menu Window Color Black
  menu Window Size 450 375
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Style Bold
  menu Font Color WindowText
  menu Font Color Lime
  menu Font Align Center
  menu Font Size 12
  menu Text titles 100 20 Crisis Legendary Scribe Alpha
  menu Font Size 11
  menu font bgcolor black
  menu Text titles 57 93 Set Resource Secure
  menu Text titles 258 93 Set Storage Secure
  menu Text titles 76 290 Choose Necro Spell to Craft
  menu Combo Create %necro_scroll 75 318 193
  menu Text titles 303 290 Amount
  menu edit Amount_to_Craft 303 318 50 %Amount_to_Craft
  menu Text titles 370 290 Crafted
  menu font bgcolor black
  menu edit Resource_Secure 115 128 85 %Resource_Secure
  menu edit Storage_Secure 310 128 85 %Storage_Secure
  menu Text Titles 70 55 Status:
  menu Font Size 9
  menu Font Color Black
  menu Font BGColor Lime
  menu Button SetResource 60 125 40 33 Set
  menu Button SetScroll 255 125 40 33 Set
  menu Button StartCraft 15 315 40 33 Craft
  menu Button CraftMageSpellbook 15 180 130 33 Craft Mage Spellbook
  menu Button CraftNecroSpellbook 160 180 130 33 Craft Necro Spellbook
  menu Button CraftMystSpellbook 305 180 130 33 Craft Myst Spellbook
  menu Button CraftMageScroll 15 240 130 33 Craft Mage Scroll
  menu Button CraftNecroScroll 160 240 130 33 Craft Necro Scroll
  menu Button CraftMystScroll 305 240 130 33 Craft Myst Scroll
  gosub newstatus lime black 10 Ready to Begin
  ;first page
  menu combo add %necro_scroll Animate Dead
  menu combo add %necro_scroll Blood Oath
  menu combo add %necro_scroll Corpse Skin
  menu combo add %necro_scroll Curse Weapon
  menu combo add %necro_scroll Evil Omen
  menu combo add %necro_scroll Horrific Beast
  menu combo add %necro_scroll Lich Form
  menu combo add %necro_scroll Mind Rot
  ;second page
  menu combo add %necro_scroll Pain Spike
  menu combo add %necro_scroll Poison Strike
  menu combo add %necro_scroll Strangle
  menu combo add %necro_scroll Summon Familiar
  menu combo add %necro_scroll Vampiric Embrace
  menu combo add %necro_scroll Vengeful Spirit
  menu combo add %necro_scroll Wither
  menu combo add %necro_scroll Wraith Form
  ;third page
  menu combo add %necro_scroll Exorcism
  set #menubutton N/A
return

;===================================================================

sub LegendaryScribeMystScroll
  menu Clear
  menu show 700 250
  menu Window Title Alpha Version 0.2
  menu Window Color Black
  menu Window Size 450 375
  menu Font Transparent #true
  menu Font Align Right
  menu Font Name MS Sans Serif
  menu Font Style Bold
  menu Font Color WindowText
  menu Font Color Lime
  menu Font Align Center
  menu Font Size 12
  menu Text titles 100 20 Crisis Legendary Scribe Alpha
  menu Font Size 11
  menu font bgcolor black
  menu Text titles 57 93 Set Resource Secure
  menu Text titles 258 93 Set Storage Secure
  menu Text titles 81 290 Choose Myst Spell to Craft
  menu Combo Create %myst_scroll 75 318 193
  menu Text titles 303 290 Amount
  menu edit Amount_to_Craft 303 318 50 %Amount_to_Craft
  menu Text titles 370 290 Crafted
  menu font bgcolor black
  menu edit Resource_Secure 115 128 85 %Resource_Secure
  menu edit Storage_Secure 310 128 85 %Storage_Secure
  menu Text Titles 70 55 Status:
  menu Font Size 9
  menu Font Color Black
  menu Font BGColor Lime
  menu Button SetResource 60 125 40 33 Set
  menu Button SetScroll 255 125 40 33 Set
  menu Button StartCraft 15 315 40 33 Craft
  menu Button CraftMageSpellbook 15 180 130 33 Craft Mage Spellbook
  menu Button CraftNecroSpellbook 160 180 130 33 Craft Necro Spellbook
  menu Button CraftMystSpellbook 305 180 130 33 Craft Myst Spellbook
  menu Button CraftMageScroll 15 240 130 33 Craft Mage Scroll
  menu Button CraftNecroScroll 160 240 130 33 Craft Necro Scroll
  menu Button CraftMystScroll 305 240 130 33 Craft Myst Scroll
  gosub newstatus lime black 10 Ready to Begin
  ;first page
  menu combo add %necro_scroll Nether Bolt
  menu combo add %necro_scroll Healing Stone
  menu combo add %necro_scroll Pure Magic
  menu combo add %necro_scroll Enchant
  menu combo add %necro_scroll Sleep
  menu combo add %necro_scroll Eagle Strike
  menu combo add %necro_scroll Animated Weapon
  menu combo add %necro_scroll Stone Form
  ;second page
  menu combo add %necro_scroll Spell Trigger
  menu combo add %necro_scroll Mass Sleep
  menu combo add %necro_scroll Cleansing Winds
  menu combo add %necro_scroll Bombard
  menu combo add %necro_scroll Spell Plague
  menu combo add %necro_scroll Hail Storm
  menu combo add %necro_scroll Nether Cyclone
  menu combo add %necro_scroll Rising Colossus
  set #menubutton N/A
return

;===================================================================

sub newstatus
  menu delete scriptstatus
  menu font size %3
  menu font bgcolor %2
  menu font color %1
  set %_out
  while %0 > 3
  {
    set %_out % . %0 , #spc , %_out
    set %0 %0 - 1
  }
  menu text scriptstatus 125 55 %_out
return

;===================================================================

sub SetResourcePressed
  gosub SetResourceSecure
return

;===================================================================

sub SetStoragePressed
  gosub SetStorageSecure
return

;===================================================================

sub CraftMageSpellbookPressed
  menu delete CraftMage
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Green
  menu Button CraftingMage 20 180 125 33 Crafting
  set #menubutton N/A
  gosub StartMageCraftAndFill
return

;===================================================================

sub CraftNecroSpellbookPressed
  menu delete CraftNecro
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Green
  menu Button CraftingNecro 165 180 125 33 Crafting
  set #menubutton N/A
  gosub StartCraftAndFillNecro
return

;===================================================================

sub CraftMystSpellbookPressed
  menu delete CraftMyst
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Green
  menu Button CraftingMyst 310 180 125 33 Crafting
  set #menubutton N/A
  gosub StartCraftAndFillMyst
return

;===================================================================

sub CraftMageResetPressed
  menu delete CraftMagePressed
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Lime
  menu Button CraftMage 20 180 125 33 Mage Craft and Fill
  set #menubutton N/A
  set %state IDLE
return

;===================================================================

sub CraftNecroResetPressed
  menu delete CraftingNecro
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Lime
  menu Button CraftNecro 165 180 125 33 Necro Craft and Fill
  set #menubutton N/A
  set %state IDLE
return

;===================================================================

sub CraftMystResetPressed
  menu delete CraftMystPressed
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Lime
  menu Button CraftMyst 310 180 125 33 Myst Craft and Fill
  set #menubutton N/A
  set %state IDLE
return

;===================================================================

sub CraftMageScrollPressed
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Green
  menu Button CraftingMage 20 180 125 33 Setting Magery Scrolls
  set #menubutton N/A
  gosub LegendaryScribeMageScroll
return

;===================================================================

sub CraftNecroScrollPressed
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Green
  menu Button CraftingMage 20 180 125 33 Setting Necro Scrolls
  set #menubutton N/A
  gosub LegendaryScribeNecroScroll
return

;===================================================================

sub CraftMystScrollPressed
  menu Font Color WindowText
  menu Font Size 9
  menu Font Style Bold
  menu Font BGColor Green
  menu Button CraftingMage 20 180 125 33 Setting Mysticism Scrolls
  set #menubutton N/A
  gosub LegendaryScribeMystScroll
return

;===================================================================

sub IDLE
  wait 1 ; do nothing
return

;===================================================================

sub END
  menu Clear
  menu Hide
  halt
return

;===================================================================

sub SetResourceSecure

    str len %Resource_Secure
    if ( N/A notin %Resource_Secure ) && ( #strres > 0 )
    {
    finditem %Resource_Secure
    if #findkind <> -1
      goto _Resource
    }
  _selstore1:
    gosub newstatus lime black 10 Choose Resource Secure
    event sysmessage Select your Resource Secure...
    set #targcurs 1
    while #targcurs = 1
      wait 5
    set %Resource_Secure #ltargetid
    set #lobjectid %Resource_Secure
    event macro 17 0
    menu set Resource_Secure %Resource_Secure
    set #menubutton N/A
    wait 10
    contpos %resourcex %resourcey
    wait 10
    _Resource:
    set #lobjectid %Resource_Secure
    event macro 17 0
    wait 10
    contpos %resourcex %resourcey
    wait 10
Return

;===================================================================

sub SetStorageSecure

    str len %Storage_Secure
    if ( N/A notin %Storage_Secure ) && ( #strres > 0 )
    {
    finditem %Storage_Secure
    if #findkind <> -1
      goto _storage
    }
  _selstore2:
    gosub newstatus lime black 10 Choose Storage Secure
    event sysmessage Select your Storage Secure...
    set #targcurs 1
    while #targcurs = 1
      wait 5
    set %Storage_Secure #ltargetid
    set #lobjectid %Storage_Secure
    event macro 17 0
    menu set Storage_Secure %Storage_Secure
    set #menubutton N/A
    wait 10
    contpos %storagex %storagey
    wait 10
    _Storage:
    set #lobjectid %Storage_Secure
    event macro 17 0
    wait 10
    contpos %storagex %storagey
    wait 10
Return

;===================================================================

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3016
  • Activity:
    3.6%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Menu Combo Box
« Reply #7 on: May 07, 2015, 05:55:38 PM »
0
Ok so this worked great

Code: [Select]
;===================================================================

set #lpc 200

set %mage_scroll MageScroll
set %necro_scroll NecroScroll
...

I am trying to make a mega inscription script, which one do you think will be more convenient to run as far as the menu is concerned?

Menu 1 with 2 combo boxes. When all is said and done, there will be 3, myst will be added


Here is Menu 2, you choose which magic to craft scrolls


If you choose Magery, it would change to this


Which is better? Menu 1 or Menu 2?
« Last Edit: May 07, 2015, 06:09:54 PM by Crisis »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Menu Combo Box
« Reply #8 on: May 07, 2015, 06:09:38 PM »
0
I guess a combination of both really.  The 2nd one you posted I can't see any pulldowns.  On my inscription script, I split it into 2 pulldowns for magery.  One for circle and one for spell in that circle.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3016
  • Activity:
    3.6%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Menu Combo Box
« Reply #9 on: May 07, 2015, 06:11:36 PM »
0
I just edited it to add pictures, when you choose one magic type to craft scrolls, it then adds the drop down. You can switch back and forth from the same menu. I.E. start with magery, then when done, you click myst and it will show the myst dropdown.

On my inscription script, I split it into 2 pulldowns for magery.  One for circle and one for spell in that circle.

That is a thought too, makes it easier when choosing spells. Is that script posted? I would like to see how you did that.
« Last Edit: May 07, 2015, 06:14:46 PM by Crisis »

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Menu Combo Box
« Reply #10 on: May 07, 2015, 06:19:40 PM »
0
#2 menu since better for me. 

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Menu Combo Box
« Reply #11 on: May 07, 2015, 08:01:30 PM »
0
That is a thought too, makes it easier when choosing spells. Is that script posted? I would like to see how you did that.

Because you are so awesome.  :)

Code: [Select]
gosub showEUOMenu1
set %current_circle N/A
set %shard_kind OSI
repeat
  menu get Circle
  if %current_circle <> #MENURES
  {
    set %current_circle #MENURES
    gosub TM_UpdateSpellMenu %current_circle
  }
until #FALSE
stop
;----------------------------------------------------------
; %1 = new spell circle
sub TM_UpdateSpellMenu
  set %circle %1
  menu Font BGColor Window
  if %circle = 1
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    if %shard_kind = OSI
    {
      menu Combo Add SpellMenu Clumsy
      menu Combo Add SpellMenu Create Food
      menu Combo Add SpellMenu Feeblemind
      menu Combo Add SpellMenu Heal
      menu Combo Add SpellMenu Magic Arrow
      menu Combo Add SpellMenu Night Sight
      menu Combo Add SpellMenu Reactive Armor
      menu Combo Add SpellMenu Weaken
    }
    else
    {
      menu Combo Add SpellMenu Reactive Armor
      menu Combo Add SpellMenu Clumsy
      menu Combo Add SpellMenu Create Food
      menu Combo Add SpellMenu Feeblemind
      menu Combo Add SpellMenu Heal
      menu Combo Add SpellMenu Magic Arrow
      menu Combo Add SpellMenu Night Sight
      menu Combo Add SpellMenu Weaken
    }
    return
  }
  if %circle = 2
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Agility
    menu Combo Add SpellMenu Cunning
    menu Combo Add SpellMenu Cure
    menu Combo Add SpellMenu Harm
    menu Combo Add SpellMenu Magic Trap
    menu Combo Add SpellMenu Magic Untrap
    menu Combo Add SpellMenu Protection
    menu Combo Add SpellMenu Strength
  }
  if %circle = 3
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Bless
    menu Combo Add SpellMenu Fireball
    menu Combo Add SpellMenu Magic Lock
    menu Combo Add SpellMenu Poison
    menu Combo Add SpellMenu Telekinesis
    menu Combo Add SpellMenu Teleport
    menu Combo Add SpellMenu Unlock
    menu Combo Add SpellMenu Wall of Stone
  }
  if %circle = 4
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Arch Cure
    menu Combo Add SpellMenu Arch Protection
    menu Combo Add SpellMenu Curse
    menu Combo Add SpellMenu Fire Field
    menu Combo Add SpellMenu Greater Heal
    menu Combo Add SpellMenu Lightning
    menu Combo Add SpellMenu Mana Drain
    menu Combo Add SpellMenu Recall
  }
  if %circle = 5
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Blade Spirits
    menu Combo Add SpellMenu Dispel Field
    menu Combo Add SpellMenu Incognito
    menu Combo Add SpellMenu Magic Reflection
    menu Combo Add SpellMenu Mind Blast
    menu Combo Add SpellMenu Paralyze
    menu Combo Add SpellMenu Poison Field
    menu Combo Add SpellMenu Summon Creature
  }
  if %circle = 6
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Dispel
    menu Combo Add SpellMenu Energy Bolt
    menu Combo Add SpellMenu Explosion
    menu Combo Add SpellMenu Invisibility
    menu Combo Add SpellMenu Mark
    menu Combo Add SpellMenu Mass Curse
    menu Combo Add SpellMenu Paralyze Field
    menu Combo Add SpellMenu Reveal
  }
  if %circle = 7
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Chain Lightning
    menu Combo Add SpellMenu Energy Field
    menu Combo Add SpellMenu Flame Strike
    menu Combo Add SpellMenu Gate Travel
    menu Combo Add SpellMenu Mana Vampire
    menu Combo Add SpellMenu Mass Dispel
    menu Combo Add SpellMenu Meteor Swarm
    menu Combo Add SpellMenu Polymorph
  }
  if %circle = 8
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Earthquake
    menu Combo Add SpellMenu Energy Vortex
    menu Combo Add SpellMenu Resurrection
    menu Combo Add SpellMenu Air Elemental
    menu Combo Add SpellMenu Summon Daemon
    menu Combo Add SpellMenu Earth Elemental
    menu Combo Add SpellMenu Fire Elemental
    menu Combo Add SpellMenu Water Elemental
  }
  if %circle = 9
  {
    menu Delete SpellMenu
    menu Combo Create SpellMenu 12 80 145
    menu Combo Add SpellMenu Animate Dead
    menu Combo Add SpellMenu Blood Oath
    menu Combo Add SpellMenu Corpse Skin
    menu Combo Add SpellMenu Curse Weapon
    menu Combo Add SpellMenu Evil Omen
    menu Combo Add SpellMenu Horrific Beast
    menu Combo Add SpellMenu Lich Form
    menu Combo Add SpellMenu Mind Rot
    menu Combo Add SpellMenu Pain Spike
    menu Combo Add SpellMenu Poison Strike
    menu Combo Add SpellMenu Strangle
    menu Combo Add SpellMenu Summon Familiar
    menu Combo Add SpellMenu Vampiric Embrace
    menu Combo Add SpellMenu Vengeful Spirit
    menu Combo Add SpellMenu Wither
    menu Combo Add SpellMenu Wraith Form
    menu Combo Add SpellMenu Exorcism
  }
return

;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title TrailMyx's Inscription Machine v0.9 beta
menu Window Color BtnFace
menu Window Size 181 143
menu Font Transparent #true
menu Font Align Right
menu Shape EUOShape2 8 4 165 137 3 7 1 Black 7 Silver
menu Font Name MS Sans Serif
menu Font Size 12
menu Font Style
menu Font Color WindowText
menu Font Transparent #false
menu Font Align Left
menu Font BGColor Silver
menu Text EUOLabel8 12 8 Create Spells
menu Font Size 8
menu Text EUOLabel9 64 36 Quantity to make
menu Font BGColor Window
menu Edit EUOEdit7 12 32 49 1
menu Combo Create Circle 12 56 145
menu Combo Add Circle First
menu Combo Add Circle Second
menu Combo Add Circle Third
menu Combo Add Circle Forth
menu Combo Add Circle Fifth
menu Combo Add Circle Sixth
menu Combo Add Circle Seventh
menu Combo Add Circle Eighth
menu Combo Add Circle Necromancy
menu Combo Create SpellMenu 12 80 145
menu Font BGColor BtnFace
menu Button EUOButton1 52 108 75 25 Create
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3016
  • Activity:
    3.6%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Menu Combo Box
« Reply #12 on: May 08, 2015, 02:51:52 AM »
0
Thank you! I will check it out when I get home this evening!

Tags: