Jump to content

Recommended Posts

Posted

Χερετώ Για άλλη μια φορά....Σήμερα θας δώσω ενα Share το οποίο πιστεύω να σας αρέσει...Τι είναι αυτο???

Οταν κάποιος πάρει ενα PVP/PK  Τότε Κερδίζει αυτόματα ενα Coin...Ανάλογα η PVP η PK...Θεωρώ οτι με αυτα τα Coin Θα μπορούσατε Να τα χρισιμοποίησετε για να αγοράσουν οι Players πράγματα απο το GmShop Η οτι δίποτε θέλετε εσεις αρκεί να χρισιμοποιήσετε τα Id Τον Item Που θα βάλετε Ας Μην τρώω αλλο τον χρόνο σας Ορίστε Το Share:)...

 

 

Αυτο το Κομμάτι μου το είπε ο kr1n0s* Να το γράψω τον ευχαριστώ για την υπενθίμιση!!!:

 

Κατι που θα πρέπει να ξέρετε αν θέλετε να δίνει κάτι αλλο αντι για τα Coins πχ Ancient Adena..θα περάσετε μόνο τον java code απλα εκεί που έχει τα id 9990 και 9991 θα βάλετε οτι id θέλετε και δεν θα συνεχίσετε μέχρι το τέλος μόνο μεχρι τα java!!!

 

Πρώτα Απο όλα Πρέπει να πάμε στο :

net.sf.l2j.gameserver.model.actor.instance.L2Pcinstance.java

 

Ανοίκτε το αρχείο και ψάξτε μέσα σε αυτό το :

public void increasePvpKills()
   {
       // Add karma to attacker and increase its PK counter
       setPvpKills(getPvpKills() + 1);

 

Μόλις το βρήτε κάντε Add Αυτό εδώ :

+    
   + // Give x y for a pvp kill
   +		addItem("Loot", 9991, 1, this, true);
   +	 	sendMessage("You won a PVP Coin for a pvp kill!");

Και σβήστε τα "+"

 

Θα πρέπει να γίνει έτσι:

5spog.jpg

Μόλις τελειώσετε στο ίδιο αρχείο βρείτε το :

 

// Add karma to attacker and increase its PK counter
       setPkKills(getPkKills() + 1);
       setKarma(getKarma() + newKarma);

 

Μόλις το βρήτε κάντε Add Αυτό εδώ :

+ 
      +// Give x y for a pk kill
      +	addItem("Loot", 9990, 1, this, true);
      +	sendMessage("You won a PK Coin for a pk kill!");

Και σβήστε τα "+"

 

Θα πρέπει να γίνει έτσι:

264km5u.jpg

 

Τώρα απλά κάντε Save κλείστε το και μετά Compile...

 

Το επόμενω βήμα είναι να πάμε στο datapack στα sql του και να ανοίξουμε το αρχείο etcitem.sql...

 

Θα πάμε στο τέλος του αρχείου και θα κάνουμε add αυτα εδώ

('9091','PVP Coin','false','none','0','stackable','steel','none','-1','0','0','false','false','false','false','InterludeItem','none'),
('9090','PK Coin','false','none','0','stackable','steel','none','-1','0','0','false','false','false','false','InterludeItem','none');

 

Θα πρέπει να γίνει έτσι!!

2zss976.jpg

 

Και μετά θα κάνουμε save και execute το αρχείο etcitem.sql και θα είμαστε εντάξει!!!

 

Αν κάποιος δεν θέλει να τα περάσει και να τα έχει μέσα στα sql του μόνιμα ας περάσει αυτο Εδώ

 

Και τώρα το τελικό βήμα Θα χρισιμοποιήσουμε το File edit και θα πάμε και θα ανοίξουμε το αρχείο etcitemgrp

 

Θα πάμε στο τέλος του αρχείου και θα προσθέσουμε αυτα τα 2 :

2	9990	0	0	2	5	0	dropitems.drop_sack_m00			dropitemstex.drop_sack_t00			icon.etc_magic_coin_blood_i00					100	0	8	0	0	1		1		ItemSound.itemdrop_sack		2	0	0

2	9991	0	0	2	5	0	dropitems.drop_sack_m00			dropitemstex.drop_sack_t00			icon.etc_magic_coin_silver_i00					100	0	8	0	0	1		1		ItemSound.itemdrop_sack		2	0	0

 

Κάντε Save and encrypt και διαλέξτε 413....

 

Μετά θα πάμε και θα ανοίξουμε το αρχείο itemname-e

Θα πάμε στο τέλος του αρχείου και θα προσθέσουμε αυτα τα 2 :

9990	PK Coins			-1					0	0	0	

9991	PVP Coins			-1					0	0	0	

Κάντε Save and encrypt και διαλέξτε 413....

 

(*Υ.Σ Αν κάποιος  θέλει έτοιμα τα 2 αρχεία (itemname-e,etcitemgrp) Μπορεί να τα κατεβάσει απο   Εδώ

 

Τέλος Αυτό ηταν Για τοιχόν Απορίες απλά ρωτίστε

 

Τα Id των Item είναι :

PK COINS:9990
PVP COINS:9991

 

Δεν ήξερα που να βάλω ακριβώς αυτό το Share Ελπίζω να είναι εντάξει εδώ.....Αν δεν είναι απλα κάντε το Delete... :)

Best Regards,

 

Papaditsa!!

Posted
ayto isxiei se ola ta client pantos :)

