Jump to content
  • 0

[Request] Daily status, please all good devs come here!


Question

Posted

Hello MXC!

Who can make java code for interlude, then you wrote .getstats to you show

Today [PVP] : 0 [Deaths] : 0 [PK] : 0

and...

Cancel Skill after x time you receive back your loosing buffs.

Big big thanks!!! Big big thanks!!! Big big thanks!!! Big big thanks!!!

Recommended Posts

  • 0
Posted

Hello MXC!

Who can make java code for interlude, then you wrote .getstats to you show

Today [PVP] : 0 [Deaths] : 0 [PK] : 0

and...

Cancel Skill after x time you receive back your loosing buffs.

Big big thanks!!! Big big thanks!!! Big big thanks!!! Big big thanks!!!

 

i need only this

then you wrote .getstats to you show

Today [PVP] : 0 [Deaths] : 0 [PK] : 0

please make it! :P

 

Please make it ? That's not a fucking forum that gonna give you all for nothing . Just try and if doesn't works ask us .

  • 0
Posted

i need only this

then you wrote .getstats to you show

Today [PVP] : 0 [Deaths] : 0 [PK] : 0

please make it! :P

for voiced command search in forum, inside it u need to write player.sendMessage("[PVP] :"+ 0 +"[Deaths] :"+ 0 +"[PK] :"+ 0);

Hmm about daily pvps, if server wouldnt be restarted at all or at midnight, it would be very easy, but we want high quality code so we will need to also use database.

To not touch stupid characters table, i suggest u to make new one columns: "object_id", "daily_pvp", "daily_pk", "daily_death"

Now we are in half way, lets create new class that will handle daily things.

Inside it create variables: L2PcInstance _player, int pvps, int pks, int deaths.

make such constructor (L2PcInstance player) and inside{} add _player = player, getVarsFromDatabase();

 

now inside getVars from database, u will need to SELECT field where object_id = player.getObjectId(), and set _pvps, _pks, _deaths as vars from database.

If such record doesnt exist, Insert new one and set _pvps, _pks and _deaths as 0.

 

during shutdown u will need to UPDATE every variable in database, so thats easy.

 

u will need to make 3 new methods, add pvp, add pk and add death, they will increase this variables by 1 and will be run during character gaining this points.

 

Now we are almost done, we just need to make this variables reset at midnight everyday, i suggets u to make new Thread connected with Class SchedulingPattern, inside thread u will need to reset every variable(not needed in database), so make new loop.

 

Last thing is creating in L2PcInstance new variable DailyVariables(or however u called it) _dailyvars = new DailyVariables(this);

and make new method getDailyVariables() {return _dailyvars;}

 

That was easy :) hf

 

  • 0
Posted

for voiced command search in forum, inside it u need to write player.sendMessage("[PVP] :"+ 0 +"[Deaths] :"+ 0 +"[PK] :"+ 0);

Hmm about daily pvps, if server wouldnt be restarted at all or at midnight, it would be very easy, but we want high quality code so we will need to also use database.

To not touch stupid characters table, i suggest u to make new one columns: "object_id", "daily_pvp", "daily_pk", "daily_death"

Now we are in half way, lets create new class that will handle daily things.

Inside it create variables: L2PcInstance _player, int pvps, int pks, int deaths.

make such constructor (L2PcInstance player) and inside{} add _player = player, getVarsFromDatabase();

 

now inside getVars from database, u will need to SELECT field where object_id = player.getObjectId(), and set _pvps, _pks, _deaths as vars from database.

If such record doesnt exist, Insert new one and set _pvps, _pks and _deaths as 0.

 

during shutdown u will need to UPDATE every variable in database, so thats easy.

 

u will need to make 3 new methods, add pvp, add pk and add death, they will increase this variables by 1 and will be run during character gaining this points.

 

Now we are almost done, we just need to make this variables reset at midnight everyday, i suggets u to make new Thread connected with Class SchedulingPattern, inside thread u will need to reset every variable(not needed in database), so make new loop.

 

Last thing is creating in L2PcInstance new variable DailyVariables(or however u called it) _dailyvars = new DailyVariables(this);

and make new method getDailyVariables() {return _dailyvars;}

 

That was easy :) hf

 

 

Tru'.That's the best idea . Congrats !

  • 0
Posted

but i need only today, not all pvp, death and pk. how make it, because i'm java newbie:(

Take time to read others answers, else I gonna lock that thread.

 

vampir said it all, if you got problems with his answer, then say where, he/others ppl gonna answer/explain back, until you succeed. For instant patch, make an ask on Marketplace.

  • 0
Posted

but i need only today, not all pvp, death and pk. how make it, because i'm java newbie:(

I wrote suggestions for code for daily pvps, not all :)

  • 0
Posted

okey, so then i go to l2pcinstance and i change this

private static final String UPDATE_CHARACTER

and this

private static final String RESTORE_CHARACTER

i can't create charachter, why ? i'm using frozen, and all is good, but then i remove code, and use l2pcinstance before instalation it's allright and i can create char, but then i touch

private static final String UPDATE_CHARACTER

and this

private static final String RESTORE_CHARACTER

boom, i can't create char.

please help me, and sorry for my bad english...

  • 0
Posted

why are u editing UPDATE_CHARACTER and RESTORE_CHARACTER? it is statement that connect with "characters" table, and u should create new table as i wrote :)

  • 0
Posted

because in this http://maxcheaters.com/forum/index.php?topic=238056.msg2145283#msg2145283 - pvp lord engine show

or not need this update and restore? i wanna pvp lord engine to operate without problems

-    private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,str=?,con=?,dex=?,_int=?,men=?,wit=?,face=?,hairStyle=?,hairColor=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,clanid=?,maxload=?,race=?,classid=?,deletetime=?,title=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,in_jail=?,jail_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,last_recom_date=?,lvl_joined_academy=?,apprentice=?,sponsor=?,varka_ketra_ally=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=? WHERE obj_id=?";
-    private static final String RESTORE_CHARACTER = "SELECT account_name, obj_Id, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, acc, crit, evasion, mAtk, mDef, mSpd, pAtk, pDef, pSpd, runSpd, walkSpd, str, con, dex, _int, men, wit, face, hairStyle, hairColor, sex, heading, x, y, z, movement_multiplier, attack_speed_multiplier, colRad, colHeight, exp, expBeforeDeath, sp, karma, pvpkills, pkkills, clanid, maxload, race, classid, deletetime, cancraft, title, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, in_jail, jail_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level FROM characters WHERE obj_id=?";

+    private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,str=?,con=?,dex=?,_int=?,men=?,wit=?,face=?,hairStyle=?,hairColor=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,clanid=?,maxload=?,race=?,classid=?,deletetime=?,title=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,in_jail=?,jail_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,last_recom_date=?,lvl_joined_academy=?,apprentice=?,sponsor=?,varka_ketra_ally=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=?,todaypvps=?,pvplord=? WHERE obj_id=?";
+    private static final String RESTORE_CHARACTER = "SELECT account_name, obj_Id, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, acc, crit, evasion, mAtk, mDef, mSpd, pAtk, pDef, pSpd, runSpd, walkSpd, str, con, dex, _int, men, wit, face, hairStyle, hairColor, sex, heading, x, y, z, movement_multiplier, attack_speed_multiplier, colRad, colHeight, exp, expBeforeDeath, sp, karma, pvpkills, pkkills, clanid, maxload, race, classid, deletetime, cancraft, title, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, in_jail, jail_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,todaypvps,pvplord FROM characters WHERE obj_id=?";

vampir i wanna this code and your help with todays pvp,death,pk:)

  • 0
Posted

so if u want this way, u need to add todaypvps, todaypks and today deaths to characters, add same thing to this 2 statements but also u need to change every method that is connecting with this statement, use search in L2PcInstance and find methods that use RESTORE_CHARACTER and UPDATE_CHARACTER and update them.

  • 0
