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.
Hello. You may encounter the Push item fail error when trying to pick up an item dropped on the ground by a mob.
or
You can throw something out of your inventory and pick it up again, several times.
Probably this is a quantum dependency) I don't understand at what point this happens, sometimes two items one after another experience push item errors, and sometimes I don't have enough thousands of attempts to repeat this trick)
In any case, this is just a visual error and after the relog, the item appears in the inventory. I think first i need to disconnect the extender and check it on a bare server. I still need time to check this, maybe it's not even about the autoloot function.
https://youtu.be/6mcfmdImofE
-----------
In general, I would like to thank our wonderful Emca Eressea for her deep knowledge in programming and reverse engineering. And for the fact that her work is open to everyone, this is very amazing, and incredibly valuable.
ADENA
500 K = 40e
1kk = 70e
3kk = 190e
ITEMS
staff of life = 150e
karmian set = 90e
elven jewls top D = 30e
Orcish Poleaxe+1 best C pole = 680e
any D grade armor on demand
discord
wiz0642_81242
Question
Red-Hair-Shanks
paidia pernaw ena java code twra sto pack kai kolisa
me ta kokina gramata einai code pou exw eidei apo compile!
package .gameserver.model.zone.type;
import javolution.util.FastList;
import .Config;
import ll.gameserver.model.L2Character;
import.gameserver.model.actor.instance.L2PcInstance;
import gameserver.model.zone.L2ZoneType;
import .util.Rnd;
import org.w3c.dom.Node;
public class L2TownZone extends L2ZoneType
{
public L2TownZone(int id)
{
super(id);
_taxById = 0;
_spawnLocs = new FastList<int[]>();
_redirectTownId = 9;
_noPeace = false;
}
public void setParameter(String s, String s1)
{
if(s.equals("name"))
_townName = s1;
else
if(s.equals("townId"))
_townId = Integer.parseInt(s1);
else
if(s.equals("redirectTownId"))
_redirectTownId = Integer.parseInt(s1);
else
if(s.equals("taxById"))
_taxById = Integer.parseInt(s1);
else
if(s.equals("noPeace"))
_noPeace = Boolean.parseBoolean(s1);
else
super.setParameter(s, s1);
}
public void setSpawnLocs(Node node)
{
int ai[] = new int[3];
Node node1 = node.getAttributes().getNamedItem("X");
if(node1 != null)
ai[0] = Integer.parseInt(node1.getNodeValue());
node1 = node.getAttributes().getNamedItem("Y");
if(node1 != null)
ai[1] = Integer.parseInt(node1.getNodeValue());
node1 = node.getAttributes().getNamedItem("Z");
if(node1 != null)
ai[2] = Integer.parseInt(node1.getNodeValue());
if(ai != null)
_spawnLocs.add(ai);
}
protected void onEnter(L2Character l2character)
{
if((l2character instanceof L2PcInstance) && ((L2PcInstance)l2character).getSiegeState() != 0 && Config.ZONE_TOWN == 1)
return;
if(!_noPeace && Config.ZONE_TOWN != 2)
l2character.setInsideZone(2, true);
}
protected void onExit(L2Character l2character)
{
if(!_noPeace)
l2character.setInsideZone(2, false);
}
public void onDieInside(L2Character l2character)
{
}
public void onReviveInside(L2Character l2character)
{
}
public String getName()
{
return _townName;
}
public int getTownId()
{
return _townId;
}
public int getRedirectTownId()
{
return _redirectTownId;
}
public final int[] getSpawnLoc()
{
int ai[] = new int[3];
ai = (int[])_spawnLocs.get(Rnd.get(_spawnLocs.size()));
return ai;
}
public final int getTaxById()
{
return _taxById;
}
private String _townName;
private int _townId;
private int _redirectTownId;
private int _taxById;
private boolean _noPeace;
private FastList<int[]> _spawnLocs;
}
---------------------------------------------------------
kai aftw edw einai pou 8elw na perasw!
8elw na me help pws na to perasw gt kanw search kai den briskw tpt apo to ctrl+f.
@@ -95,12 +95,28 @@
{
if (character instanceof L2PcInstance)
{
+ // just a method, for efficiency
+ L2PcInstance activeChar = ((L2PcInstance)character);
+
// PVP possible during siege, now for siege participants only
// Could also check if this town is in siege, or if any siege is going on
- if (((L2PcInstance)character).getSiegeState() != 0 && Config.ZONE_TOWN == 1)
+ if (activeChar.getSiegeState() != 0 && Config.ZONE_TOWN == 1)
return;
//((L2PcInstance)character).sendMessage("You entered "+_townName);
+
+ if (activeChar.isDonator() && getTownId() == 7)
+ {
+ activeChar.sendMessage("Donators can't enter Gludio. You are now jailed.");
+ activeChar.setInJail(true, 10);
+ }
+ else if (activeChar.isDonator() && getTownId() == 8)
+ {
+ activeChar.sendMessage("Donators can't enter Dion. You are now jailed.");
+ activeChar.setInJail(true, 10);
+ }
+ else
+ activeChar.sendMessage("You have entered a non-restricted area.");
}
if (!_noPeace && Config.ZONE_TOWN != 2) character.setInsideZone(L2Character.ZONE_PEACE, true);
@@ -114,7 +130,15 @@
// if (character instanceof L2PcInstance)
//((L2PcInstance)character).sendMessage("You left "+_townName);
-
+
+ if (character instanceof L2PcInstance)
+ {
+ if (((L2PcInstance)character).isDonator() && (getTownId() == 7 || getTownId() == 8) && !((L2PcInstance)character).isInJail())
+ {
+ ((L2PcInstance)character).sendMessage("How you entered in first place? Oh i hate exploiters!");
+ ((L2PcInstance)character).setInJail(true, 60);
+ }
+ }
}
@Override
[move]
enas empiros dev pliz na mou dwsei to code perasmenw[/move]
4 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.