Jump to content

Smelting script


bencebence

Recommended Posts

I'll try.

Also one more thing.

I played around a bit, and tried to make each ore have own vein.

It shows up the Begin/End error.

Scriptname RaivenCopperOre

short bluntskill
short ready
short chance
short playhitsound

Begin GameMode
if (GetCrossHairRef == GetSelf) && (OnControlDown 4)
	if (Player.GetEquipped MiningPick)
	set ready to 1
	else
	Message "You must equip a Mining Pick to mine the rock."
	endif
endif
if (ready)
	set ready to 0
	set bluntskill to player.getactorvalue blunt
	set chance to getrandompercent

	elseif (chance >= 10 && bluntskill <= 1)
		player.additem CopperOre 1
	elseif (chance <= 10)
		message "You found nothing."
		set playhitsound to 1
	elseif (bluntskill >= 1)
		message "You don't have high enough blunt skill to mine this vein."
	endif
if (playhitsound == 1)
	playsound wpnhitblunt
	set playhitsound to 0
else
	playsound wpnblockblunt
endif
endif
End

Which part is bad?

Also I've gave you a kudos.

Edited by bencebence
Link to comment
Share on other sites

  • Recently Browsing   0 members

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