Posted

Open navicat, your connection, your database, table named characters.sql, file, design table, then add todaypvps and pvplord as int with lenght from 2 to 5 (depends how many players you have because they can make 10.000 pvp's in 1 day ), save it, restart server, and try create another character.

 

Follow these steps and it gonna work .

Guest
This topic is now closed to further replies.



  • Posts

    • i'll give it a shot in a few hours and post it here
    • 🛡 GoldRush — High Five x20   A fresh High Five server focused on active progression, fair competition, and a healthy player-driven economy.   GoldRush is built for players who want a fresh spin on our beloved game that is connected to today's world via Web3 marketplace.   🌍 Server Info   Chronicle: High Five Type: Mid Rate / PvP Craft Community: International Location: Europe Time Zone: GMT+3   ⚙️ Rates   EXP: x20 SP: x20 Adena: x10 Drop: x8 Spoil: x12 Raid Boss: x3 Quest Items: x5 Quest EXP / SP: x10 Quest Adena: x5   👑 Class Progression   1st Class: Free 2nd Class: Free 3rd Class: 5,000,000 Adena   1st and 2nd class transfers reward Shadow Weapons.   ✨ Main Features   No P2W as there is no donation currency in the game Web3 Marketplace Events with real rewards Rotating accessories shop Weekly Olympiad Clean and active mid-rate progression   🧩 Community Board Features   Buffer GM Shop Gatekeeper Drop Search Rankings   🔨 Enchant Info   Max Weapon Enchant: +16 Max Armor Enchant: +12 Olympiad Max Enchant: +6   Safe Enchant: Weapons / Armor: safe to +3 Full Body Armor: safe to +4   Enchant Chance: +4 to +6: 66% +7 to +9: 60% +10 to +12: 54% +13 to +14: 48% +15 to +16: 42%   🏪 GM Shop / Gear Progression   C-grade through Dynasty gear is available through the GM Shop.   Moirai+ progression is farm, craft and raid based.   There is no admin-created endgame gear selling.   🥇 Gold Rush Economy   GoldRush includes a server-wide Adena sink system.   Players contribute Adena to the Gold Rush Collector. When the server goal is reached, limited Gold Bar stock unlocks through the Gold Merchant.   Daily Gold Rush missions also allow active players to earn Gold Bars through gameplay.   🌐 Website Player-to-Player Marketplace   GoldRush includes a website-based Web3 marketplace where players can list and trade items with each other.   Items come from real players.   The marketplace is player-to-player only.   🏛 Olympiad   Weekly Olympiad cycle. Olympiad starts at 18:00 GMT+3. Olympiad max enchant: +6.   🏰 Sieges   Castle sieges take place on Sundays at 16:00 and 20:00 GMT+3.   The first siege will happen 2 weeks after launch.   🐉 Grand Boss Respawn   Queen Ant: 24h + 2h random Core: 30h + 2h random Orfen: 48h + 2h random Baium: 120h + 3h random Antharas: 120h + 24h random Valakas: 120h + 24h random Beleth: 120h + 24h random   🎉 Events   Manual GM events with real token or gold bar rewards.   ⚔️ Fair Play   Bots are strictly forbidden and will result in a ban without warning.   Dualbox is limited to 1 box.   GoldRush is built around a healthy player-to-player economy.   🚀 What to Expect   Active farming Meaningful PvP Meaningul Farming Player-driven economy No donation currency     🔗 Join Us   Website: www.goldrushpvp.xyz Discord: https://discord.gg/kg9WXxcAY   🏁 Expected Launch: July 18 2026     If you are looking for a fresh High Five x20 server with clean structure and strong long-term potential, GoldRush is almost ready.   See you in game.
    • Collisions is from client are no way to bypass from server. Can be done from client modification need to be moded a .dll I can do the work you can contact me by DM  P.D: I already have this job done on the past
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..