[Request]Guides

09/21/2008 15:03 glupkotrup#16
Quote:
Originally Posted by YukiXian View Post
How to fix the Stamina Bug??? When you revive someone, His/Her stamina would be 0 and stays 0 untill someone Thunder/Fire/Tornado you...
You can use /kill [player name] too :D
09/21/2008 15:29 YukiXian#17
#Edit : Fixed the Stamina Bug !!!
09/21/2008 16:00 Rechocto#18
Quote:
class Char
{
public SingleMob Guard;
}
//this is my char class
;) my summoning links the char to the mob and the mob to the char.. on GetDamage()'s else { this.owner.pet = null haha

/vanquish pet.GetDamage(200000);
Owner.LocMap != Map { GetDamage(200000); }
(then after the changing the target to the owner's target with the most HP (helps with Area Of Effect ftw.)
mobtarget == this { DMG *= 20; }

but guards are boring and used all over the place, you should change it to different mobs for different levels, able to choose which level of mob up to your current level to summon and have each mob use a different skill (buffs on owner, or attacks on targets)

thas what I did, you raise the skill through quests (once I have finished making the quests)
09/21/2008 17:31 tao4229#19
Haydz, do you have teh mob jump(For guards :x) packet?

Or just how it goes, I can code it myself if I know the outline x_x
09/21/2008 18:16 ~Yuki~#20
Just thought about one thing...
We got a Headset Proj. Site why dont we make a Lands Of The Forgotten page too?
Finally we release it on e*pvpers and everyone press thx 4 the code^^
09/21/2008 18:20 glupkotrup#21
Haha... I can make one lol... :D
09/21/2008 19:43 YukiXian#22
Quote:
Originally Posted by Rechocto View Post
;) my summoning links the char to the mob and the mob to the char.. on GetDamage()'s else { this.owner.pet = null haha

/vanquish pet.GetDamage(200000);
Owner.LocMap != Map { GetDamage(200000); }
(then after the changing the target to the owner's target with the most HP (helps with Area Of Effect ftw.)
mobtarget == this { DMG *= 20; }

but guards are boring and used all over the place, you should change it to different mobs for different levels, able to choose which level of mob up to your current level to summon and have each mob use a different skill (buffs on owner, or attacks on targets)

thas what I did, you raise the skill through quests (once I have finished making the quests)
were to add it ? Xd
09/21/2008 20:43 glupkotrup#23
In your source folder... Why everyone is expecting to get all the information they need by just typing one sentence of e*pvps?
09/22/2008 13:14 ~Yuki~#24
coz dutch ppl are dumb
09/22/2008 13:44 glupkotrup#25
Hahahahahahahahaha :D
09/22/2008 17:05 ~*NewDuuDe*~#26
Quote:
Originally Posted by lolmaster123 View Post
Just thought about one thing...
We got a Headset Proj. Site why dont we make a Lands Of The Forgotten page too?
Finally we release it on e*pvpers and everyone press thx 4 the code^^
[Only registered and activated users can see links. Click Here To Register...]
:P
09/22/2008 17:49 YukiXian#27
I request this guide : Wedding
09/22/2008 19:43 © Haydz#28
Quote:
Originally Posted by YukiXian View Post
I request this guide : Wedding
I'll do it for you... soon as i get back
09/22/2008 21:59 © Haydz#29
Okay so here goes with the guide on how to add marriage...

Okay so first your going to need the packet for the MarriageMouse...:

Code:
public static byte[] MarriageMouse(uint CharUID)
        {
            byte[] Mouse = new byte[24];
            fixed (byte* Ptr = Mouse)
            {
                *(ushort*)(Ptr + 0) = 24;
                *(ushort*)(Ptr + 2) = 1010;
                *(uint*)(Ptr + 8) = CharUID;
                *(uint*)(Ptr + 12) = 1067;
                *(uint*)(Ptr + 22) = 116;
                return Mouse;
            }
        }
Okay so assuming your using an NPC your gonna want to use Client.Send(Packets.MarriageMouse(Client.Char.UID) );
to make the mouse appear from the npc...

okay next step..
Make sure that the GetPacket function is unsafe otherwise you can use 1337 Pointers lul... e.g. public unsafe void GetPacket(byte[] Data)
sending the marriage request and accepting the marriage request is an attack type so your going to wan to search for case 1022: in the packets file and add the following code:.. (baring in mind that ive just tried and tested this in lotf cause i assume your all using it):

Code:
 if (AttackType == 8)//Marriage Proposal
                            {
                                fixed (byte* Ptr = Data)
                                {
                                    uint TargetUID = *(uint*)(Ptr + 12);
                                    Character Target = (Character)World.AllChars[TargetUID];
                                    *(uint*)(Ptr + 8) = MyChar.UID;
                                    Target.MyClient.SendPacket(Data);
                                }
                            }
Then for accepting the proposal you need below the other code :
Code:
 if (AttackType == 9)//Marriage Accept
                            {
                                fixed (byte* Ptr = Data)
                                {
                                    uint UID = *(uint*)(Ptr + 12);
                                    Character Char = (Character)World.AllChars[UID];
                                    Char.Spouse = MyChar.Name;
                                    MyChar.Spouse = Char.Name;
                                    
                                }
                            }
And if you don't have variables for spouse in lotf well im not gonna explain i made this in 5 minutes : added all the variables changed the char info and made the spouse save and load... so if you can't do that... don't even bother with a server :)
it's bad enough that your using lotf anyway. And even if your not using lotf you can adapt this code to work with any server
09/22/2008 22:01 ~Yuki~#30
Whats about summoning ? :P
Or Transforming skillz