Sunfwnw me thn moni diafora oti den tha tous kanoun ta arxeia sql kai itemname-e,etcitemgrp pou exw anebasei egw!!! Gt auta einai gia c6!! An omws to kanoun xeirokinita opws dixnw tha einai mia xara:)

Posted

Signomi re paides...alla afto den exei ginei share kai sto english h sto "java dev" section?

 

den ksero tsakalaki an exei ginei alla kai na egine se pirakse esena pou ksana egine topic pou einai poli analitika!!!i alli kanoun 100000 npc (gmshop) kai lete ta idia logia, kai se pirakse pou ekane o allos share&guide me java code!!

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.




  • Posts

    • SocNet is looking for new suppliers!  — Reddit accounts with karma  — LinkedIn accounts with real connections  Message us or contact support — let’s discuss terms!  We’re also open to other partnership opportunities.   Our Online Store Offers: Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, Emails (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass Additional Services: Telegram Stars, Proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, etc.), VDS/RDP Servers   SMM Panel Services: Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, TrustPilot, Apple Music, Tripadvisor, Snapchat, and more. Promo code for store discount: PARTNER8 (8% off)  Get $1 trial balance for the SMM Panel:  Submit a ticket titled “Get Trial Bonus” via our website (Support)  ➡ Go to the SMM Panel (clickable) or contact us through the bot    Our Key Products:  Online Store: Click  Telegram Shop Bot: Click   SMM Panel: Click    Payments accepted: Bank cards · Crypto · Other popular methods   Returning buyers receive extra discounts and promo codes!   Support:  ➡ Telegram: https://t.me/solomon_bog   ➡ Discord: https://discord.gg/y9AStFFsrh   ➡ WhatsApp: https://wa.me/79051904467   ➡ Email: solomonbog@socnet.store    ➡ Telegram Channel: https://t.me/accsforyou_shop  You can also use these contacts to:  — Discuss bulk orders  — Form partnerships (Current partners: https://socnet.bgng.io/partners )  — Become our supplier SocNet — your digital goods & subscription store
    • Hello everyone, I could really use some of your knowledge regarding client-side editing. I'm not trying to do anything crazy, just a few small modifications here and there, like adding custom items or modifying how the glow effect appears on lower grade items. The issue is, I'm having a hard time navigating the file edits and figuring out exactly where each line needs to go. I tried using the Notepad++ method, but either it doesn't work for me, or I’m simply doing something wrong. To sum it up: when I import .txt files, the file editor doesn’t allow me to save and encrypt them. And even when I try making changes via the DAT editor, the client refuses to open afterward or it still doesn't save. If anyone has any experience or insight on this, I’d really appreciate your help. Thanks in advance!
    • We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX! Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
  • 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