[Release] Reflect

01/09/2009 21:48 Seimorpoop#1
#Deleted
01/10/2009 02:59 DungMaster#2
Quote:
Originally Posted by Seimorpoop View Post
Im releasing half of my reflect code i dont want to release the whole thing because then it would be too easy for you guys so figure out the rest yourselves but with this code it will reflect only melee and archer damage. Not ss or magic attacks or anything like that.

This code also has fixed archer damage. For those of you who dont have luckytime in your source just erase the pieces about luckytime or add it. To learn reflect just type /skill 3060 0. thats it any problems just tell me

1.in the Character.cs search for

2. Copy that whole section and replace it with
3. In your database.cs search
Under that add

Say thanks :)

Really, Great release =],but you need to edit the code, because it has some parts which contains some things that other people do not have... Type : if (LocMap != World.PKCity)
01/10/2009 03:16 Seimorpoop#3
thx
01/10/2009 08:41 kinshi88#4
Looks to be taken from the source I released, rofl =P
01/10/2009 09:52 _Emme_#5
Kinshi, I seriously wouldnt doubt that. People nowadays huh...

Anyways, why not fix up the code? Do like this:

At the start, case 74, do like:
if (MyChar.Skills.Contains(ReflectSkillID))
MyChar.Reflect = true;

Then at attack part where it caculate and sets damage.

If (MyChar.Reflect)
if(Other.ChanceSuccess(AnyChanceSuccessHere)
{
if Attacker.CurHP >= Attacker.Damage
Attacker.CurHP -= Attacker.Damage;
else
{
Attacker.CurHP = 0;
Attacker.Die();
}


SendHPPacket;
SendReflectEffect ( Tao, I know, not the real way =P )
}


Something like that?<.<
01/10/2009 10:13 Kital82#6
What's the reflect effect for sendpacket.etc.... ??
01/10/2009 15:46 sherwin9#7
It's already in the code...
01/10/2009 18:54 Seimorpoop#8
um dont criticize it cuz i did fix it up kinshi, i took ur reflect and fixed it so maybe u should compare the 2? urs after u reflect once u will reflect for the rest of the time that u r online, mine it actually works, and in urs if the attacker gets reflected till he has no hp both chars die, mine thats fixed so dont try to say its not a good code cuz it is it works perfect i just didnt release the rest of it cuz then that would b way too easy for everyone, and on my source it reflects every type of attack including tao, but as i said im not going to release that. For you guys i dont get wat the point is of going around and criticizing everyones releases and posts hows that supposed to help anyone? Maybe you should test out this release and if it doesnt work then u can come back and say oh it sucks but otherwise if u dont know then dont say anything
01/10/2009 20:30 kinshi88#9
Quote:
Originally Posted by EmmeTheCoder View Post
Kinshi, I seriously wouldnt doubt that. People nowadays huh...
Haha yeah, and whats even more funny is that the Reflect I made sucks =P
01/10/2009 21:21 damianpesta#10
Quote:
Originally Posted by kinshi88 View Post
Haha yeah, and whats even more funny is that the Reflect I made sucks =P
I Guess Its only Reflect EFFECT , not an fully working Reflect ... He didnt even check if This Reflect Actually Reflects Back the Damage Someone gives... Pointless thread
01/11/2009 11:38 Kital82#11
Quote:
Originally Posted by damianpesta View Post
I Guess Its only Reflect EFFECT , not an fully working Reflect ... He didnt even check if This Reflect Actually Reflects Back the Damage Someone gives... Pointless thread
If you edit it, you can get it working ;)
I have it working on my server.
01/11/2009 13:21 _Emme_#12
Quote:
Originally Posted by kinshi88 View Post
Haha yeah, and whats even more funny is that the Reflect I made sucks =P
I sure know that you are capable of doing a much better code than that.
01/11/2009 13:34 kinshi88#13
Quote:
Originally Posted by EmmeTheCoder View Post
I sure know that you are capable of doing a much better code than that.
I am, don't worry =P
I coded that reflect SOOO long ago!
01/11/2009 14:08 damianpesta#14
Quote:
Originally Posted by Kital82 View Post
If you edit it, you can get it working ;)
I have it working on my server.
Im sure of it lol , Only Few people there are capable of coding it and your one of them uhmmm interesting [/sarcasm]Did u even check if it gives back dmg? lol...
01/11/2009 16:43 Seimorpoop#15
yes it gives back damage y would i release a code for the reflect effect only, obviously im gonna make sure it gives back damage, and the attacked doesnt lose hp... stop making these assumptions that i dont know anything, i know somethings, try out the code ull see.