Jump to content
  • 0

[request] Some Items


Question

Posted

hello maxcheaters! i want to make some kind of items and i need your help!

 

1. Hero Custom Item

i want to make item like this http://www.maxcheaters.com/forum/index.php?topic=34266.0

but hero must be only 24 hour! it's possible?

 

2.Quick Healing Potion

how to change Quick Healing Potion HP Regeneration Power Like Mana Potion?

for example:

QuickHealingPotionPower = 500

 

 

sorry for my english

5 answers to this question

Recommended Posts

  • 0
Posted

1. Hero custom item you will have to add it your core what pack you use?

 

2. Quick healing potion you got a skill for that item, look inside stats folder.

  • 0
Posted

So if you got the source you will have to import it to eclipse and add it manually :)

 

Thats why I always say if you do want to open your own server you must have basic knowledge or be able to pay to do the work you want.

  • 0
Posted

i think i must take formula from admin command //heroget

 

    public void addHero(L2PcInstance client, int days)
    {
        Calendar t = Calendar.getInstance();
        t.add(10, 24 * days);
        heroes.put(Integer.valueOf(client.getObjectId()), Long.valueOf(t.getTimeInMillis()));
        client.broadcastPacket(new SocialAction(client.getObjectId(), 16));
        onEnterWorld(client);
        saveHeroes();
    }

    public boolean timeIsExpired(int id)
    {
        if(!hasAccess(id))
            return true;
        long target = ((Long)heroes.get(Integer.valueOf(id))).longValue();
        Calendar now = Calendar.getInstance();
        if(target - now.getTimeInMillis() > 0L)
        {
            return false;
        } else
        {
            removeHero(id);
            return true;
        }
    }

 

if you can please help to adapt to hero custom item...

 

  • 0
Posted

You must create item handler. I don`t have la2base interlude source.

 

And I am sorry I busy with archid. We gonna launch premium this month.

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...