Jump to content

Recommended Posts

Posted

Of course. is the same thing..

It is somewhat "stupidity" in this case use "!"

I knew the meaning from that day.

In this case have to be like

if (isMageClass()) get this

else

get this.

 

But now... if a woman kiss the your upper lip, the same would you feel with a kiss on the bottom lip..

This guy rocks! :lol:

  • 2 months later...
Posted (edited)

 

This logic is kinda meh, should be opposite (remove ! and switch mage <-> fighter code place) :D

+       if (!isMageClass())
+       {
+       addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true);
+       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Fighter Tattoo.");
+       }
+       else
+       {
+       addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true);
+       sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Mage Tattoo.");
+       }

All this style coding seems suck and for me now.. haha  :happyforever:

Edited by 'Baggos'
Posted

Hello members of maxcheaters!

 

I have make this idea for my test project. It's a small code.

Example: if a player is mage or fighter in x pvp count, will get Custom Tattoo. (Fighter or Mage depending in class)!

You can choose the count of pvp and Tattoo id you want on config.

 

It's for pvp server.. with this, the pvp has more interest.

I've seen in l2mora, giving an item pvp in every pvp, for to get these tattoos .. now instead be given an item pvp in each pvp, given once, with the count of pvp want.

 

I think it would be best if given like this way. To have importance the pvps and trade.

For example, players will trade, since it does not exist in the shop, and will go for pvp, instead of waiting for the vote reward!

 

Config.properties

# Custom Tattoo Fighter/Mage.
# Default: False & 100 Pvp kills.

RewardTattooEnable = false
# Fighter Tattoo
FighterTattooCount = 1
FighterTattooID = 492
# Mage Tattoo.
MageTattooCount = 1
MageTattooID = 493
# Pvp Kills Count.
PvpKillsCount = 100

An example for for stats on tattoos:

Data/stats/armor/0400-0499.xml

<item id='492' name="Tattoo of Soul">
  <for>
    <set val='500' order='0x010' stat='pAtk'/>
    <set val='300' order='0x010' stat='pAtkSpd'/>
    <set val='15' order='0x010' stat='rCrit'/>
    <add val='100' order='0x10' stat='pDef'/>
    <add val='50' order='0x010' stat='runSpd'/>
    <add val='100' order='0x10' stat='mDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>
<item id='493' name="Tattoo of Avadon">
  <for>
    <set val='500' order='0x010' stat='mAtk'/>
    <set val='300' order='0x010' stat='mAtkSpd'/>
    <set val='15' order='0x010' stat='mCrit'/>
    <add val='50' order='0x010' stat='runSpd'/>
    <add val='100' order='0x10' stat='pDef'/>
    <add val='100' order='0x10' stat='mDef'/>
    <enchant val='0' order='0x0C' stat='pDef'/>
  </for>
</item>

NOTE: On your Lineage 2 system find armorgrp.dat and do there a edit. (With L2FileEdit). Find the tattoo's name and replace "Tattoo of soul with Fighter Tattoo" and "Tattoo of Avadon with Mage Tattoo".

 

http://pastebin.com/1e8SYXrL

Seriously we are in 2015 and you share a code that already being shared 50000 times and can be made by most most noobs ?... there should be rule about easy shared codes...

really...

Posted

Seriously we are in 2015 and you share a code that already being shared 50000 times and can be made by most most noobs ?... there should be rule about easy shared codes...

really...

It is 50001 times shared...

Posted

Really i haven't seen more idiot person than you :3 

 

I wish Xdem was here to laugh on you...

you not only share bullshit but you are silly as well.. keep working :3 

Yes it is..

Posted (edited)

adding in my code so that this

public void increasePvpKills(L2Character target)
    {
        if ((!RankPvpSystemConfig.LEGAL_COUNTER_ALTT_ENABLED && (target instanceof L2PcInstance) && AntiFeedManager.getInstance().check(this, target)) || (((target instanceof L2PcInstance)) && AntiFeedManager.getInstance().check(this, target)))
        {
            // Add karma to attacker and increase its PK counter
            setPvpKills(getPvpKills() + 1);
            L2MultiFunctionZone.givereward(this);
            // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
            sendPacket(new UserInfo(this));
            sendPacket(new ExBrExtraUserInfo(this));
        }
        else if ((isInTownWarEvent() && Config.TW_GIVE_PVP_AND_PK_POINTS))
        {
            // Add karma to attacker and increase its PK counter
            setPvpKills(getPvpKills() + 1);
            
            // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
            sendPacket(new UserInfo(this));
            sendPacket(new ExBrExtraUserInfo(this));
        }
    }
Edited by nery

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
Reply to this topic...

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