Jump to content
  • 0

Party gatekkeper


Question

Posted

Paidia na rwtisw, exw psaxei gia kamia tetoia gk alla den brika tpt,

 

AN den iparxei sto search kanw request gia quest(.py h .java) me to opio otan milas se npc kai patas ena koumpi gia teleport (px ena rb-oxi antharas valakas...etc-)(me event id 8a einai an einai .py)

na kanei teleport full party (katw apo 8 atoma na min mporoun na pane) sto rb (ta x,y,z 8a ta balw egw) kai ta atoma na einai apo 84 lvl kai panw, kai oloi na einai ok (dld na min einai kanenas pe8amenos) kai molis pe8ainei to rb  i gk pou 8a iparxei ekei tous stelnei pisw (x,y,x ta bazw egw) kai na teliwsei to quest.Sthn periptwsh pou den mporoun na to skotwsoun i gk pou einai ekei na exei ena koumpi cancel p na tous stelnei pisw kai na healarei to rb.

Ta oipoipa rb 8a ta balw egw......afou 8a katalabw pws ginetai.....

 

Euxaristw.

13 answers to this question

Recommended Posts

  • 0
Posted

Ayto edw to komati toy kodika mporei eykola na prosarmostei se enan gk Python.

 

def checkConditions(player, new):
party = player.getParty()
if not party:
	player.sendPacket(SystemMessage.sendString("You are not currently in a party, so you cannot enter."))
	return False
if party and party.getMemberCount() < 8:
	player.sendPacket(SystemMessage.sendString("You cannot enter because there not enough people in your party. Minimum is 2 people."))
	return False
if party and party.getLeader() != player:
	player.sendPacket(SystemMessage.sendString("Only the party leader can do the team teleport."))
	return False
for partyMember in party.getPartyMembers().toArray():
	if partyMember.getLevel() < 84:
		player.sendPacket(SystemMessage.sendString(partyMember.getName()+"s level is below 78 and cannot enter."))
		return False
	if not Util.checkIfInRange(1000, player, partyMember, True) and new:
		player.sendPacket(SystemMessage.sendString(partyMember.getName()+" is too far away, ask them to come here."))
		return False
return True

 

Pisteyw oti kalyptei ola osa zitises !

 

Credits: l2j-forum

  • 0
Posted

euxaristw file, eimai 60% kalumenos

pws mporw na balw ena boolean na checkarei an iparxei hdh ena pt sto rb

kai na chekarei an o leader exei to item p pefteia po raid(8a to dwsw mesa sto quest) na bgainei allo htm

kapws san

if leader has item coin

  show 123123-00.htm

else

  show 123123-01.htm

 

 

 

(nomizw pws prepei na kanw import to L2Party?)

 

  • 0
Posted

Ayto poy zitas mporei na ginei mono sta Grand bosses kai mono otan exoyn ala3ei contition.

An mi ti allo den 3erw pos na se boi8isw se ayto. To class L2RaidBoss den exei zone restrictions

poy na soy lene an ekei yparxoyn alla atoma.

 

Sxetika me ta imports me rwtas gia to code poy soy edwsa ?

  • 0
Posted

nai gia to party.getLeader() != player: kai ta alla

 

file apla 8elw na ma8w thn python kai ena oloklirwmeno paradeigma 8a diefkolune para polu sto na katalavw pws sindeontai ta condition kai ta loipa.ta zone restriction den ta 8elw afou antharas valakas kai ta loipa ta esbhsa apo ton server, auto p 8elw einai na dw pws douleuei mia tetia gk gt esu me edwses mono ta conditions.

auto p 8elw apo auto einai na einai na dinetai ena quest ston ptleader pou kanei tp olo to party kai opws ena (eida pws ginetai, epsaxa sto quest fakelo) aplo quest se onkill event to APLO (to tonizw) raid boss pou to exw customarei na dinetai ston party leader otan skotwsoun to rb. Kai me auto to item na to pernei i gk p brisketai ekei kai na tous paei pisw, alliws an den exei to item na bgainei allo html pou na tous paei pisw kai na healarei to rb (nomizw to heal mporw na to kanw egw gt pira to init apo buffer, apla na me peis p na to balw).

