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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock