Jump to content
  • 0

how to make 3 different statuses


Question

Posted

the idea i have in my head is that a player who gets a 100pvp points gets status number1 200 pvp number 2 ant 300number 3.Every status gives player different stats like p def,mdef ant stuff like that more cp and hp mabye.an oposite of that comes with pk points but different stats.more to it i want to make the apela armoras wearable only by players who have status 3 pvp or pk.A player who has 100pvp points is granted with pvp status and cannot get status from pk points,i hope you understand what i want to do,could someone help me with this? :)

 

9 answers to this question

Recommended Posts

  • 0
Posted

so 1. wrong section

and coz i dont want to get -1 karma:

make new int and name it status, set it to 0

create method getstatus and setstatus

in setstatus make something like:

if(activeChar.getPvpKills>100&&activeChar.getPvpKills<201)

status = 1

else if(activeChar.getPvpKills>200&&activeChar.getPvpKills<301)

status = 2

etc

in useItem add something like

if(_itemid == idofapella && activeChar.getstatus<3){

activeChar.sendMessage("You have got too low status);

return;

}

i dont really remember methods like sethp setmdef or something so look for it in the source

 

Edit:

:S i would forget, in increasepvpkills write setstatus() and also in enterworld :)

  • 0
Posted

sorry i tough it was the right section,my bad. thanks i'l try but it still sounds a bit difficult :D

ok i will write it for you.. just tell me id of that armor parts

  • 0
Posted

add this in l2pcinstance

private int status = 0;
public int getPvPStatus(){
	return status;
}
public void setPvPStatus(){
	for(int i = 5000;i>=100;i-=100)
		if(getPvpKills()>i&&getPvpKills()<(i+101)){
			status = i/100;
			break;
		}
}

i think it should work well but i didnt test it

also in useItem after

if (item.isEquipable())

{

add:

		if(_itemId == itemid &&activeChar.getPvPStatus()<3)
			break;

and in increasepvpkills in l2pcinstnace add setPvPStatus() and in enterworld, write activeChar.setPvPStatus()

 

Edit: sorry for double post, didnt see it..

  • 0
Posted

for pk status just copy what i wrote for you but with pk, like private int pkStatus = 0, getPkStatus, and setPkStatus, there you need to change getPvpKills() to getPkKills(), later just add setPkStatus to enterworld and method which is increasing pk points and its done. You can make a lot of things with that like for example players can join olympiad only if they have 2 status or more or enter custom farm zone with 3 status or using bsoe only if they have 3 status, just use your imagination and brain which is most important :)

  • 0
Posted

thanks mate. ;) i will try :D how to give someone +1 karma?

 

You have to be staff member or VIP to give karma.

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.



  • Posts

    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • 📜 • Mass PVP – Craft – Progressive Server (ITEMS, ARMOR, WEAPONS, ETC) 🕹️ • Chronicles: Lineage 2 - Interlude (C6) 🛠️ • Retail status 🕒 • Server Time: GMT -3 🏙️ • Main Town: Giran ✨ • Teleportation for all Towns, Gk Global 🛡️ • NPC BUFFER - GMSHOP B-GRADE - DONATION SHOP - AUCTION MANAGER 🐉 • Epic Bosses: Chaotic Zones 🔁 • Protection respawn: 15 seconds ⏰ • Restart Server: 05:00 AM Today 💸 • RTM allowed between players (ask Staff if in doubt) 📊 SERVER RATES: • EXP: x8 • SP: x10 • Adena: x3 • Seal Stone: x3 • Drop: x3 • Spoil: x5 • Raid EXP/SP/Drop: x3 • Premium Rates: x2 🌐 Website: https://www.l2roosters.com 💬 Discord: https://discord.gg/cUyYXrfy 🔥 Join us now and forge your legacy at Roosters Gaming!
    • Hello, lovely people, how are you? I just finished compiling the L2jFrozen project Rev: 1132 (very old). I don't mind it being too old, since the project is for me and my children. (LAN/Offline) it's not meant to be put online. I want to learn and give my children more comfort when playing. And for my part, I also experiment with the game. My problem is that I don't know much about the subject. I was able to make some basic configurations to my liking and that of my children, but it never compiles or anything like that... I would really need help from you, the community... I simply want to remove all subclass restrictions, remove the restriction on "Overlord, Warsmith, and Dark Elf subclasses with White Elves and vice versa." Thank you very much in advance! Greetings, community.
  • Topics

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