PVJsquad Posted June 29, 2012 Author Share Posted June 29, 2012 do you know how to keep weapon type like Hatchet, Rod etc …not be used to attack? Link to comment Share on other sites More sharing options...
Stein Posted June 29, 2012 Share Posted June 29, 2012 You could set the damage to zero(although this may or may not require you to rewrite damaging resources), or skip the entire tryPlayerAttackXXXXX when the item is a tool. Link to comment Share on other sites More sharing options...
PVJsquad Posted June 29, 2012 Author Share Posted June 29, 2012 What The Sub for edit it ? Link to comment Share on other sites More sharing options...
Stein Posted June 29, 2012 Share Posted June 29, 2012 ```Sub HandleAttack(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)```Search for that server-side, it handles player attacks, and you can trace down the rest from that sub. It calls other subs, which then handle the various checks you'll need to add onto. (e.g. CanPlayerAttackNPC, CanPlayerAttackPlayer, CheckResource etc.) Link to comment Share on other sites More sharing options...
or3o Posted June 30, 2012 Share Posted June 30, 2012 here check this out :) http://www.touchofdeathforums.com/smf2/index.php/topic,79490.msg851999.html#msg851999 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now