shonist Posted February 13, 2011 Author Share Posted February 13, 2011 Well hello everybody ^^ !first i have to say .. I Speak spnish lol XD :P so.. pls try to understand me ^^im new in this type of games. and.. when i start.. i make the game.. UNTARGET .. the targen when i spell a cast… so.. you click de npc or user.. CAST the speell.. and then.. you have to click again :Di wanna this .. and i have this buut.. i wanna to UNDRAW the target.bmp.. because. you cast the spell... in the chat say : "you dont have a target" buut.. the user cant know that cause the .BMP .. still drawed on the CHAR... i think its not hard understanding :S .. thanks :D Link to comment Share on other sites More sharing options...
JR_Ultimate Posted February 14, 2011 Share Posted February 14, 2011 Yes it really is hard to understand it..But I think you misunderstand the sentence 'You don't have a target'. It simply means you didn't click on the monster to attack. It doesn't have anything to do with the .bmp Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 lol. .. i guess i wrote bad (N) xDD…emm.. how can i tell you.. mm know you a CODE LINE to undraw de .bmp¿? Link to comment Share on other sites More sharing options...
iSKweek Posted February 14, 2011 Share Posted February 14, 2011 As in you don't want the target.bmp to appear when an npc or player is targeted? Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 noonno… ... its VERY HARD WHEN YOU DONT SPEAK THE LANGUAGE XDDD !!mi server :YOU CLICK TARGET.-.-You CAST SPELLTARGET = NONEBMP = TRUE..................................... this is okeey :D I want thiis.. .after you CAST.. the target LOST... disspearxDDDlol this is hard emm..I wantthe bmp = falseSOO.. when you click de NPC OR USER.. the BMP appears.. and then when you cast the spell disapear ^^ Link to comment Share on other sites More sharing options...
iSKweek Posted February 14, 2011 Share Posted February 14, 2011 A spell that can only be used once?I don't know if it will help, but maybe try typing you question in your native language then using google translate and pasting the english translation here. Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 lool… the spell can be used once only after you click target...its easyCLICK... SPELL CLICK SPELL CLICK SPELLin the default game is : CLICK SPELL SPELL SPELL SPELL Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 Yo quiero que al lanzar un hechizo, El objetivo desaparezca…cada vez que quieras usar un spell.. tenes que clickear el objetivo Link to comment Share on other sites More sharing options...
iSKweek Posted February 14, 2011 Share Posted February 14, 2011 I meant paste the translation here >.> Link to comment Share on other sites More sharing options...
evilbunnie Posted February 14, 2011 Share Posted February 14, 2011 Do you mean that it pops up with that red bar for a short period below the player even if the player has no target? Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 oh my god i dont undeseran faqin nothing xDDDDDDDDDDDDDDDDin my server.. when you atack with spells.. the target LOST… then you have to click AGAIN to cast other skills...but when you cast the spell the TARGET " DISSAPEAR" = ( THIS IS OKEY) BUT.. THE BMP. DONT DISAPEAR Link to comment Share on other sites More sharing options...
iSKweek Posted February 14, 2011 Share Posted February 14, 2011 Ok, I finally understand LOL.Have you edited the source at all? Because I just checked this on my own engine and it keeps the .bmp there, but the npc is still the target. I will try to find the code that handles this for you though.EDIT:I *think* I have found the code that handles targeting if the NPC is still alive after the spell has been cast.Look for```' Set the NPC target to the player MapNpc(mapNum).Npc(mapNpcNum).targetType = 1 ' player MapNpc(mapNum).Npc(mapNpcNum).target = attacker```in modCombat, Sub PlayerAttackNpc. Make sure it says that.Sorry if this isn't the code, I am rather drunk and tired haha. Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 emm.. im using eclipse origins 1.5 i guess..emmi cant find that code : / yeah i understand you …but its not only with the npcs.. with user too :B... emm rigth.. when i cast spell the bmp keep drawed.. and i wanna to erase this .bmp when i cast the spell ^^go to rest man :D ... i hope you enjoy the party (? xD Link to comment Share on other sites More sharing options...
iSKweek Posted February 14, 2011 Share Posted February 14, 2011 I am busy doing stuff, so no sleep ;POk, so you want to get rid of the bmp? As in make it so the NPC/Player isn't targeted anymore?Add in the code I posted above, but change it to```' Remove target MapNpc(mapNum).Npc(mapNpcNum).targetType = TARGET_TYPE_NONE MapNpc(mapNum).Npc(mapNpcNum).target = 0```Give that a shot and let me know if it works, I am just working with what I know at the moment. Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 i ahve this :B.. i have this in the sub cast spell. ^^so.. the target GET OUT.. buuut.. the bmp still there u.u… in the console shows : "dont target " but in the screen i see tyhe BMP Link to comment Share on other sites More sharing options...
iSKweek Posted February 14, 2011 Share Posted February 14, 2011 Do you have it in the playerattacknpc sub?I am going to sleep now, I will try to help more tomorrow, or someone else might be able to solve it for you. Link to comment Share on other sites More sharing options...
shonist Posted February 14, 2011 Author Share Posted February 14, 2011 i can do nothing.. soo.. this line fou post here… make the target = 0... i already have this u.u....oh i have 1 idea.. :B when you click a npc already targeted.. the .bmp turns gray... where is the line who make this???cause i can make the server when you cast spell the bmp turn gray. this gonna work u.u Link to comment Share on other sites More sharing options...
iSKweek Posted February 15, 2011 Share Posted February 15, 2011 Well it would be a check some where, probably in bltTarget. I cant have a look now cos I'm not on my laptop, but that should be a good place to start looking. Link to comment Share on other sites More sharing options...
shonist Posted February 15, 2011 Author Share Posted February 15, 2011 i look the blttarget a lot of time xDD :B.. Link to comment Share on other sites More sharing options...
mitlark Posted February 15, 2011 Share Posted February 15, 2011 The problem with that code is that it's not erasing player's target, instead is making NPC to forget his own target.–~~--Look for this in modCombat:```TempPlayer(I).target = 0TempPlayer(I).targetType = TARGET_TYPE_NONESendTarget I```If you mimic that stuff, the player target will be reset when you do anything. Just remember to replace "I" (without quotes) by the player index, I don't know, probably it will be just "index".Good luck,L'ark Mitsinikos Link to comment Share on other sites More sharing options...
iSKweek Posted February 15, 2011 Share Posted February 15, 2011 Crap, you're right.Sorry about that shonist, use that code instead. Link to comment Share on other sites More sharing options...
shonist Posted February 16, 2011 Author Share Posted February 16, 2011 ahahah YEAAAAAAAAAAAAAAAH !!i dont have this SENDTARGET(INDEX) jajaaj lol:D thanks man.. now the .bmp dissapear ^^ISwekkthanks for all your help too ^^ :D you are good people 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