Transformations (5165)

02/21/2010 02:26 -Shunsui-#16
Quote:
Originally Posted by .Arco View Post
No it will not work if your telling me you have errors -.-
I get the same errors,
02/21/2010 02:26 Decker_#17
Quote:
Originally Posted by .Arco View Post
I never said it would work, it was an attempt.
Well don't you think you should test codes before posting them derrrr :P
02/21/2010 02:27 glover#18
on code Arco we will be have errors becaue he assign in public void AddBuff(Buff B, Main.GameClient GC)
and before in source skills.cs we need to assign C.AddBuff(B, THIS GC but from where ?);
02/21/2010 02:27 Arcо#19
Quote:
Originally Posted by Decker_ View Post
Well don't you think you should test codes before posting them derrrr :P
Nah.
02/21/2010 02:29 Decker_#20
Quote:
Originally Posted by glover View Post
Hello coders.
Here is a simple source code to get transformation like: DivineHare, NightDevil, Robot, Water Elf.
You can get this transformation but only on your client side :confused:

Open your Characters.cs file and find:
Code:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)(B.Transform * 10000000 + Avatar * 10000 + Mesh)));
Replace this line with my source code:

Code:
            if (B.Eff == SkillsClass.ExtraEffect.Transform)
            {
                switch (B.Transform)
                {
                    case 2000:
                    case 2001:
                    case 2002:
                    case 2003:
                    case 2010:
                    case 2011:
                    case 2012:
                    case 2013:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2141000000)); /// golem
                        break;
                    case 2005:
                    case 2006:
                    case 2007:
                    case 2008:
                    case 2009:
                    case 2040:
                    case 2041:
                    case 2042:
                    case 2043:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2131000000)); /// water elf
                        break;
                    case 2020:
                    case 2021:
                    case 2022:
                    case 2023:
                    case 2024:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2071000000)); /// divine hare
                        break;
                    case 2030:
                    case 2031:
                    case 2032:
                    case 2033:
                    case 2034:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2171000000)); /// night devil
                        break;
                    default:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)(B.Transform * 10000000 + Avatar * 10000 + Mesh)));
                    break;
                }
If someone can help to make to visible this transformation for all players i will be so happy for help.

This code:
Code:
MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)(B.Transform * 10000000 + Avatar * 10000 + Mesh)));
ain't in my Character.cs, so what should I do?
02/21/2010 02:30 Arcо#21
Quote:
Originally Posted by Decker_ View Post
This code:
Code:
MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)(B.Transform * 10000000 + Avatar * 10000 + Mesh)));
ain't in my Character.cs, so what should I do?
It's there.
Search harder.
Check for hidden text.
02/21/2010 02:32 [GM]#22
all working but, lvl 4 NightDevil Don't Work why?
02/21/2010 02:33 Arcо#23
Quote:
Originally Posted by [GM] View Post
all working but, lvl 4 NightDevil Don't Work why?
Possibly wrong mesh, because as I remember all the ND's had the same mesh except for level 4.
02/21/2010 02:36 [GM]#24
Quote:
Originally Posted by .Arco View Post
Possibly wrong mesh, because as I remember all the ND's had the same mesh except for level 4.

guys here is the code iam using


Code:
  if (B.Eff == SkillsClass.ExtraEffect.Transform)
            {
                switch (B.Transform)
                {
                    case 2000:
                    case 2001:
                    case 2002:
                    case 2003:
                    case 2010:
                    case 2011:
                    case 2012:
                    case 2013:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2141000000)); /// golem
                        break;
                    case 2005:
                    case 2006:
                    case 2007:
                    case 2008:
                    case 2009:
                    case 2040:
                    case 2041:
                    case 2042:
                    case 2043:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2131000000)); /// water elf
                        break;
                    case 2020:
                    case 2021:
                    case 2022:
                    case 2023:
                    case 2024:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2071000000)); /// divine hare
                        break;
                    case 2030:
                    case 2031:
                    case 2032:
                    case 2033:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2171000000)); /// night devil
                        break;
                    default:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)(B.Transform * 10000000 + Avatar * 10000 + Mesh)));
                        break;
                }
and its working but lvl 4 ND is not so what should i add for it
02/21/2010 02:38 Decker_#25
Thanks glover, everything works ;)
02/21/2010 02:38 Arcо#26
Quote:
Originally Posted by [GM] View Post
guys here is the code iam using


Code:
  if (B.Eff == SkillsClass.ExtraEffect.Transform)
            {
                switch (B.Transform)
                {
                    case 2000:
                    case 2001:
                    case 2002:
                    case 2003:
                    case 2010:
                    case 2011:
                    case 2012:
                    case 2013:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2141000000)); /// golem
                        break;
                    case 2005:
                    case 2006:
                    case 2007:
                    case 2008:
                    case 2009:
                    case 2040:
                    case 2041:
                    case 2042:
                    case 2043:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2131000000)); /// water elf
                        break;
                    case 2020:
                    case 2021:
                    case 2022:
                    case 2023:
                    case 2024:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2071000000)); /// divine hare
                        break;
                    case 2030:
                    case 2031:
                    case 2032:
                    case 2033:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)2171000000)); /// night devil
                        break;
                    default:
                        MyClient.AddSend(Packets.Status(EntityID, Status.Mesh, (ulong)(B.Transform * 10000000 + Avatar * 10000 + Mesh)));
                        break;
                }
and its working but lvl 4 ND is not so what should i add for it
I said already, you need the level 4 mesh.

Quote:
Originally Posted by Decker_ View Post
Thanks glover, everything works ;)
Nope.
02/21/2010 02:39 glover#27
ND level4 work i forget last lvl check look at first post i repaired it
02/21/2010 02:41 Arcо#28
Quote:
Originally Posted by [GM] View Post
and how can i get it :confused:
Recheck glover's first post.
02/21/2010 02:45 [GM]#29
worked ty
02/21/2010 02:49 glover#30
I still dont know hot to make it visible for all players ^^
How to fill variable to C.AddBuff(B, HERE); in skills.cs