Στο aCis είναι έτσι
@L2TeleporterInstance (instance)
if (Config.ALT_GAME_FREE_TELEPORT || player.destroyItemByItemId("Teleport " + (list.getIsForNoble() ? " nobless" : ""), 57, price, this, true))
όπου 57 είναι το id του item που ζητάει για κάθε teleport και το price καθορίζεται από xml όπου στο frozen είναι από database.
Και με τα δεδομένα του aCis, με την παρακάτω γραμμή
if (list.getTeleId() == 1) player.destroyItemByItemId("", 9142, 1, player, true);
στο teleport με id 1, θα παίρνει το x item.
Εάν θέλεις παραπάνω βοήθεια με τα δεδομένα του frozen, κάνε με add στο skype (harris.devlin).
============================================
### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2TeleporterInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2TeleporterInstance.java (revision 1004)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2TeleporterInstance.java (working copy)
@@ -328,6 +328,11 @@
}
player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ(), true);
}
+ else if (list.getTeleId() == 1)
+ {
+ player.destroyItemByItemId("Teleport.", 9142, 1, player, true);
+ player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ(), true);
+ }
}
else
{
Οπου 1 = το teleport id, 9142 το id του item που θέλεις να παίρνει και 1 (δίπλα από το 9142) είναι το πόσα item να παίρνει.
Άμα θέλεις πολλά teleport να είναι έτσι, απλά κάνε c/p αυτό που σου έδωσα και άλλαξε τις μεταβλητές.