Jump to content

Welcome to M2Tec

The global development community for Metin2

Knowledge is Freedom

Feel free to share your ideas, your knowledge in our community, your community.

Follow the Rules

Respect the rules of the community, the users and their administrative team. Let's be friends!
M2Tec - Community Maintenance Read more... √ó
ymirwork

guide unlimited Arrow System

Recommended Posts

Posted (edited)

Hi there,

 

As allways, i was search for some nice and free unlimited arrow system. But i can't find any full/complete/unbuged, so i make one! ūüėõ

I create this today and until now i dont find any bug. So if u find any, let me know maybe we can solve it.

 

Here u go. Enjoy!

 

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

08010.tga

 

edit:  code

 

 

 

// Srv/source
#char_battle.cpp

// Search:
                            m_me->UseArrow(pkArrow, 1);

// replace:
                            if (pkArrow->GetVnum() == 8010){
                                m_me->UseArrow(pkArrow, 0);
                            }else{
                                m_me->UseArrow(pkArrow, 1); 
                            }
                            
                            
// Search 5x:
                                m_me->UseArrow(pkArrow, iUseArrow);
                                
// replace 5x:                                
                                m_me->ComputeSkill(m_bType, pkVictim);
                                if (pkArrow->GetVnum() == 8010){
                                    m_me->UseArrow(pkArrow, 0);
                                }else{
                                    m_me->UseArrow(pkArrow, iUseArrow);
                                }
                                
#Client / Locale
// item_name.txt
8010    you_item_name

// item_proto.txt
8010¬†¬† ¬†√Ä√ļ√Ā√Ė√ą¬≠¬Ľ√¨¬†¬† ¬†ITEM_WEAPON¬†¬† ¬†WEAPON_ARROW¬†¬† ¬†1¬†¬† ¬†ANTI_WOLFMAN | ANTI_MUDANG | ANTI_SURA | ANTI_MUSA¬†¬† ¬†ITEM_SLOW_QUERY | ITEM_STACKABLE¬†¬† ¬†WEAR_ARROW¬†¬† ¬†NONE¬†¬† ¬†12¬†¬† ¬†12¬†¬† ¬†0¬†¬† ¬†0¬†¬† ¬†0¬†¬† ¬†REAL_TIME¬†¬† ¬†604800¬†¬† ¬†LIMIT_NONE¬†¬† ¬†0¬†¬† ¬†APPLY_NONE¬†¬† ¬†0¬†¬† ¬†APPLY_NONE¬†¬† ¬†0¬†¬† ¬†APPLY_NONE¬†¬† ¬†0¬†¬† ¬†0¬†¬† ¬†4¬†¬† ¬†0¬†¬† ¬†25¬†¬† ¬†0¬†¬† ¬†0¬†¬† ¬†0¬†¬† ¬†0¬†¬† ¬†0

// item_list.txt
8010    WEAPON    icon/item/08010.tga


#Client root/uitooltip.py

// Search:
            [...]
            self.AppendWearableInformation()
            self.__AppendMetinSlotInfo(metinSlot)

        ### Armor ###
        elif item.ITEM_TYPE_ARMOR == itemType:
            self.__AppendLimitInformation()

¬†¬† ¬†¬†¬† ¬†¬†¬† ¬†## ¬Ļ√¶¬ĺ√ģ¬∑√ā
            
            [...]
            
            
// Replace:

            self.AppendWearableInformation()
            if itemVnum >= 8010 and itemVnum <= 8010: // if u add more items with other time change in here too
                bHasRealtimeFlag = 0
                for i in xrange(item.LIMIT_MAX_NUM):
                    (limitType, limitValue) = item.GetLimit(i)
                    if item.LIMIT_REAL_TIME == limitType:
                        bHasRealtimeFlag = 1
                
                if bHasRealtimeFlag == 1:
                    self.AppendMallItemLastTime(metinSlot[0])
            else:
                self.__AppendMetinSlotInfo(metinSlot)

        ### Armor ###
        elif item.ITEM_TYPE_ARMOR == itemType:
            self.__AppendLimitInformation()

¬†¬† ¬†¬†¬† ¬†¬†¬† ¬†## ¬Ļ√¶¬ĺ√ģ¬∑√ā
            

 

Edited by ymirwork
  • Like 15
  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks for the share! So great that you don't need to buy a full inventory of arrows with this system! 

Share this post


Link to post
Share on other sites

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

√ó