Jump to content

What's wrong with this script?


Recommended Posts

scn SmeltingBronzeSCRIPT

 

Begin OnActivate

 

if player.getitemcount CopperOre < 5

messagebox "You donot have enough ores"

end if

end

 

 

Begin OnActivate

 

if player.getitemcount CopperOre >= 5

messagebox "You made a Copper Bar'

player.removeitem CopperOre 5

player.additem BronzeBar 1

end

 

 

 

Can someone tell me if i did anything wrong?

Link to comment
Share on other sites

I also tried this

 

 

scn SmeltingBronzeSCRIPT

 

Begin OnActivate

 

if player.getitemcount CopperOre <= 4

messagebox "You donot have enough ore"

end

 

 

Begin OnActivate

 

if player.getitemcount Copperore >= 5

messagebox "You made a Copper Bar'

player.removeitem CopperOre 5

player.additem BronzeBar 1

end

Link to comment
Share on other sites

 

 

scn SmeltingBronzeSCRIPT

begin OnActivate
if player.GetItemCount CopperOre < 5
	messagebox "You do not have enough ore"
else
	messagebox "You made a Copper Bar'
	player.removeitem CopperOre 5
	player.additem BronzeBar 1
endif
end

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...