Jump to content
  • 0

[Need Help]Probleme Mana potion


Question

Posted

Hi all and sorry for my bad english

 

I have one l2j serve :

DataPack: 9363

Server: 5741

 

I have a probleme with my mana potion.

When char use mana potion, no problem but when he use mana potion during his summon is spawn mana potion consumption is 2.

Char alone: 1 by 1

Char + summon: 2 by 2

 

Ty for your help

6 answers to this question

Recommended Posts

  • 0
Posted

If it's latest L2J, report issue on their forum, they will be interested and probably will commit a fix on the day.

 

They reworked/implemented shared system with summon, obviously you got a problem regarding it. Only effect should be applied on summon, not a use of another potion.

  • 0
Posted

Ty for your answer but on l2j forum nobody visibly know this probleme :(

Be sure you got latest itemhandlers, notably ItemSkillsTemplate.

 

You can also check L2J timeline regarding servitor share system. Finally, you can track getItemConsumeId() / getItemConsume() uses.

  • 0
Posted

You talk to this java code ? :

 

// Summons should be affected by herbs too, self time effect is handled at L2Effect constructor
				if (!playable.isSummon() && activeChar.hasSummon())
				{
					activeChar.getSummon().doSimultaneousCast(itemSkill);
				}
			}
			else
			{
				playable.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
				if (!playable.useMagic(itemSkill, forceUse, false))
				{
					return false;
				}

				// Consume.
				if ((itemSkill.getItemConsumeId() == 0) && (itemSkill.getItemConsume() > 0))
				{
					if (!playable.destroyItem("Consume", item.getObjectId(), itemSkill.getItemConsume(), null, false))
					{
						playable.sendPacket(SystemMessageId.NOT_ENOUGH_ITEMS);
						return false;
					}
				}

 

PS: J'edit, merde j'avais pas fait gaffe que t'etais français aussi lol. Donc je suis dans itemskill template mais je vois pas trop ce que je peux en fair :/

  • 0
Posted

[FR]

Plutôt rare de voir du FR dans cette section, et le flag ne veut pas dire grand chose pour la majorité des utilisateurs de ce forum, mais oui, je suis FR.

 

Il n'y a pas beaucoup d'endroits où chercher : une potion passe par le clientpacket UseItem, ensuite par l'item handler, qui appelle le skill (s'il existe). La consommation se fait normalement dans l'itemhandler, cad ItemSkillsTemplate pour les potions (tous les consommables utilisent par défaut cet handler).

 

Est-ce que ça te le fait avec tous les consommables, ou uniquement les potions ? Si c'est avec tous les consommables, il y a de fortes chances que j'ai raison sur ItemSkillsTemplate.

 

Finalement, utilises des tags pour parler FR.

[/FR]

  • 0
Posted

[FR]

Ca me le faisait que pour les popo mana mais c'est bon j'ai reglé le probleme j'ai retiré le item.potion de l'instruction et c'est bon :)

Merci du coups de main en tout cas ^^

[FR]

