Sync with L2jServer HighFive May 19th 2015.
This commit is contained in:
@ -564,27 +564,28 @@ public final class RainbowSpringsChateau extends ClanHallSiegeEngine
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (event.startsWith("getItem"))
|
||||
{
|
||||
if (!_pendingItemToGet.containsKey(clan))
|
||||
{
|
||||
html = "yeti_cannot_exchange.htm";
|
||||
}
|
||||
|
||||
int left = _pendingItemToGet.get(clan);
|
||||
if (left > 0)
|
||||
{
|
||||
int itemId = Integer.parseInt(event.split("_")[1]);
|
||||
player.addItem("Rainbow Spring Chateau Siege", itemId, 1, npc, true);
|
||||
--left;
|
||||
_pendingItemToGet.put(clan, left);
|
||||
html = "yeti_main.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
html = "yeti_cannot_exchange.htm";
|
||||
}
|
||||
}
|
||||
// TODO(Zoey76): Rewrite this to prevent exploits...
|
||||
// else if (event.startsWith("getItem"))
|
||||
// {
|
||||
// if (!_pendingItemToGet.containsKey(clan))
|
||||
// {
|
||||
// html = "yeti_cannot_exchange.htm";
|
||||
// }
|
||||
//
|
||||
// int left = _pendingItemToGet.get(clan);
|
||||
// if (left > 0)
|
||||
// {
|
||||
// int itemId = Integer.parseInt(event.split("_")[1]);
|
||||
// player.addItem("Rainbow Spring Chateau Siege", itemId, 1, npc, true);
|
||||
// --left;
|
||||
// _pendingItemToGet.put(clan, left);
|
||||
// html = "yeti_main.htm";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// html = "yeti_cannot_exchange.htm";
|
||||
// }
|
||||
// }
|
||||
|
||||
return html;
|
||||
}
|
||||
|
Reference in New Issue
Block a user