Difference between revisions of "Talk:Mining tutorial"

1,799 bytes added ,  22:13, 31 December 2007
imported>Dwayne
imported>Redturner
Line 48: Line 48:
  endif
  endif
  end
  end
[[Redturner]]Well,I have just finished the item combiner script thanks to some help I recieved on the Bethesda forums.It works quite well and exchanges the materials (Ore and wolfpelts) for an item (Claws of the Wolf).I'll post it here for you to view,but if you'd like to use it you must either change the material from "0101ORE" to something that you can actually find,or make an item with that ID.Same with the reward item.I would really appreciate a working anvil script and it would be nice if I could get a actual blunt weapon that was a pickaxe.
==SCRIPT==
scriptname 0itemcombiner
short button
short controlvar
begin onactivate
messagebox "What item would you like to create?", "Claws of The Wolf", "Steel Sting", "Nothing"
set controlvar to 1
end
begin gamemode
;wait for button press.
if controlvar == 1
set button to getbuttonpressed
if button > -1
set controlvar to 2
endif
endif
;button has been pressed.
if controlvar == 2
if button == 0
if player.getitemcount 0101ore >= 3 && player.getitemcount wolfpelt01 >= 2 && player.getitemcount gold001 >= 500
message "Congradulations, item created!"
message " "
message " "
player.removeitem 0101ore 3
player.removeitem wolfpelt01 2
player.removeitem gold001 400
player.additem 123furIT 1
else
message "Insufficient materials for item creation."
endif
set controlvar to 0
elseif button == 1
if player.getitemcount 0101ore >= 3 && player.getitemcount welkyndstone >=2 && player.getitemcount gold001 >= 500
message "Congradulations, item created!"
message " "
message " "
player.removeitem 0101ore 3
player.removeitem welkyndstone 2
player.removeitem gold001 500
player.additem 001eny 1
else
message "Insufficient materials for item creation."
endif
set controlvar to 0
else
message "Action Cancelled."
set controlvar to 0
endif
endif
end
Anonymous user