Kai telos na pigainei ena mono party ka8e fora sto rb, dld na iparxei ena public boolean pou na chekarei an exei bei kapio pt sto raid boss.

 

An den mporeis na to kaneis pes m apo p mporw na zitisw voitheia, gt to maxcheats sta python/jython/java scripts den einai polu aneptigmeno.

  • 0
Posted

Poy tha paei tha petyxo kai enen fysiologiko anthropo edw mesa .... :P

Loipon pame apo thn arxh... Kat arxhn koita ti grafeis giati exeis mple3ei ta mpoytia soy!

Les otas SKOTOSOYN to RB na toys dinei ena item (polly eykolo apla to bazeis sto droplist) kai me ayto

to item na to dinoyn sthn GK (Tote giati na toys to petaei ? Les kai den mporoyn na kanoyn soe apla ?)

kai an den ths to dwsoyn h gk na kanei heal to pethameno boss !!!

 

File moy oxi den 3erw na to kanw ayto sorry... Kallh tyxh !

  • 0
Posted

gia na ta xemperdepsoume, gt alla lew alla katalaves:ta lew teleutaia fora kai ka8ara

Iparxei 1 pt 8 atoma oloi 84lvl kai panw kai kanei to quest o leader. Otan ginei to event (on event = 0) na 3ekinaei to quest kai to pt na paei se ena sigekrimeno meros.Sto meros auto iparxei ena mod (oti nane, arkei na einai mob, to id 8a to ka8orisw egw esu apla bale "EnterMobID_HERE") 8a iparxei ena public boolean pou na chekarei an ginetai auto to quest apo allo pt.Telos me thn GK apo town.

Otan paei to pt sto meros auto 8a iparxei i idia pou an ths miliseis 8a bgalei allo html (efoson o pt leader 8a exei condition 1 an 8imamai kala)

kai sto event pou 8a patisei o pt leader (to link dld gia na figei pisw) na chekarei an to rb einai zwntano, na to healarei an exei faei tuxon dmg kai an tous paei pisw, kai an einai nekro apla na tous paei pisw kai na teliwsei to quest kai to boolean na 3anaginei true wste na mporei na mpei allo pt argotera.

 

Auto me to item p eipa itan mono kai mono na chekarei an to rb einai zwntano i oxi se periptwsh p den ginetai kateu8eian.O logos p 8a healaretai to rb otan den to skotwnoun eiani gt to epomeno party 8a paei kai 8a 3ekinisei na baraei to rb apo kamia 50-60% life.

  • 0
Posted

Loipon gia na ta 3emperdepsoyme opos les :P

Proton ayto poy zitas einai ena plhres paketo me kapio event kai oxi boi8eia.

Deyteron gia na exei noima olo ayto poy les prepei na yparxei INSTANT zone.

To instant zone to anaferw giati den yparxei tropos na pas as poyme kapion e3w apo

to hunder vilage kai na zitas contition perioxhs... Enoo na 3ereis oti den einai allos mesa

kai na mhn kaneis tp an yparxei. Kai afeteroy to pio aplo prama na theleis einai na mhn

asxolitheis me thn gk kai na kaneis ena aplo soe. Opote edw yparxei bug xoris zone !

Kata triton yparxei etoimo event me instant poy na kanei ayth thn doyleia !

Apla mporeis na ala3eis to zone (thn perioxh enoo) kai na to pas opoy theleis esy !

To event einai edw http://www.maxcheaters.com/forum/index.php?topic=136818.0

 

Elpizw na ftasame sto epithimito apotelesma :P

  • 0
Posted

file request kanw. ane imai se la8os topic pes kapion ta to kanei move. Egw to mono p zitaw einai ena init.py p na s kanei teleport to party se ena meros (x,y,z) kai na iparxei i idia gk ekei p na se paei pisw. dld den exeis tis gnwseis na to kaneis?

Efoson den 3erw python den 3erw na kanw kai modify sta metra m, alla otan dw to paradeigma 8a katalavw pws domeitai ena quest me python, gt katalavainw mono me swsta paradeigmata.

 

thn gk 8a thn balw egw sto meros.

  • 0
Posted

ma den einai auto p zitaw, kai den katalavainw tpt. APLA ftiaxe ena aplo quest kai dwse m to code, ta htm egw 8a ta balw kai ti 8a lene mesa.

 

