Jump to content
  • 0

[HELP] Random spawn location


Question

Posted

I'm trying to make 1 mob spawn on different locations when it dies... I have made 2 different spawn locations, but when i try it out the mob doesnt spawn at all after being killed...

 

If any1 has any experiance how to do it... what to enter in the sql lines at random_spawn, I'd appreciate if you would help me out,

 

Thnx

6 answers to this question

Recommended Posts

  • 0
Posted

try create 2 or more different mobs with different IDs but with same name, idTemplate, drops, xp, ... maybe a unique moster with the same id in the spawn_list table can cause problems. im not sure u must test it. just a little tip :)

  • 0
Posted

i already created 2 spawn locations and created random_spawn... the only thing that i dunno what to enter under the colums in random_spawnlist... i entered 60 sec for respawn and 80 sec for despawn but the mob spawns and despawns instantly :/ dunno what to enter... so please if somebody have already done this tell me how to do it...

 

(i cant create more mobs, cos i want it only to be one mob on a secret locations so when he doest it will spawn somewhere that no1 knows so they have to find it 1st)

  • 0
Posted

nobody knows? c'mon there has to be a way :/, many pros here, any1 willing to help? :) (sorry for double posting, had to bring the topic back to life otherwise it would fall into oblivion :( )

  • 0
Posted

but than he have to view in interlude the code.. because idk what update but it was "fix" by ncsoft.. they did him on  static spawn point ;)

  • 0
Posted

I'm trying to make 1 mob spawn on different locations when it dies... I have made 2 different spawn locations, but when i try it out the mob doesnt spawn at all after being killed...

 

If any1 has any experiance how to do it... what to enter in the sql lines at random_spawn, I'd appreciate if you would help me out,

 

Thnx

Just hardcode it. Get L2Npc do something like:

@Override
public void onSpawn(L2Npc)
{
if(npcId() == yourid)
{
      int randomizer = Rnd.get(0,100);
       if(this instanceof L2Npc && randomizer >= 0 && randomizer <50)
{
          this.setCoordinates(x,y,z,);
          this.SpawnMe();
}
      else  if(this instanceof L2Npc && randomizer >= 0 && randomizer <50)
{
          this.setCoordinates(x,y,z,);
          this.SpawnMe();
}
}
}

Note- I don't have eclipse here, so there may be something wrong with the method names,but thats pretty much how to do it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Done. Thanks for your choose and trust us, we are the only and LAST, authentic L2OFF Service.
    • sell adena l2rebon signature x1 - 1kk = 1 dollars l2reborn x10 - 500kk = 4.7 dollars E-Global x Lu4 - 1kk = 2.7 dollars BOHPTS - x20-x500 TOP PRICE DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO
    • Hello send me on discord to receive the files source packages you order fron team, thanks you.
    • 亲爱的 SocNet 用户! 我们想向您介绍我们平台当前的促销和特惠活动列表: 1. 在 9 月使用优惠码 SEPTEMBER2025(9 折优惠)即可在我们的商店(网站、机器人)购物!您还可以在首次购买时使用优惠码:SOCNET(85 折优惠) 2. 获得 $1 商店余额或 10-20% 折扣,只需在我们网站注册后按照以下模板填写您的用户名: "SEND ME BONUS, MY USERNAME IS..." ——需要在我们的论坛主题帖中发布! 3. 获得 $1 用于首次试用 SMM 面板:只需在我们网站(支持中心)提交一个主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和机器人中每周都会赠送 Telegram Stars! 当前链接: 数字商品商店(网站):前往 购买 Telegram Stars 的 Telegram 机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 商店 Telegram 机器人:前往 新闻资源: Telegram 频道: https://t.me/accsforyou_shop WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n Discord 服务器: https://discord.gg/y9AStFFsrh 我们正在积极寻找以下商品类别的供应商: — Snapchat 新旧账号 | 带积分 (snapscores) | 地区: 欧洲/美国 | 邮箱/手机号完全访问权限 — Reddit 老账号(暴力破解或被盗来源,自注册)| 帖子和评论业力值 100 至 100,000+ | 含邮箱完全访问权限 — LinkedIn 老账号 | 拥有真实连接 (connections) | 地区: 欧洲/美国 | 邮箱完全访问权限 + 活跃的 2FA 密码 — Instagram 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — Facebook 老账号 (2010-2023 年) | 邮箱完全访问权限(可能包含活跃的 2FA 密码)| 有好友或无好友 | 地区: 欧洲/美国/亚洲 — Threads 账号 | 邮箱完全访问权限(可能包含活跃的 2FA 密码) — TikTok/Facebook/Google ADS 代理广告账号 请通过以下联系方式联系我们 —— 我们来讨论合作条件! 我们也随时欢迎其他合作机会。 联系方式和支持: Telegram: https://t.me/socnet_support WhatsApp: https://wa.me/79051904467 Discord: socnet_support 邮箱: solomonbog@socnet.store 通过这些联系方式您还可以: — 咨询批量采购 — 建立合作伙伴关系(现有合作伙伴: https://socnet.bgng.io/partners ) — 成为我们的供应商
  • 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