Guest
This topic is now closed to further replies.


  • Posts

    • cRazy??? If i just say good job its not even fair....
    • τι εκανες εκει παλι ρε τρελάρα; 🤣   welcome back mate, happy seeing you online again, well thats beyond l2 needs for sure and It’s rare to see anyone pushing Interlude this far technically anymore without trying to monetize it. definitely interested in seeing the source whenever you're ready to share it! keep it up!
    • your only choice brother cmon https://www.l2jsunrise.com/
    • Hello everyone  How are you all doing? I'd like to share with the community an open-source project I've been working on intensely: the **L2 Phantom AI Manager**. Tired of those static bots that just stand still in the city or sink into the map because of Geodata? Me too! That's why I developed a modular Phantom system with real Artificial Intelligence, initially designed for **L2J Mobius Essence (RoseVain)**, but which can be adapted to other chronicles. Main Features Modular architecture: the system is split into focused files such as PhantomAI, PhantomEngine, PhantomFactory, PhantomEquipment, PhantomHuntingSpots, PhantomGeo, PhantomMenu, and more. Automatic creation: create 10 or 50 phantoms from the menu or commands. XML persistence: automatically created phantoms are saved into PhantomPlayers.xml, so they keep loading after server restarts. Batch startup: .pstart and Start 10 load only 10 phantoms at a time. Batch disconnect: disconnect 10 active phantoms without shutting down the whole system. Origin towns: new phantoms spawn using PlayerTemplate.getCreationPoint(), respecting race and class. Geodata-safe spawning: spawn points use NPC-like coordinate validation to avoid under-map or floating characters. Real datapack spots: reads data/stats/npcs and data/spawns to build level-based hunting locations. Bad target filtering: ignores Training Dummy, tutorial objects, chests, and fake farm targets. Smart relocation: if a phantom cannot find useful mobs, it relocates to another spot for its level. Level goals: phantoms receive leveling goals, return to town, recover resources, and go back to farming. Mage MP rest mode: mages rest until MP is recovered; in PvP they try to escape when out of mana. Skills and buffs: phantoms try to use offensive skills and self buffs such as Might, Shield, Focus, Haste, Empower, Acumen, Wind Walk, Chant, Song, and Dance. Varied gear packs: gear packs by grade for mages and fighters, with multiple variants to avoid visual clones. Automatic shots: randomized Soulshot and Spiritshot restocking by class and grade. Inventory cleanup: unnecessary items are removed automatically while preserving Adena, shots, and equipped gear. PvP and PK behavior: some phantoms are aggressive, may become PK, and attacked phantoms try to defend themselves. Optional AI chat: optional Google Gemini integration for short social replies. TXT logs: the menu displays log state and can enable/disable logging. GM Menu Use .pmenu to open the control panel. Current options: Start 10 Disconnect 10 Create 10 Create 50 Reload XML Stop All Enable Log / Disable Log The menu also shows: active phantom count; XML ID count; current TXT log state. Commands .pmenu - opens the control panel. .pstart - starts 10 phantoms from XML. .pstop - removes all active phantoms. .pstop10 - disconnects 10 active phantoms. .pload - reloads PhantomPlayers.xml. .pcreate 10 - creates, starts, and saves 10 phantoms to XML. .pcreate 50 - creates, starts, and saves 50 phantoms to XML. .pm Name Message - sends a private message to a phantom. .pdebug - toggles TXT logging. Logs Logs are created in the GameServer log/ folder: log/PhantomManager.txt - global historical log. log/PhantomManager-yyyyMMdd-HHmmss.txt - separate log for each session. Useful logged events include: new level goals; travel to hunting spots; town rest; mob attacks; PvP defense; shot restocking; inventory cleanup; AI exceptions with stacktrace. Main Files PhantomManager.java - commands, logs, and bootstrap. PhantomEngine.java - start, stop, spawn, respawn, batches, and AI loop. PhantomAI.java - farm, PvP, PK, rest, targeting, and movement decisions. PhantomConfig.java - routes, gear, shots, and XML persistence. PhantomFactory.java - automatic character creation. PhantomEquipment.java - buffs, progression, shots, and inventory cleanup. PhantomHuntingSpots.java - real datapack NPC/spawn loader. PhantomGeo.java - geodata-safe coordinate handling. PhantomState.java - temporary phantom memory. PhantomMenu.java - GM HTML panel. PhantomBypass.java - menu button handling. PhantomChat.java - messages and optional Gemini integration. Copy custom/PhantomManager into: dist/game/data/scripts/custom/PhantomManager/ Place PhantomPlayers.xml in: game/config/Custom/PhantomPlayers.xml Compile scripts or restart the GameServer. Use .pmenu to create, start, and manage phantoms. https://github.com/miacodeweb/L2-Phantom-AI
  • 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..