EDIT:GIA NA KATALAVEIS GT APLA DEN MPORW NA TO KANW 8A SE PW ENA TRANO PARADEIGMA

Apo code 3erw to vJass ths Blizzard p einai gia Warcraft3 opws ta maps tou dota.kai eimai expert

Ena paidi ekane request gia ena spell (dld ena skill) pou na roufaei hp apo mia mesaia se mege8os perioxh p kanei target.

Tou edixa xilia etoima spell kai me leei an dne me dwseis auto p 8elw akribw sden 8a katalavw tpt. Etsi ka8isa kai to egrapsa kai den ton epiza 10 sinexomena post

scope Blood initializer Init
//This trigger was for posting it in the-helper forum so that's why it has many globals
   globals
       private constant integer ABIL_ID        = 'Bloo'   //as named is the raw code of the casted ability
       private constant integer Hprate         = 20       //That is the rate of the damage done for every "rate" seconds 
       private constant integer rate2          = 5        //Sets the bonus hp for  every level with base the doublerate integer
       private constant integer Doublerate     = 20       //That is the base maxhp percent function that checks the % of the unit's maxhp to double the rate
       private constant integer limitdistance  = 800      // This is the base distance limit of unit and the target point                          
       private constant integer distance2      = 100      //And that is the upgraded distance limit e.g TrPS lvl 2 limitdistance=1800+2*200
       private constant integer range          = 170      //This sets the base range of the area that the heart damages
       private constant integer range2         = 20       //And this upgrades the range depending the ability's level
       private constant real Timeleft          = 6        //That is the time that no unit passes by the area and ends the ability
       private constant integer percentdrop    = 2        //This is the number that drops the damage done to the targets.The value is percent 
       private constant integer AbsLim         = 600      //This is the limit of the amount that can be sent back to hero
       private constant string DamageEffect    = "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodFootman.mdl" 
       private constant string Healeffect      = "Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl"
       private constant string chest           = "chest"
       private constant string origin          = "origin"
       private real array rate                  // That is the rate of the "Hprate" (The rate arrays set is in Init Function)
       private conditionfunc cf              //Shhhhh! Its a secret!
       private unit Caster
       private real ngu
   endglobals
//--------------------------Here we Damage the units int he group we picked--------------------------\\   
   private function Damage takes nothing returns nothing
       call AbilityDmg_damage(Caster, GetEnumUnit(), ngu)
       call DestroyEffect(AddSpecialEffectTarget( DamageEffect, GetEnumUnit(), chest))
   endfunction
//----------------------Here we get the conditions that the units must have to get damaged----------------------\\     
   private function PickCond takes nothing returns boolean
       return GetUnitState(GetFilterUnit(), UNIT_STATE_LIFE) > 0 and IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) != true and IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true
   endfunction
//----------------------Here is the condition that checkes the raw code of the ability we cast--------------------\\
   private function Cond takes nothing returns boolean
       return GetSpellAbilityId() == ABIL_ID
   endfunction
 //----------------------Here is the main action----------------------\\        
   private function Act takes nothing returns nothing
       local integer Gnum
       local real percent
       local real Rate
       local real c_range
       local real time = 0
       local real Blood = 0
       local unit caster = GetTriggerUnit()
       local real x = GetSpellTargetX()
       local real y = GetSpellTargetY()
       local group absorbed = CreateGroup()
       local integer lvl = GetUnitAbilityLevel(caster, ABIL_ID)
       local real ratex2 = Hprate+lvl*rate2
       local real sacrificial = GetUnitState(caster, UNIT_STATE_LIFE)-GetUnitState(caster, UNIT_STATE_LIFE)*(0.04+0.01*lvl)
       local real Range = range+lvl*range2
       local real dist = limitdistance+lvl*distance2
       call SetUnitState(caster, UNIT_STATE_LIFE, sacrificial)
       
       loop
           set c_range = SquareRoot((GetUnitX(caster) - x) * (GetUnitX(caster) - x) + (GetUnitY(caster) - y) * (GetUnitY(caster) - y))
           exitwhen Blood >= AbsLim or c_range >= dist or time >= Timeleft
           set percent = GetUnitStatePercent( caster, UNIT_STATE_LIFE, UNIT_STATE_MAX_LIFE)
           if percent < ratex2 then
           set Rate = rate[lvl]/2
           else
           set Rate = rate[lvl]
           endif
           set Caster = caster
           call GroupEnumUnitsInRange(absorbed, x, y, range, cf)
           set Gnum = CountUnitsInGroup(absorbed)
           if FirstOfGroup(absorbed) != null then
               set ngu = Hprate*(100-(Gnum-1)*percentdrop)/100
               call ForGroup(absorbed, function Damage)
               set Blood = Blood+ngu*Gnum
               set time = 0
           else
           set time = time + Rate
           endif
           call TriggerSleepAction(Rate)
       endloop
       if Blood >= AbsLim then
       call SetUnitState(caster, UNIT_STATE_LIFE, GetUnitState(caster, UNIT_STATE_LIFE)+AbsLim)
       else
       call SetUnitState(caster, UNIT_STATE_LIFE, GetUnitState(caster, UNIT_STATE_LIFE)+Blood)
       endif
       call DestroyEffect(AddSpecialEffectTarget( Healeffect, caster, origin))
       call GroupClear(absorbed)
       call DestroyGroup(absorbed)
       set absorbed = null
       set caster = null
   endfunction
