Difference between revisions of "Talk:Mining tutorial"

1,304 bytes added ,  19:53, 30 December 2007
Item creater anvil script
imported>Dwayne
imported>Dwayne
(Item creater anvil script)
Line 9: Line 9:
[[User:Dwayne|Dwayne]]
[[User:Dwayne|Dwayne]]
I am currently working in an anvil script, please explain your item combiner?  I just started work on the anvil script about 5 minutes ago, I should have it done by tomorrow. I will post the finished script on the main page. I was working in a "machine" to make weapons, armor, and arrows when I went to this site to see how I should make a process to mine the ore.  I will put a link to my finished mod with the item maker when I am done with it.
I am currently working in an anvil script, please explain your item combiner?  I just started work on the anvil script about 5 minutes ago, I should have it done by tomorrow. I will post the finished script on the main page. I was working in a "machine" to make weapons, armor, and arrows when I went to this site to see how I should make a process to mine the ore.  I will put a link to my finished mod with the item maker when I am done with it.
Here is a simple anvil script, it is untested so I have no idea if it works.  I might get around to testing it later. I had to insert a page break in one location, lines 13 and 14 (not counting blank lines) should be one line and it should not have the text saying I had to insert a page break. Once I test this, I will put it on the main page. Here it is
scn AnvilIronshortSwordScript
short choosing
short choice
Begin OnActivate
set choosing to -1
End
Begin Gamemode
if (choosing == ))
return
elseif (choosing == -1)
;You may substitute any item name
;add in how many pieces of iron you want it to take to make the item
messagebox "Would you like to make an Iron Longsword?
It will take xx pieces of iron." "Yes" "No" ;this should be on the above line
set choosing to 1
elseif (choosing == 1)
set choise ot get button pressed
;you replace the 1 with how many pieces of iron you want it to take to make the item
if (choice == 0)
if (player.getitemcount iron) >= 1
player.removeitem iron 1
player.additem weapironlongsword
;instead of weapironlongsword, add the item you wan thte anvil to make
else
set choosing to 0
message "You don't have enough iron!"
endif
elseif (choice == 1)
set choosing to 0
endif
endif
end
Anonymous user