Jump to content
  • 0

Problem With Teleportdata


Question

Posted

Hello everyone, sorry i dont speak in russian language, just english ..
I have one problem with my teleporter, he dont teleport when i press on button e.x. Aden Town, press and no effect..
Now i show my files, that's original ..

 

HTML line:

<button value="Giran Town" action="bypass -h player_teleport?name=giran" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal">

TeleportData.txt from script folder:

begin   name=giran   price=0   x_loc=185317   y_loc=20041   z_loc=-3264   min_level=1   max_level=80   required_item_id=57   required_item_count=5 end

npcdata.txt from scripts folder:

npc_begin   citizen   35709   [teleport_npc]   level=75   acquire_exp_rate=0   acquire_sp=0   unsowing=1   clan={}   ignore_clan_list={}   clan_help_range=300   slot_chest=[]   slot_rhand=[]   slot_lhand=[]   shield_defense_rate=0   shield_defense=0   skill_list={@s_race_humans;@s_full_magic_defence}   npc_ai={[teleport_npc];{[fnHi]=[teleport_npc_001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=120};{[MoveAroundSocial2]=120}}   category={}   race=human   sex=male   undying=1   can_be_attacked=0   corpse_time=7   no_sleep_mode=0   agro_range=0   ground_high={120;0;0}   ground_low={1;0;0}   exp=804225365   org_hp=2676.65854   org_hp_regen=8.5   org_mp=1507.8   org_mp_regen=3   collision_radius={14;14}   collision_height={40;40}   str=40   int=21   dex=30   wit=20   con=43   men=20   base_attack_type=fist   base_attack_range=40   base_damage_range={0;0;80;120}   base_rand_dam=30   base_physical_attack=794.70901   base_critical=4   physical_hit_modify=5   base_attack_speed=253   base_reuse_delay=0   base_magic_attack=542.68324   base_defend=319.24623   base_magic_defend=233.61053   physical_avoid_modify=0   soulshot_count=0   spiritshot_count=0   hit_time_factor=0.6   item_make_list={}   corpse_make_list={}   additional_make_list={}   additional_make_multi_list={}   hp_increase=0   mp_increase=0   safe_height=100   npc_end

And ai.obj, i think there and is a problem .

class 1 teleport_npc : citizen
handler 3 14   //  TALKED
   variable_begin
       "talker"
       "myself"
       "_choiceN"
       "_code"
       "_from_choice"
   variable_end

   push_event   //  myself
   push_const 704
   add
   fetch_i
   push_event   //  talker
   push_const 40
   add
   fetch_i
S881.   "teleport_npc_001.htm"
   push_string S881
   func_call 184680516   //  func[ShowPage]
   shift_sp -2
   shift_sp -1
   exit_handler
handler_end

class_end

All required items which need to teleport i have in inventory. :)

 

Thanks for your answers.

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

Need decompiler the ai.obj  is add a function is simple.

Use as base in server files "Pre configured  c4" have gk 100% work 

Good  luck.

Panel from xel for decompiler.

Edited by Jamba
  • 0
Posted

I know this codes, but i can't make a nice html, and teleport by one click. e.x. LvL Up zone u press and going teleport. But now u press and u going in other window to select your teleport location ...

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

    • So dont plat that waste time&money server.   GM promises pie in the sky, but does nothing. It's all about money, money, money. And wipe.   SCAM server!
    • I'm looking for someone to remove GameGuard from a game that uses XTRAP. The game no longer uses XTRAP. I have a game server. But the client is kicked from the game after a few minutes of logging in. If I try to remove XTRAP (just by deleting it), the game opens and closes quickly.   Send me a PM. The game is Audition, a dance game.
    • 🎉 L2Dead StuckSub - GRAND OPENING 14 February 2026🎉 After beta, testing, mistakes, laughs and a lot of PvP, the moment has finally come. L2Dead StuckSub is officially opening its gates on 14 February 2026.   ⚔️What to expect: ✦Main Class +6 Stuck Sub system ✦Balanced PvP & custom party farm areas ✦Custom events, bosses and strong rewards ✦Competitive clan scene with castle rewards   📌Until the opening: ✦Create your clans and register them in the Clan-Register channel ✦Invite your friends / old parties / CPs ✦Stay tuned for more information (rates, events, siege times, etc.)   Get your setups ready, prepare your macros and your Discord/voice. On 14 February 2026 20:00 GMT+2, we write the first chapter of L2Dead together. 🔥 https://www.l2dead.com/ https://discord.gg/TGnATuZmdt
    • Here’s the **clean, L2jAcis-style way** to make **Auto Loot work ONLY for Premium players** on **Interlude**.   I’ll give you **two options** — pick what fits your server philosophy.   ---   ## ✅ OPTION 1 (BEST PRACTICE): Premium-Only Auto Loot (Code-based)   ### 🔹 Step 1: Add config option   **`config/Premium.properties`**   ```properties # Enable auto loot only for premium players PremiumAutoLoot = True ```   ---   ### 🔹 Step 2: Read config   **`Config.java`**   ```java public static boolean PREMIUM_AUTO_LOOT; ```   Load it:   ```java PREMIUM_AUTO_LOOT = Premium.getProperty("PremiumAutoLoot", false); ```   ---   ### 🔹 Step 3: Modify drop handling   **File:**   ``` net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance ```   Find **dropItems()** or **doItemDrop()** Replace / modify logic like this:   ```java if (player != null && player.isPremium() && Config.PREMIUM_AUTO_LOOT) {     for (ItemInstance item : items)         player.getInventory().addItem("AutoLoot", item, player, this); } else {     for (ItemInstance item : items)         dropItem(player, item); } ```   ✅ Result:   * **Premium players** → instant loot * **Normal players** → loot on ground   ---   ## ✅ OPTION 2: Auto Loot via Character Variable (More Flexible)   Useful if you want **GM control** per character.   ### 🔹 Premium activation   When premium is added:   ```java player.setVar("AUTO_LOOT", "1"); ```   ### 🔹 Drop check   ```java if (player != null && player.getVarB("AUTO_LOOT")) {     player.addItem("AutoLoot", item, player, true); } else {     dropItem(player, item); } ```   ---   ## 🎯 BONUS (Recommended Add-Ons)   ### 🔸 Adena always auto-loot (even non-premium)   ```java if (item.getItemId() == 57) {     player.addAdena("Loot", item.getCount(), this, true);     continue; } ```   ### 🔸 Party check (premium leader only)   ```java player.isInParty() && player.getParty().getLeader().isPremium() ```   ---   ## ⚠️ Notes (Interlude Safe)   ✔ Compatible with **L2jAcis Interlude** ✔ No client-side changes ✔ No exploit risk ✔ Retail-like behavior   ---      
  • 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..