//----------------------Here is the end of the main action----------------------\\        

   private function Init takes nothing returns nothing
       local trigger trig = CreateTrigger( )
       call TriggerRegisterAnyUnitEventBJ(trig, EVENT_PLAYER_UNIT_SPELL_EFFECT )
       call TriggerAddCondition(trig, Condition(function Cond))
       call TriggerAddAction(trig, function Act)
       set cf = Condition(function PickCond)
       set rate[1] = 0.5
       set rate[2] = 0.3
       set rate[3] = 0.2
       set rate[4] = 0.12
   endfunction
endscope

to code mesa exei ta panda ola. Oti configure 8elei, ti kanei i ka8e leitourgeia (function) kai me eipe euxaristw katalava apolutws pws douleuw magies sthn vJass glwssa programmatismou.Etsi 8elw kai egw ena quest se python an den mporeis pes DEN MPORW h rwta kana moderator i kana kalo member an 3erei python kai pws kanei ena quest.

  • 0
Posted

File moy sorry den mporw na se boi8isw an kai prospa8isa !

An den mporeis na katalabeis apo ayto to script python poy soy esteila kai me osa soy

exw pei sorry apla den mporw na kanw kati allo !

Den gnwrizw kapion poy tha mporoyse na se boi8isei edw kai oyte kapoy aloy !

 

Kalh tyxh !

 

PS: ap oti blepw sto code poy exeis balei exei constant ! Aporo pos mporeis na katanoiseis eykola ta constant kai oxi ena aplo python script !!

  • 0
Posted

για να κανεις εναν σερβερ με τετοια features πρεπει

#Να εχεις την απαραιτητη γνωση Java

#Να πληρωσεις καποιον

αυτα που ζητας ειναι πολυ εξεζητημενα για να τα βρεις τζαμπα

  • 0
Posted

finito pisteuw pws exeis dikio, gt apo to na ka8otan kai na me edeixne as me eftiaxne ena pio aplo paradeigma apo auto p i8ela isa isa na katalavw pws domeitai ena quest. Apo ekei kai kai pera apla 8a peiramatizomoun me to quest efoson 8a kalipte ta basika.

