[Help]Transform Players into mobs

02/20/2010 06:08 DvD4#1
i'm trying to make an npc which transform players into mobs

like this 1
PHP Code:
                                    if (Control == 11)
                                    {
                                        if (
GC.MyChar.Body == 2001//SmallFemale
                                        
{
                                            
GC.MyChar.Body 900;
                                            
GC.MyChar.EquipStats(9false);
                                            
GC.MyChar.Inventory.Add(GC.MyChar.Equips.Get(9));
                                            
GC.MyChar.Equips.UnEquip(9GC.MyChar);
                                            
GC.AddSend(Packets.NPCSay("Here you are."));
                                            
GC.AddSend(Packets.NPCLink("Thanks."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    } 
but player always disappear

if any 1 can help me with this i would be grateful :confused:
02/20/2010 06:12 Arcо#2
Quote:
Originally Posted by DvD4 View Post
i'm trying to make an npc which transform players into mobs

like this 1
PHP Code:
                                    if (Control == 11)
                                    {
                                        if (
GC.MyChar.Body == 2001//SmallFemale
                                        
{
                                            
GC.MyChar.Body 900;
                                            
GC.MyChar.EquipStats(9false);
                                            
GC.MyChar.Inventory.Add(GC.MyChar.Equips.Get(9));
                                            
GC.MyChar.Equips.UnEquip(9GC.MyChar);
                                            
GC.AddSend(Packets.NPCSay("Here you are."));
                                            
GC.AddSend(Packets.NPCLink("Thanks."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    } 
but player always disappear

if any 1 can help me with this i would be grateful :confused:
Make sure that ALL the gears are unequipped when using the npc.
02/20/2010 06:23 -Shunsui-#3
Yeah and try adding the GC.MyChar.Body = 900; After the codes for Unequip like
Code:
GC.MyChar.EquipStats(9, false); 
GC.MyChar.Inventory.Add(GC.MyChar.Equips.Get(9)); 
GC.MyChar.Equips.UnEquip(9, GC.MyChar);
So it removes it first
02/20/2010 06:43 DvD4#4
yea i got it thx but still a problem cozz i want ppl to transform with their armor on :(
02/20/2010 06:57 -Shunsui-#5
Quote:
Originally Posted by DvD4 View Post
yea i got it thx but still a problem cozz i want ppl to transform with their armor on :(
do the UnequipCode then the TransforCode then Make it Equip back again ?
02/20/2010 07:16 DvD4#6
Quote:
Originally Posted by -Shunsui- View Post
do the UnequipCode then the TransforCode then Make it Equip back again ?
#Edit
i got it working i can now unequip the armor but i got 2 things

1:armor move to inventory but when i try to reequip it disappear
2:if i reequip any armor char will disappear again
02/20/2010 13:45 PeTe Ninja#7
hmm i was creating skills for lotf 5017 and we had to do somethingwhen we were transformiing people

so we did like...

model+transform so your new model is a big number..and it worked with armor also... though that was the old lotf