Jump to content

Script help


Kuraikiba

Recommended Posts

I need a script that will give gold to the player once a day at 12 noon, provided the object the script is applied to is in the inventory. I also need it to randomize the amount from 1-100 gold.

 

Would very much appreciate this.

Link to comment
Share on other sites

scriptname example

short tempshort

Begin GameMode

if (GetContainer == Player)
	if (GameHour == 12 && tempshort == 0)
		set tempshort to GetRandomPercent
		Player.AddItem Gold01 tempshort
	endif
endif

if (GameHour != 12 && tempshort > 0)
	set tempshort to 0
endif

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

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