Jump to content
  • 0

[HELP]npc to polymorph


Question

Posted

gia sas paidia exo ena problima me to polymorph system exo fiaksi ta npc na ginonte kanoniki char kai to petixa to thema einai to npc otan to kano spawn kai egw eimai diagonia to npc bgeni efthia dld kitazi pros ta efthia kai mou spai ta nebra den mporo na fiakso me sosti sira ta npc paides ama xerete epi tou thematos rixte kanenan code plz o server einai IT

 

http://img576.imageshack.us/i/shot00000cd.png/

 

mou bgazi ena error edo se afton ton code pou mpeni sto L2NpcInstance.java

        _currentCollisionHeight = getTemplate().collisionHeight;
       _currentCollisionRadius = getTemplate().collisionRadius;
       
       // Velvet - MxC
       _mxcModel = MaxCheatersTable.getInstance().getModelForID(template.npcId);

       if(_mxcModel != null) // Lil Config xD
       {
        _currentCollisionHeight = CharTemplateTable.getInstance().getTemplate(_mxcModel.getClassId()).collisionHeight;
        _currentCollisionRadius = CharTemplateTable.getInstance().getTemplate(_mxcModel.getClassId()).collisionRadius;

        if(_mxcModel.getWeaponIdRH() <= 0 && _mxcModel.getWeaponIdLH() <= 0)
		{
			_mxcModel.setWeaponIdRH(template.rhand);
			_mxcModel.setWeaponIdLH(template.lhand);
		}
       }

       if (template == null)
       {
           _log.severe("No template for Npc. Please check your datapack is setup correctly.");edo mou bgazi oti einai dead code
           return;
       }

5 answers to this question

Recommended Posts

  • 0
Posted

όταν εσύ είσαι διαγώνια και το npc βγαίνει ευθεία ή όταν εσύ είσαι σε ευθεία και το npc βγαίνει διαγώνια ; :S

  • 0
Posted

Δείξε μας το έρρορ που σου βγάζει.

 

Επίσης ,απλά αν γυρίσεις προς τον τοίχο το npc θα βγει όπως το θες.

Απλά θα κοιτάς προς την αντίθετη πλευρά κάθε φορά που θες να κάνεις spawn τέτοιο npc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...