dannyboy Posted December 10, 2009 Author Share Posted December 10, 2009 How do i actually make my character fight? Link to comment Share on other sites More sharing options...
SHADERS Posted December 10, 2009 Share Posted December 10, 2009 your luckey. i just refreshed my page. lol. so anyways. defender requested for a script and sb soul and mikey replyed to it.its a script that goes over the on attack sub command@[SB:> Soul link=topic=54976.msg583194#msg583194 date=1260229266]> Bleh, that won't work Mikey, that means it lasts like .00001 seconds.> > Here's one that lasts 1 second.> > ```> ' Executes when a player presses the CONTROL key.> Sub OnAttack(Index, Damage)> Dim Target> > If Int(Damage) > 0 Then> If Int(GetPlayerTarget(Index)) > 0 Then> Target = GetPlayerTarget(Index)> Call DamagePlayer(Index, Target, Damage)> Else> Target = GetPlayerTargetNpc(Index)> Call DamageNPC(Index, Target, Damage)> End If> End If> Call SetTimer("SpriteReturn " & index & ", " & GetPlayerSprite(index), 1000)> Select Case GetPlayerSprite(index)> Case 1> Call SetPlayerSprite(index, 10)> Case 2> Call SetPlayerSprite(index, 20)> End Select> Call SendPlayerData(index)> End Sub> > Sub OnArrowHit(Index, Damage)> Dim Target> > If Int(Damage) > 0 Then> If Int(GetPlayerTarget(Index)) > 0 Then> Target = GetPlayerTarget(Index)> Call DamagePlayer(Index, Target, Damage)> Else> Target = GetPlayerTargetNpc(Index)> Call DamageNPC(Index, Target, Damage)> End If> End If> Call SetTimer("SpriteReturn " & index & ", " & GetPlayerSprite(index), 1000)> Select Case GetPlayerSprite(index)> Case 1> Call SetPlayerSprite(index, 10)> Case 2> Call SetPlayerSprite(index, 20)> End Select> Call SendPlayerData(index)> End Sub> > ```> Adding more, just add a new case.> > Like if the player sprite is 10, and you want to change it to 50, then do this:> > Case 10> Call SetPlayerSprite(index, 50)> > Before the End Select> > Bottom of main> ```> Sub SpriteReturn(index, Sprite)> Call SetPlayerSprite(index, Sprite)> Call SendPlayerData(index)> Call RemoveTimer("SpriteReturn " & index & ", " & GetPlayerSprite(index))> End Sub> > ```all you have to do is say that if your sprite number is 1, and you want it to be 2, you just switch the numbers of change sprite.all it does is give you battle animations like a slash down.http://www.touchofdeathforums.com/smf/index.php/topic,54976.0.html Link to comment Share on other sites More sharing options...
dannyboy Posted December 10, 2009 Author Share Posted December 10, 2009 Where exactly can I find this code, I'm new to this eclipse thing.so there isn't actually some setting I can use to kill a NPC, what are the attack keys etc? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted December 10, 2009 Share Posted December 10, 2009 CTRL is to attack. Link to comment Share on other sites More sharing options...
blackkat9666 Posted December 10, 2009 Share Posted December 10, 2009 and to use a spell..well create one and learn it by making an item to learn the spell, click on the spell in the spell menu, target the npc you want to attack with the spell (if it's an attacking one) and press insert. VOILAthere are some tutorials about all the buttons somewhere, browse the forum a bit Link to comment Share on other sites More sharing options...
dannyboy Posted December 10, 2009 Author Share Posted December 10, 2009 CTRL does nothing when I'm near a NPC, it just makes my character walk on the spot, there's really no fighting goin on.. hehe Link to comment Share on other sites More sharing options...
The Oracle Posted December 10, 2009 Share Posted December 10, 2009 make sure the personality of the npc is NOT FRIENDLY. (which is the default, i believe) also, make sure all of the npc stats are greater than 1 Link to comment Share on other sites More sharing options...
Ruins of Hell Posted December 10, 2009 Share Posted December 10, 2009 @dannyboy:> CTRL does nothing when I'm near a NPC, it just makes my character walk on the spot, there's really no fighting goin on.. heheAre you facing the NPC? Link to comment Share on other sites More sharing options...
dannyboy Posted December 10, 2009 Author Share Posted December 10, 2009 Shouldnt this create an NPC i can kill?[![](http://danimg.co.cc/images/26del_tn.jpg)](http://danimg.co.cc/view-26del.jpg)Yes I am facing and touching the NPC Link to comment Share on other sites More sharing options...
blackkat9666 Posted December 11, 2009 Share Posted December 11, 2009 speed and magic are 0… Link to comment Share on other sites More sharing options...
Ruins of Hell Posted December 11, 2009 Share Posted December 11, 2009 Of course there zero… -.- That's always the default for eclipse, you can't change them :|.Please check your posts makes sense...You have to change the name to something and the Say to something. Link to comment Share on other sites More sharing options...
blackkat9666 Posted December 11, 2009 Share Posted December 11, 2009 oops sorry for my stupid useless post >.< i saw the blank name and say but was too lazy to modify my post :/ anywaystry what soul said and tell us if it finally works or not, if not, try redownloading eclipse Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2009 Share Posted December 11, 2009 Make sure you have higher attack power than the NPC's defence. Link to comment Share on other sites More sharing options...
The Oracle Posted December 11, 2009 Share Posted December 11, 2009 @Robin:> Make sure you have higher attack power than the NPC's defence.you would still attack, just it wouldn't do any damage. 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