Random word in crafting menu

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Nazgul
Posts: 9
Joined: 2004-06-01 12:50:42

Random word in crafting menu

Post by Nazgul »

Code: Select all

# BlackSmith
Var MenuN1='Blacksmithing' # Part of menu name 
Var MenuP1='Studded Armour' # Part of what you choose 
Var MenuN2=[b]'copper Studded'[/b] 
Var MenuP2=[b]'Copper Studded Gloves'[/b] 

Var ItName='You put'

sub BS() 
While 1
 UO.CancelMenu() 
 UO.AutoMenu(MenuN1,MenuP1) 
 UO.AutoMenu(MenuN2,MenuP2) 
 UO.DeleteJournal() 
 Wait(100) 
 UO.UseType('Ingots')  
  While not (uo.injournal('failed') or uo.injournal(ItName)) 
 Wait(100) 
  Wend 
 Wait(100) 
Wend
UO.CancelMenu() 
EndSub 

Is there any way to make Injection to add itself a word Bronze or Iron in the "copper" place without doing it manually? I want it just to make gloves but when i do it from diffrent ingots i need to rewrite it :(
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

it is enough for this command to specify PARTIAL choice name
so for 'copper gloves', 'gold gloves' etc you may use just 'gloves'
Post Reply