Jump to content
  • 0

Question

Posted

First:

I want to give to a player a V.i.p Status with that Status he can gain +1000 Hp/Mp/Cp & +100 Atk.Spd C.Speed P.Atk M.Atk

But i want to also have a db table who will analyse the subscription like to put a Time and when this time passes he got automatically removed from Vip status

 

Second:

I want to have an Area that those kind of guys can't access cause of V.i.p Status. Does it need a java restriction or something?

 

P.S Im very amateur in java so explain me better.

 

Pack:L2JFrozen.

9 answers to this question

Recommended Posts

  • 0
Posted

Since Im rewarded with -2 for helping on such sections, I am not in mood to code it, however our experienced, helpful and active coders/developers are here to help and boost the forum, so you could refer to them.

  • 0
Posted

Since Im rewarded with -2 for helping on such sections, I am not in mood to code it, however our experienced, helpful and active coders/developers are here to help and boost the forum, so you could refer to them.

Don't forget highly trained.
  • 0
Posted

on the first request just search the forum to find the pvp lord engine thingie and use it as your base, it even has the login checks and extra stats needed so you pretty much copy paste everything and change variable,method names.

 

as about the second one you can just create new class and extend l2teleportinstance or whatever its called in l2j and create ur own teleporter with the appropriate check before the action of the button takes place if(player.isVip()) player.teleportTo(x,y,z); or something. This one is also shared by matim if i remember correctly, look for it in the forum.

 

Haven't coded sh.it in l2j for about 2+ years so bare with me ^^.

  • 0
Posted

@Forced

Well try to create new Zone Type in Java, on entering do check if player is VIP, if yes, teleport it to town, if not do nothing, then create it in XML and it should work.

Ps. try to look at other types, there should be couple examples :)

  • 0
Posted

Well,i find a solution about the first code. Could anyone help me for the second? Voqus i didn't understand anything :P

Don't wanna keep talking about it, just check this and this

On L2PcInstance you need to create boolean field for vip and getters, setters for it as well.

So inside the gatekeeper class it will go like this:

if(player.isVip()) //if the player has vip status teleport him
   player.teleToLocation(x, y, z); // teleport the player to x y z location

  • 0
Posted

Don't wanna keep talking about it, just check this and this

On L2PcInstance you need to create boolean field for vip and getters, setters for it as well.

So inside the gatekeeper class it will go like this:

if(player.isVip()) //if the player has vip status teleport him
   player.teleToLocation(x, y, z); // teleport the player to x y z location

 

to avoid teleto location which is anoying you could simply edit moveToLocation packet to dissalow VIPs from walking into specific x y z radius

  • 0
Posted

to avoid teleto location which is anoying you could simply edit moveToLocation packet to dissalow VIPs from walking into specific x y z radius

Haven't coded sh.it in l2j for about 2+ years so bare with me ^^.

Guest
This topic is now closed to further replies.


  • Posts

    • Ты настолько смешон, что создал специально для этого левый аккаунт?)))  ты не стоишь даже капли с моего члена что бы я ради тебя писал что-то на анг)  Человек видимо облажался с запуском, слил бабки в помойку теперь с горящей жопой бегает по форуму и не знает кого обвинить))))) перечитай что я тебе написал, мне насрать на тебя на твой сервер и на то что ты там выложил)  это все дерьмо неактуально уже давно, скажу тебе если твоя тупая голова это не поняла, АКТУАЛЬНОЕ НИКТО НЕ ПРОДАЕТ, потому что любая продажа это = шара, все что продается ЭТО ОТЪЕЗЖЕННОЕ ГОВНО которое не нужно хозяину, старое как твои обвисшие от гнева сиськи    
    • L2 HARMONY - BANNERS & ICONS       L2 COLD - NPC ANIMATED BANNER
    • LA ERA DE EINHASAD - Lineage 2 en Castellano Lineage II Crónica 4: Vástagos del Destino x5 - Main Class - Full Craft ───────────────────────────── La diosa Einhasad ha despertado... Una nueva era comienza para los verdaderos aventureros. Un mundo completamente traducido al español, fiel al Lineage II original, creado para una comunidad hispanohablante unida por la nostalgia y la pasión. ───────────────────────────── APERTURA OFICIAL: 14 de NOVIEMBRE - 20:00hs (GMT-3) ───────────────────────────── INFORMACIÓN PRINCIPAL Rates: x5 Tipo: Main Class Sistema: Full Craft Idioma: 100% Español (traducción completa del juego) Comunidad hispanohablante Balance original con mínimas modificaciones Buffer Offline, los jugadores pueden crear sus tiendas de buffs Progresión de crónicas cada 4 meses aprox. Economía estable - Sin Pay to Win - No venta de items/adena por donación Comunidad de 1.000 personas Anterior versión x1 duro casi 3 años con 952 IPs distintas de pico ───────────────────────────── CARACTERÍSTICAS DESTACADAS Experiencia fiel al Lineage II clásico, sin alteraciones invasivas Interfaz, diálogos y objetos completamente en español Ventana de comunidad con servicios personalizados y comercio por Monedas de Oro Olimpiadas, Épicos y Asedios originales Recompensas por votación, Eventos TVT con 3 arenas diferentes. Participan todos sin importar el nivel, pero dentro de la arena solo se atacan por rango cercano Soporte activo y presencia constante del administrador Tickets de soporte con atención rápida en Discord ante cualquier problema ───────────────────────────── ENLACES OFICIALES Website: La Era de Einhasad Discord: https://discord.com/invite/A6PtCCN2SF ───────────────────────────── Una comunidad unida por el idioma, la pasión y la nostalgia. Redescubrí Aden… en tu propio idioma. Bienvenido a La Era de Einhasad.  
    • English you belarus retard ) Seems you so desperate and angry cant even speak back in EN, well guys you see how its easy to destroy scammer xD
    • Чувак) мне на него насрать давно, ты не мне сделал подлянку а людям которые купили и используют. Я его удалил год назад) когда закрыл продажи.   мне вообще похер кто ты и что ты.    Можешь сесть и попрыгать на тот же член на котором ты прыгаешь все это время) и этой версии более 3х лет) ты откопал залупу мамонта , поздравляю)) кто скачает это дерьмо используйте на свой страх и риск)) кто знает что там наворочено)))  удачи в шаринге обиженный жизнью неандерталец.   Можешь лизнуть мое очко на прощание.
  • 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