Jump to content

Recommended Posts

Posted (edited)

ttps://github.com/arturojosejr/L2-Adrenaline-Scripts/blob/master/My%20Scripts/Lvl%201-80%20(interlude)/TeleportModule.txt

I want to do a script in which you write the place you want to go and it teleports from one gatekeeper to another and to the place you want. For example if we are in elven village: TeleportTo ('antharas lair') would go to gludio, then giran and finally antharas lair. What I've done is if the destination isn't found in the current gatekeeper it goes to the first dialog option. But then it can enter a loop, for example in my example above it would do elven village -> gludio -> schuttgart -> rune -> goddard -> shuttgart -> ... And would keep repeating schuttgart, rune, goddard from there.

 

The problem is that I canot think the logic after the process of deciding which city to go next. I think I should start looking in all the strings where is the destination, then if it isn't reachable from the current city, check if we can go from the current city to the first city from which it's reachable and so on.. what do you think?

 

Even better would be taking into consideration the adena spent in each path and then choosing the lest expensive path. Although that would be even harder.

 

This is what I've thought so far:

if  the destination is a city
  cityDestination = destination
if  the destination isn't a city
  cityDestination = search the city from which the destination can be reached

if  cityDestination is reachable from current city then
  TP to cityDestination
  TP to destination
else
  find the shortest path with BFS algorithm.
  TP through the fastest path till the destination
Edited by darknesscrysis

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

    • @Mobius, congratulations on the milestone🫡 P.S. I saw my name
    • Every commit to the L2J Mobius project since 2015 visualized as comets impacting the Mobius planet. 10+ years of development, thousands of commits, hundreds of contributors, all brought to life.    
    • new link https://www.mediafire.com/file/sspr9w96u9qln62/AvengersKamaelWings.7z/file
    • “8-PAGE CONTRACT — AND ONE SEAL DECIDES EVERYTHING.” ▪ We got a case that looked “simple”: SPA, legal entities, all data provided — just assemble and format. ▪ But the devil was in the details. ▪  An 8-page document with two parties to the deal: IE and LLC, requisites, amounts, deadlines, shipment. ▪ And a separate request: seals must look **real** — different angles, different pressure, no “stamp over text”. ▪ 🖨 This is exactly where most people fail. Identical imprints, even transparency, “perfect” insertion — and the document immediately looks like a mock-up, not a real file. ▪ We did it differently: — placed seals logically across the document — set different angles and pressure — added the signature separately — preserved the natural page structure ▪  Result: the document was accepted without any questions. ▪  Sometimes it’s not the text that matters. It’s how the seal sits. ▪  Want your file to look like a real document, not a collage? Write to us — we’ll show where even neat mock-ups usually get caught. *All data presented with the client’s consent.* › TG: https://t.me/mustang_service ( https:// t.me/ mustang_service ) › Channel: https://t.me/+JPpJCETg-xM1NjNl ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #case #drawing #verification #contract
    • guys i got the mythras pac ... i know it is out dated://    i see in startup loads  32002 fake players from fake player table  but how  can i  summon them when i use //create_fake_players  nothing happens    
  • 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..