Jump to content
  • 0

Gatekeeper ?


StinkyMadness

Question

Psaxnw to pos borw se enan L2Teleporter na valo diaforetika Cost sta Teleports. Ti enow....

 

p.x.

 

Giran Castle Town - 15000 Adena
Aden Castle Town - 15000 Adena

Farming Zone - 30000 Adena

Party Zone - 30 Event Medal

Baium Zone - 1 Raid Scroll

Olympiad Zone - 10 Gold Bar

 

 

Ginete kati tetio se Interlude L2jFrozen Rev:1004 ?

anagastika 8elei Java Code?

Iparxei kapio share ?

Euxaristo :)

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

you need special gatekeeper working like 
 

 

<target loc="-80684 149770 -3040" item_id="57" price="18000" name="1010004" StringName="Giran StringNameLang="Giran"/>
<target loc="9744 15645 -4568" item_id="57" price="24000" name="1010003" StringName="Farm Zone" StringNameLang="Farmzone"/>
<target loc="115120 -178224 -880" item_id="57" price="46000" name="1010009" StringName="Party Zone" StringNameLang="Party Zone"/>
<target loc="46951 51550 -2976" item_id="57" price="23000" name="1010002" StringName="Baium" StringNameLang="Baium"/>


 
Edited by ๖ۣۜinfamousbytes๖ۣ
Link to comment
Share on other sites

  • 0

you need special gatekeeper working like 

 

 

so i put this on HTML ? O_O

 

<target loc="-80684 149770 -3040" item_id="57" price="18000" name="1010004" StringName="Giran StringNameLang="Giran"/>

<target loc="9744 15645 -4568" item_id="57" price="24000" name="1010003" StringName="Farm Zone" StringNameLang="Farmzone"/>
<target loc="115120 -178224 -880" item_id="57" price="46000" name="1010009" StringName="Party Zone" StringNameLang="Party Zone"/>

<target loc="46951 51550 -2976" item_id="57" price="23000" name="1010002" StringName="Baium" StringNameLang="Baium"/>

Link to comment
Share on other sites

  • 0

ego den 8imame akribos. omos ego to eixa balei ola free ston server mou.

 

to alazeis sta data kapou prepei na exei teleport. kai alazeis ta adena . i sto navicat . alla nomizo prepei na einai stin data . kai psaxe 

Link to comment
Share on other sites

  • 0

ameServerConfig.ALT_GAME_FREE_TELEPORT || player.reduceAdena("Teleport",

 

mono auto mporesa na bro sto java sto l2teleporterinstance den sou lew kati gia na mhn ginoun ola mpourdelo gt den exw idea :)

Link to comment
Share on other sites

  • 0

sto acis einai etsi

 

 

<teleport id="1" loc_x="-12672" loc_y="122776" loc_z="-3116" price="10000" fornoble="0"/>
<teleport id="2" loc_x="-12672" loc_y="122776" loc_z="-3116" price="9200" fornoble="0"/>
<teleport id="3" loc_x="46934" loc_y="51467" loc_z="-2977" price="9200" fornoble="0"/>
<teleport id="4" loc_x="9745" loc_y="15606" loc_z="-4574" price="10000" fornoble="0"/>
<teleport id="5" loc_x="-80826" loc_y="149775" loc_z="-3043" price="7300" fornoble="0"/>
<teleport id="6" loc_x="15670" loc_y="142983" loc_z="-2705" price="3400" fornoble="0"/>
<teleport id="7" loc_x="-44836" loc_y="-112524" loc_z="-235" price="26000" fornoble="0"/>
<teleport id="8" loc_x="115113" loc_y="-178212" loc_z="-901" price="38000" fornoble="0"/>
<teleport id="9" loc_x="-84318" loc_y="244579" loc_z="-3730" price="9400" fornoble="0"/>
<teleport id="10" loc_x="46934" loc_y="51467" loc_z="-2977" price="16000" fornoble="0"/>
<teleport id="11" loc_x="9745" loc_y="15606" loc_z="-4574" price="16000" fornoble="0"/>
Edited by ExCaLiBuR®
Link to comment
Share on other sites

  • 0

 

sto acis einai etsi

<teleport id="1" loc_x="-12672" loc_y="122776" loc_z="-3116" price="10000" fornoble="0"/>
<teleport id="2" loc_x="-12672" loc_y="122776" loc_z="-3116" price="9200" fornoble="0"/>
<teleport id="3" loc_x="46934" loc_y="51467" loc_z="-2977" price="9200" fornoble="0"/>
<teleport id="4" loc_x="9745" loc_y="15606" loc_z="-4574" price="10000" fornoble="0"/>
<teleport id="5" loc_x="-80826" loc_y="149775" loc_z="-3043" price="7300" fornoble="0"/>
<teleport id="6" loc_x="15670" loc_y="142983" loc_z="-2705" price="3400" fornoble="0"/>
<teleport id="7" loc_x="-44836" loc_y="-112524" loc_z="-235" price="26000" fornoble="0"/>
<teleport id="8" loc_x="115113" loc_y="-178212" loc_z="-901" price="38000" fornoble="0"/>
<teleport id="9" loc_x="-84318" loc_y="244579" loc_z="-3730" price="9400" fornoble="0"/>
<teleport id="10" loc_x="46934" loc_y="51467" loc_z="-2977" price="16000" fornoble="0"/>
<teleport id="11" loc_x="9745" loc_y="15606" loc_z="-4574" price="16000" fornoble="0"/>

 

Ginete kati tetio se Interlude L2jFrozen Rev:1004 ?

Link to comment
Share on other sites

  • 0

Εκτός από την database πήγαινε και στο αρχείο htm του συγκεκριμένου NPC και άλλαξε εκεί τις τιμές. Γιατί διαφορετικά θα δείχνει ότι για παράδειγμα από την Giran στη Dion, θέλει 6800 adena, ενώ εσύ στην database το έχεις αλλάξει σε 7000.

 

Η διαδρομή για να βρεις αυτό το αρχείο όσο αναφορά το Frozen είναι \L2jFrozen\gameserver\data\html\teleporter.

Link to comment
Share on other sites

  • 0

Στο 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 αυτό που σου έδωσα και άλλαξε τις μεταβλητές.

Edited by DAMN^Devlin
Link to comment
Share on other sites

  • 0

ExCaLiBuR® kai SirLionheart esy kala ta lete alla sto Database tou Frozen dn leei ItemID / Price leei mono "Price" kai einai posa adena 8elw na to valw... dn exw pou8ena epologh na to valo na einai cost kapio alo item ektos twn adena

cKnTGXY.png
 

Edited by StinkyMadness
Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...