RyokuHasu Posted October 14, 2011 Author Share Posted October 14, 2011 Over in the Q&A section there was talk about having an Auto-Target and I thought it would be fun to share it with everyone.It basically does what the title says, you attack and the targets is auto-selected so you can easily cast spells and skills.This is a simple edit and does not require any credit to me or anyone.**Server side**in modCombatin "CanPlayerAttackNpc", above "CanPlayerAttackNpc = True" add```TempPlayer(attacker).targetType = TARGET_TYPE_NPCTempPlayer(attacker).target = mapNpcNumSendTarget attacker```in "CanPlayerAttackPlayer", above "CanPlayerAttackPlayer = True" add```TempPlayer(attacker).targetType = TARGET_TYPE_PLAYERTempPlayer(attacker).target = VictimSendTarget attacker``` Link to comment Share on other sites More sharing options...
kibbelz Posted October 14, 2011 Share Posted October 14, 2011 very basic code and simple to add. This will be a minor nice addition to the engine. Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2011 Share Posted October 14, 2011 i think its great and all but what if you are attacking one melee and you want to target another npc, wont it reset your target to the one infront of you once you hit attack again? so something like this would be dificult im guessing.healer attacking a npc, it autotargets that npc. healer targets player to heal, but attacks before casting heal spell and it resets the target to the npc again. i duno, was just thinking about it. Link to comment Share on other sites More sharing options...
RyokuHasu Posted October 14, 2011 Author Share Posted October 14, 2011 well justn had an Idea to make a check box to turn it on and off in the options menu, but i decided not to, I guess you could if you wanted to =P Link to comment Share on other sites More sharing options...
Justn Posted October 14, 2011 Share Posted October 14, 2011 I kinda like the way you did it though and the fact that you will have to click back and forth to heal a person and attack another makes it more intense which is more fun to me anyways thanks for the code!! (healers shouldn't be doing melee combat anyways right?) =) Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2011 Share Posted October 14, 2011 well i was just using it as an example. it would be gold with the option to use it or not. but i think its all about gameplay preference. anyways a good simple tut. Link to comment Share on other sites More sharing options...
Justn Posted October 14, 2011 Share Posted October 14, 2011 @sotvotkong:> well i was just using it as an example.yea i know i thought of a different scenario that could cause issues right when i saw it.. I added it anyways thanks Ryoku =) Link to comment Share on other sites More sharing options...
RyokuHasu Posted October 14, 2011 Author Share Posted October 14, 2011 Well, also it forces parties to work more cooperatively this way in my opinion ;D Link to comment Share on other sites More sharing options...
Tekniko Posted October 14, 2011 Share Posted October 14, 2011 Thanks Ryoku Hasu! This was exactly what I was looking for. Link to comment Share on other sites More sharing options...
RyokuHasu Posted October 14, 2011 Author Share Posted October 14, 2011 No problem, thank you for inspiring this simple idea. Link to comment Share on other sites More sharing options...
Tekniko Posted October 15, 2011 Share Posted October 15, 2011 I made these changes now how do I go about recompiling everything? Link to comment Share on other sites More sharing options...
RyokuHasu Posted October 15, 2011 Author Share Posted October 15, 2011 you are using VB6 right? =P Link to comment Share on other sites More sharing options...
Tekniko Posted October 15, 2011 Share Posted October 15, 2011 Well I thought I was. I am using Visual Basic 10 or "Express". Is that going to be a problem? VB10 will not allow me to compile that modCombat.bas file and I don't see a main.cpp.I have a background in C++. Link to comment Share on other sites More sharing options...
RyokuHasu Posted October 15, 2011 Author Share Posted October 15, 2011 /facepalmyou can ONLY use VB6 enterprise or professional, no other programs will work.ALSO, you need to open client/server .vbp and not the .bas files. Link to comment Share on other sites More sharing options...
Tekniko Posted October 15, 2011 Share Posted October 15, 2011 Ahh, okay, I will have to ask around for a copy of that then. I don't think it's free from Microsoft. Link to comment Share on other sites More sharing options...
erkro1 Posted October 15, 2011 Share Posted October 15, 2011 @Tekniko:> Ahh, okay, I will have to ask around for a copy of that then. I don't think it's free from Microsoft.Just torrent it. Link to comment Share on other sites More sharing options...
Tekniko Posted October 15, 2011 Share Posted October 15, 2011 Well I installed VB6 with a lot of problems. Probably has to do with Windows 7. I got the program up and running though and the lay out is much nicer. I can access all the source files and I can actually view the forms for server and client lol.Gonna install this on my XP machine and see if that fixes the registry/runtime errors. Link to comment Share on other sites More sharing options...
RyokuHasu Posted October 15, 2011 Author Share Posted October 15, 2011 EO was designed on windows 7 OS, all my tuts where designed on windows 7, Win7 isn't the problem XDhere, read this:http://www.touchofdeathforums.com/smf/index.php/topic,68399.msg736833.html#msg736833It's a tut on installing VB6 Link to comment Share on other sites More sharing options...
Tekniko Posted October 15, 2011 Share Posted October 15, 2011 Ugh, I couldn't get VB6 to install on XP! And thanks for the link! Sometimes I am too arrogant to read tutorials lol. But all is working now (on Win7). Back to editing, learning, and making mistakes.Thanks Link to comment Share on other sites More sharing options...
xppxdd Posted October 25, 2011 Share Posted October 25, 2011 Thnx! helped :D Link to comment Share on other sites More sharing options...
quintensky Posted May 17, 2012 Share Posted May 17, 2012 didn"t work for me :( Link to comment Share on other sites More sharing options...
erkro1 Posted May 17, 2012 Share Posted May 17, 2012 @quintensky:> didn"t work for me :(Then you did something wrong as it is working for others. Link to comment Share on other sites More sharing options...
quintensky Posted May 18, 2012 Share Posted May 18, 2012 @Ryoku:> in "CanPlayerAttackNpc", above "CanPlayerAttackNpc = True" add> > in "CanPlayerAttackPlayer", above "CanPlayerAttackPlayer = True" addi think i put it Under it :P ill just try again Link to comment Share on other sites More sharing options...
quintensky Posted May 18, 2012 Share Posted May 18, 2012 that did the trick :) Link to comment Share on other sites More sharing options...
willunited Posted August 4, 2012 Share Posted August 4, 2012 Doesnt Work here :S 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