Octohunter Posted October 23, 2011 Author Share Posted October 23, 2011 I'm a little confused on how this works. The sub "CastSpell" is called using a spellslot.Public Sub CastSpell(ByVal index As Long, ByVal spellslot As Long, ByVal target As Long, ByVal targetType As Byte)Am I allowed to put a number in for spellslot? (e.g. putting in 1 would cast spell 1, 2 would cast spell 2, etc.) If not, could someone please elaborate on this function? Link to comment Share on other sites More sharing options...
Robin Posted October 23, 2011 Share Posted October 23, 2011 1 would cast whatever spell is in the player's #1 slot, not spell #1. Link to comment Share on other sites More sharing options...
Octohunter Posted October 24, 2011 Author Share Posted October 24, 2011 So do you have any idea why this doesn't work?CastSpell attacker, 1, TempPlayer(attacker).target, TARGET_TYPE_NPC Link to comment Share on other sites More sharing options...
Robin Posted October 24, 2011 Share Posted October 24, 2011 You can't just tell the player to cast a spell. You need to get them to buffer it first. Link to comment Share on other sites More sharing options...
Octohunter Posted October 24, 2011 Author Share Posted October 24, 2011 Problem solved.@Robin: I'm using the spell system in a way it probably wasn't intended to be used, so there's no need to buffer it first. Link to comment Share on other sites More sharing options...
Robin Posted October 24, 2011 Share Posted October 24, 2011 Then you need to change the system to handle the way you want to use it. 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