Tic Tac Posted April 17, 2011 Author Share Posted April 17, 2011 I'd like to create a spell where whenever warriors use it they will hit an extra hard hit on the opponent without having to target it first. (You will have to stand in front of it and face in its direction.) If you manage to hit your opponent an animation will show up and a sound will be played.How can i do this?I'm new to sourcing and i dont really know how to make custom spells, could someone send me a tutorial or something?Thanks. :) Link to comment Share on other sites More sharing options...
MCADAMS Posted April 17, 2011 Share Posted April 17, 2011 Admin Tab > Edit Spells Link to comment Share on other sites More sharing options...
Tic Tac Posted April 17, 2011 Author Share Posted April 17, 2011 Wouldn't that make me have to target my opponent first and then activate the spell?Was my explanation bad..?still need help..I just need the spell to be like a normal attack, except with an animation, sound and extra damage. Link to comment Share on other sites More sharing options...
ToshiroHayate Posted April 17, 2011 Share Posted April 17, 2011 Go into your item editor, and change the "Anim:None" to whatever you want. For instance, in the release of Origins, the axe has a tentacle as a normal attack animation. Be sure to set your item as a weapon though. Link to comment Share on other sites More sharing options...
Tic Tac Posted April 17, 2011 Author Share Posted April 17, 2011 No, i've already set an animation for all the weapons, i'd like a SPELL that has increased damage and acts like a normal attack, but with different sound and animation. Link to comment Share on other sites More sharing options...
MCADAMS Posted April 17, 2011 Share Posted April 17, 2011 @Tic:> No, i've already set an animation for all the weapons, i'd like a SPELL that has increased damage and acts like a normal attack, but with different sound and animation.Then use the bloody spell editor. You're making this more difficult than it needs to be. Link to comment Share on other sites More sharing options...
ToshiroHayate Posted April 17, 2011 Share Posted April 17, 2011 The simple way would be making a new spell, set the animations and sounds to the same as your melee attacks, set the range to 1 tile. Then that should work, but you'd probably want to look up how to set your target without clicking. Link to comment Share on other sites More sharing options...
Tic Tac Posted April 18, 2011 Author Share Posted April 18, 2011 If it's range 1 then i dont have to face the opponent to hit him.I can't do this in the spell editor, thats why im posting this in the "source" topic.Could someone familiar with sourcing help me, please? Link to comment Share on other sites More sharing options...
MCADAMS Posted April 18, 2011 Share Posted April 18, 2011 If it's range one you still have to be within one square to use the spell. I can't imagine a scenario where you would attack them, turn around, let them attack you, and then cast the spell while not facing them just for the sake of doing so. Link to comment Share on other sites More sharing options...
crzyone9584 Posted April 19, 2011 Share Posted April 19, 2011 For what you want to do you you would have to edit modCombat on the server source. More precise is where it handles the spell. I can't look since im not at a computer that has vb6\. What you want to do is is check the players direction then x amount of tiles from him in that direction then cast the spell. Look through modCombat and see where it handles the spell. Look it over and see how it checks if the player is x tiles away. Then go from there on putting your own check in. 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