Jump to content
  • 0

random spawn


Question

Posted

hey, i'm looking for a code with makes randon respawn on die, i mean when you die in farm zone or pvp zone usually small windows come out with button "to village" so i want to get code which makes new button with "random respawn" . so players can choose go to village or random respawn in the zone:) anyone have that code? thanks

Recommended Posts

  • 0
Posted

For the random spawn (code side) you can take a look, for example, here. And about changing the description of the button I guess it's client side.

  • 0
Posted

not changing button, but adding new button

Adding a new one is clearly more client side than just changing the description :p

  • 0
Posted

Is nor only client you need core support for the new button.

 

make something like that for now and test;

 

default:

loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.random);

break;

 

 

Index: java/com/l2jserver/gameserver/datatables/MapRegionTable.java

Fortress,

+ random

}

 

public static MapRegionTable getInstance()

@@ -350,7 +351,7 @@

 

public Location getTeleToLocation(L2Character activeChar, TeleportWhereType teleportWhere)

{

- int[] coord;

+ int[] coord = null;

 

if (activeChar instanceof L2PcInstance)

{

@@ -415,6 +416,16 @@

return fort.getFortZone().getSpawnLoc();

}

 

+ if (teleportWhere == TeleportWhereType.random)

+ {

+ @SuppressWarnings({ "null", "unused" })

+ int coordinateX = coord[0];

+ @SuppressWarnings("unused")

+ int coordinateY = coord[1];

+ @SuppressWarnings("unused")

+ int coordinateZ = coord[2];

+ }

+

// If teleport to SiegeHQ

if (teleportWhere == TeleportWhereType.SiegeFlag)

{

 

I Don't tested.

  • 0
Posted

Is nor only client you need core support for the new button.

I know it's not all client side but it's like 95% client 5% server...

Moving it to client dev help.

  • 0
Posted

ok, i was adding multifunctionzone codes in gs, added successfuly , compiled without warnings... but when i run GS i get town manager error: no such zone multifunctionzone... i checked 2 times looks all ok....

  • 0
Posted

ok, i was adding multifunctionzone codes in gs, added successfuly , compiled without warnings... but when i run GS i get town manager error: no such zone multifunctionzone... i checked 2 times looks all ok....

It has nothing to do with the topic...

 

if gs says no such zone...

is about this side I think

Index: dist/game/data/xsd/zones.xsd
===================================================================
--- dist/game/data/xsd/zones.xsd        (revision 9872)
+++ dist/game/data/xsd/zones.xsd        (working copy)
@@ -145,6 +145,7 @@
                                                                        <xs:enumeration value="TerritoryWarZone" />
                                                                        <xs:enumeration value="TownZone" />
                                                                        <xs:enumeration value="WaterZone" />
+                                                                       <xs:enumeration value="MultiFunctionZone" />
                                                                </xs:restriction>
                                                        </xs:simpleType>
                                                </xs:attribute>

  • 0
Posted

i can't find any zones.xsd

Did you use the patch adapted to the pack that are u using? Which pack are u using?...

Btw I moved the post here coz u were asking about the button, not for this -.-...

  • 0
Posted

Then I guess is here the problem

 

Index: head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java      (revision 948)
+++ head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java      (working copy)
@@ -58,6 +58,7 @@
import com.l2jfrozen.gameserver.model.zone.type.L2FortZone;
import com.l2jfrozen.gameserver.model.zone.type.L2JailZone;
import com.l2jfrozen.gameserver.model.zone.type.L2MotherTreeZone;
+import com.l2jfrozen.gameserver.model.zone.type.L2MultiFunctionZone;
import com.l2jfrozen.gameserver.model.zone.type.L2NoHqZone;
import com.l2jfrozen.gameserver.model.zone.type.L2NoLandingZone;
import com.l2jfrozen.gameserver.model.zone.type.L2OlympiadStadiumZone;
@@ -240,6 +241,10 @@
                                                                {
                                                                        temp = new L2NoHqZone(zoneId);
                                                                }
+                                                               else if(zoneType.equals("MultiFunctionZone"))
+                                                               {
+                                                                       temp = new L2MultiFunctionZone(zoneId);
+                                                               }
                                                                else if(zoneType.equals("BossZone"))
                                                                {
                                                                        int boss_id = -1;

Guest
This topic is now closed to further replies.


  • Posts

    • Hi   I’m looking for npcname.dat for h5, it should have level of mobs + aggro   Currently I am using advext64, that’s why I am trying to make it through client side   I’ve seen someone already shared it before long time but unfortunately link is dead   If anyone has the file please share it
    • I'll stop playing, so I'll sell my (DC) Donator Coins  for cheap. Ask around; I have plenty. Here's the price list. Contact phone: +56 9 5429 4317    
    • Hi, im selling adena/items reborn signature C4   500kk  - 1kk = $2,90 ic set        pm here or discord  _flamber 
    • Want more engagement, reach, and traffic on Discord? Automate promotion of your server, members, reactions, and messages in minutes — no bots, no hassle, no overpayments. SocNet’s SMM Panel — fast launch, fair prices, real results. Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, SoundCloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, Trustpilot, Apple Music, TripAdvisor, Snapchat, and more digital services. Followers, likes, views, reposts, plays, viewers, reactions, comments. Get $1 bonus for your first trial order! Just open a ticket with the subject “Get Trial Bonus” on our website (Support) ➡ Go to SMM Panel (clickable) or contact our bot support How to order: ➡ SMM Panel: Click ➡ SMM Panel directly in our Telegram bot: Click (Menu ➡ SMM Panel) Our Digital Goods Store: ➡ Online Store: Click ➡ Telegram Bot: Click Regular customers get extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Get wholesale consultations — Discuss partnership deals (current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet — your source for digital goods and premium subscriptions Our project is also looking for new suppliers! — Snapchat accounts — Reddit accounts with karma — LinkedIn accounts with connections Message us directly or contact support — let’s discuss the terms! We are always open to other partnership offers as well. Our online store assortment: ➡ Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, email accounts (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads ➡ Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass ➡ Additional Services: Telegram Stars, proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, others), VDS/RDP servers Use promo code AUGUST2025 — get 10% off in our online store! SMM Panel Services: ➡ Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, Trust Pilot, Apple Music, Tripadvisor, Snapchat, and other digital products. Get $1 for your first SMM Panel trial: Simply create a support ticket with the subject “Get Trial Bonus” on our website ➡ Go to SMM Panel (clickable) or contact support via bot Our Key Products: ➡ Online Store: Click ➡ Shop Telegram Bot: Click ➡ SMM Panel: Click Payments accepted: bank cards · cryptocurrency · other popular methods Loyal customers receive additional discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Consult on wholesale purchases — Form a partnership (current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet — digital goods and premium subscriptions store
  • 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