Difference between revisions of "Talk:Mining tutorial"

Jump to navigation Jump to search
1,245 bytes removed ,  22:17, 31 December 2007
no edit summary
imported>Redturner
imported>Redturner
Line 153: Line 153:
endif
endif


end
==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
end
Anonymous user

Navigation menu