I believe it's 5 min of coding for someone who knows about how map integers work and what is necessary for OnEnter world and OnExit world
Not sure if someone will be able to help me for free adding what im requesting on the code... ,money OFF!! but if you want to get involved on project ,i will pay soon for future bugs which surely my pack will have
This is the multifunction.java
/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.model.zone.type;
public class L2MultiFunctionZone extends L2SpawnZone
{
FastMap<Object, Object> _names = new FastMap<>();
FastMap<Object, Object> _titles = new FastMap<>();
public L2MultiFunctionZone(int id)
{
super(id);
loadConfigs();
}
L2PcInstance activeChar;
Random random = new Random();
public static boolean pvp_enabled, restart_zone, store_zone, logout_zone, revive_noblesse, revive_heal, revive, remove_buffs, remove_pets, give_noblesse;
static int radius, enchant, revive_delay;
static int[][] spawn_loc;
L2Skill noblesse = SkillTable.getInstance().getInfo(1323, 1);
private static List<String> items = new FastList<String>();
private static List<String> grades = new FastList<String>(), classes = new FastList<String>();
public static List<int[]> rewards;
static String[] gradeNames = {"","D","C","B","A","S","S80","S84"};
if (character instanceof L2PcInstance)
{
L2PcInstance activeChar = ((L2PcInstance) character);
if(classes != null && classes.contains(""+activeChar.getClassId().getId()))
{
activeChar.teleToLocation(83597,147888,-3405);
activeChar.sendMessage("Your class is not allowed in this area.");
return;
}
for(L2ItemInstance o : activeChar.getInventory()._items)
{
if(o.isEquipable() && o.isEquipped() && !checkItem(o))
{
int slot = activeChar.getInventory().getSlotFromItem(o);
activeChar.getInventory().unEquipItemInBodySlot(slot);
activeChar.sendMessage(o.getName()+" unequiped because is not allowed inside this zone.");
}
}
activeChar.sendMessage("You entered in pvp zone.");
activeChar.getAppearance().setVisibleName("Player");
activeChar.getAppearance().setVisibleTitle("Kill Me");
clear(activeChar);
if(give_noblesse)
noblesse.getEffects(activeChar, activeChar);
if(pvp_enabled && activeChar.getPvpFlag() == 0)
activeChar.updatePvPFlag(1);
}
}
private static int[][] parseItemsList(String line)
{
final String[] propertySplit = line.split(";");
if (propertySplit.length == 0)
return null;
int i = 0;
String[] valueSplit;
final int[][] result = new int[propertySplit.length][];
for (String value : propertySplit)
{
valueSplit = value.split(",");
if (valueSplit.length != 3)
{
return null;
}
I doubt someone will make them for me so if you can at least give me an advice for each one of those? or do at least for name/title/pvp restriction while i will try to handle the others!
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.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
Hello everyone!
I have a problem with editing mobs. I took some Mobs from here without sound and added them,
they looked good !!! BUT BUT !
When I hit him it does generate the effect, but when he hits it it doesn't.
Is this effect controlled from Npcgrp.dat?
PD_ I add capture of the event / effect I mention.
I await your answers, thank you!
Question
kingsoul
I believe it's 5 min of coding for someone who knows about how map integers work and what is necessary for OnEnter world and OnExit world
Not sure if someone will be able to help me for free adding what im requesting on the code... ,money OFF!! but if you want to get involved on project ,i will pay soon for future bugs which surely my pack will have
This is the multifunction.java
So far the only thing i have manage to add is
Edited by kingsoul
0 answers to this question
Recommended Posts
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.