View Single Post
  #15  
Old 04-19-2017, 08:16 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Quote:
Originally Posted by Albator View Post
Ie; require a pickaxe to be equipped so you can pick up the rock pile? How would one go about coding that? Like which server code file would be a good start .
its been a while since I actually coded but it would go like this:

You "hail" the Rockpile
Rockpile offers you a click link "mine"
You click "mine" - the code runs and checks if you have Pick Axe equipped, then it checks a client variable where it stores your Mining Skill, forces attack animation on our char and produces result
Reply With Quote