Kai me to vJass code p edwsa dleogr sto forum ekeino exei xilia 2 paradeigmata pws na ma8eis ekeinh thn glwssa gia to sigekrimeno game kai oxi apla mia 3erh java i python.Ekei se lene thn ka8e leitourgia kai einai ola tzampe.Gia auto eipa na dw an mporw na kanw kati kai me to l2 p m aresei kai oxi mono me to Warcraft3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Server is not Classic, is C4 Scions of Destiny.   http://eternalsinl2.com   https://l2network.eu/details/2458/Lineage-II-Eternal-SIn/#google_vignette
    • Dynamic traffic, static ISP, unlimited traffic and bandwidth packages HTTP, HTTPS, SOCKS5 Over 195 countries/regions Over 100 million real residential IP address pools, with a normal uptime of 99.9%. Special discount code:VIP999
    • Here is the translation, formatted to look professional, clean, and highly scannable for your forum post: Hello L2JBrasil community! I present to you the newest development from MiaCodeWeb. We have created a robust and advanced adaptation of the Phantom system for aCis / L2JAcis 409, focused on Interlude C6 servers. Our main goal was to transform traditional "ornamental bots" into highly realistic, autonomous players. They are capable of creating themselves, restoring themselves, farming, auto-equipping, using skills, responding in chat using Artificial Intelligence, and being managed directly via an in-game panel. GitHub: https://github.com/miacodeweb/L2-Phantom-AI Video Demonstration: [Insert link here]   ## Main Features and Implementation We implemented the core of the Phantom system directly into the aCis gameserver. The architecture was divided into independent modules for AI, combat, chat, equipment, inventory, progression, logs, and administration. In-Game Admin Panel: Fully functional //phantom command. It allows you to create new phantoms, restore saved ones, reload configs, start/stop the AI, view online phantoms, kill bugged phantoms, delete them individually, and navigate through pages. Data Persistence: Created phantoms can be registered in phantoms.properties, allowing them to be restored later while maintaining all their progress directly from the database. Centralized Configuration: Everything is controlled by the phantoms.properties file, organized by sections: AI, Loot, Skills, Equipment, Zones, PVP/PK, Gemini (Chat), Logs, Respawn, and Anti-Stuck system. ## Phantom Skills and Behavior Smart Combat: They patrol, search for mobs, and claim targets to prevent multiple phantoms from attacking the same monster. Mages rest when they run out of MP and avoid hitting with physical weapons unnecessarily. Automatic Progression: Auto-learning of skills, automatic class changes following the logical tree of the chosen profession, receiving buffs, and inventory clearing when reaching a certain weight/space percentage. Dynamic Equipment System: They auto-equip based on class and level, using varying item combinations so they don't all look the same. Optimized Loot: Each phantom focuses on picking up drops/herbs from its own mob, avoiding that ugly scene of 10 phantoms chasing the same adena. PVP/PK Behavior (Configurable): Immediate response to attacks, detection of PK players in the visible area, and an optional "PK Rage Mode". ## AI and Movement Navigation and Anti-Stuck: Patrol system, free wandering, obstacle and stuck detection, with Geodata validation (when enabled on the server). Respawn: Automatic return to town after death, alongside safety rules to prevent them from getting permanently stuck in textures. Leveling Zones: Configurable leveling zones (automatic teleports to farm zones are disabled by default, as in Interlude/aCis they rely heavily on geodata accuracy and the real coordinates of your server). ## AI Chat Integration (Gemini 2.5 Flash) We integrated a Whisper system via the Gemini 2.5 Flash API, making the phantoms respond like real Lineage 2 players. Support for both free and paid API tiers. Configurable parameters: GeminiApiTier, Keys, Cooldowns, and DailyLimits. The system detects connection failures, API limits, and empty responses, and logs everything. The prompt has been adjusted so that the phantom doesn't reply with empty or robotic phrases when asked where to level up or what it's doing. ## Dedicated Log System We created an exclusive log file located at gameserver/log/phantoms.log. It records: loading of phantoms, auto-skills, buffs, Gemini API errors/successes, anti-stuck actions, kills/deletes by admin, and configuration issues. ## Simplified Distribution and Installation Thinking about ease of use for administrators, the mod is delivered in a ready-to-use package: phantom-acis-installer-client.zip. Includes an automatic PowerShell installer that injects the code into your Eclipse project. Contains README.md, INSTALL_MAP.md, and the payload/ folder with ready-made routes for aCis. Clean configuration files (without my API keys). Just run the installer over your copy of aCis, refresh Eclipse, compile, and test. ## Custom Jobs The project already has a solid and functional base for aCis 409. The ideal next steps would be to refine the farm routes by level and social behavior with long-term testing on live servers. I accept custom jobs! If you need this system adapted for another revision, exclusive modules, or any other development for your server, get in touch. Through MiaCodeWeb, I also offer complete services involving geodata optimization, advanced VPS administration (Linux), and Java backend management for L2J. Send a PM or visit the GitHub!   https://www.l2jbrasil.com/applications/core/interface/file/attachment.php?id=17801&key=135fc8d831b84c05089851b18bfca58a   Link dowload:https://github.com/miacodeweb/L2-Phantom-Acis-409
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • 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..