|
You last visited: Today at 17:58
Advertisement
[Release]Teleportsystem Lite-Version [Gui+Quest+Code]
Discussion on [Release]Teleportsystem Lite-Version [Gui+Quest+Code] within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
09/12/2014, 21:31
|
#91
|
elite*gold: 110
Join Date: Oct 2009
Posts: 134
Received Thanks: 96
|
Error? What error?
Make a new quest: teleport.quest
Add only this:
PHP Code:
quest teleport begin state start begin when login begin cmdchat("Teleport index"..q.getcurrentquestindex()) end when info or button begin local i = tonumber(input(cmdchat("Teleport GetInfo"))) if type(i) != "number" then return end local warp = warp_kords() if warp[i] == nil then return end local get_first_number = warp[i][1] chat("Your result of click: "..get_first_number.."") end end end
My teleport.quest has 770 lines :P
|
|
|
09/12/2014, 21:42
|
#92
|
elite*gold: 0
Join Date: Aug 2011
Posts: 28
Received Thanks: 7
|
I I click the button and not the character teleports
Quote:
Originally Posted by Capella2009
quest_functions
Add: warp_kords
questlib.lua
I put only 5 in this example, you should put 30.. just continue the numbers.
Quest:
Try'it
P.S. Then you must control de maps .. the conditions .. so you will use always "get_first_number"
like: if get_first_number == 11 then pc.warp(XXXX00,XXXX00) end
|
Quote:
Originally Posted by Capella2009
Error? What error?
Make a new quest: teleport.quest
Add only this:
PHP Code:
quest teleport begin
state start begin
when login begin
cmdchat("Teleport index"..q.getcurrentquestindex())
end
when info or button begin
local i = tonumber(input(cmdchat("Teleport GetInfo")))
if type(i) != "number" then return end
local warp = warp_kords()
if warp[i] == nil then return end
local get_first_number = warp[i][1]
chat("Your result of click: "..get_first_number.."")
end
end
end
My teleport.quest has 770 lines :P
|
did not work :/
|
|
|
09/12/2014, 21:52
|
#93
|
elite*gold: 0
Join Date: Jan 2011
Posts: 258
Received Thanks: 22
|
Quote:
Originally Posted by Capella2009
quest_functions
Add: warp_kords
questlib.lua
I put only 5 in this example, you should put 30.. just continue the numbers.
Quest:
Try'it
P.S. Then you must control de maps .. the conditions .. so you will use always "get_first_number"
like: if get_first_number == 11 then pc.warp(XXXX00,XXXX00) end
|
Could you put a quest already made for this system ? [ only one line of teleport, to see what we should change ]
An example. Please
|
|
|
09/12/2014, 22:02
|
#94
|
elite*gold: 0
Join Date: Aug 2011
Posts: 28
Received Thanks: 7
|
Well I was using the tutorial quest
Code:
quest teleport begin
state start begin
when login begin
local map = pc.get_map_index()
cmdchat("Index mapa : "..map)
end
when info or button begin
local i = tonumber(input(cmdchat("Teleport GetInfo")))
if type(i) != "number" then return end
local warp = teleport.warp_kords()
if warp[i] == nil then return end
pc.warp(warp[i][1],warp[i][2])
end
function warp_kords()
return {
{459800,953900}, --Dt
{459800,953900}, --Tempel
{459800,953900}, --Donner
{459800,953900}, --Roter Wald
{459800,953900}, --Kap
{459800,953900}, --AD
{459800,953900}, --Lungsam
{459800,953900}, --NW
{459800,953900}, --Berg Sohan
{459800,953900}, --Bakra
{459800,953900}, --OT
{459800,953900}, --DC
{459800,953900}, --Bokjung
{459800,953900}, --AD
{459800,953900}, --Chunjo
{459800,953900}, --Nephritibucht
{459800,953900}, --Grotte1
{459800,953900}, --Grotte2
{459800,953900}, --Grotte Boss
{459800,953900}, --Sd2
{459800,953900}, --Sd3
{459800,953900}, --Sd Boss
{459800,953900}, --Yayang
{459800,953900}, --Shinsoo
{459800,953900}, --AD
{459800,953900}, --Wüste
{459800,953900}, --Schlangenfeld
{459800,953900}, --Jinno
{459800,953900}, --Feuerland
{10,10} --Gautamarkliff
}
end
end
end
|
|
|
09/15/2014, 05:16
|
#95
|
elite*gold: 0
Join Date: Jul 2013
Posts: 809
Received Thanks: 1,612
|
Quote:
Originally Posted by huaaaaaaaaa
kann mir jemand sagen wo ich die .tga verpacken soll ?
danke im voraus
|
Achhh Yoshiii -.-
Ich glaube, es kommt in "root" Main ordner
habe denn Typen 1000x gesagt der soll es in etc packen
und root ned zuspamen. Janu, das könnt ihr aber eig
selber machen.
Da wo rot ist, da den pfad ändern.
|
|
|
09/15/2014, 19:03
|
#96
|
elite*gold: 0
Join Date: Jun 2014
Posts: 269
Received Thanks: 96
|
Quote:
|
kann mir jemand sagen wo ich die .tga verpacken soll ?
|
Ihr könnt in der Root, ein Ordner erstellen und da die .tga einfügen.
Und dann in der uiteleport.py der pfad angeben, z.b. ("d:/ymir work/teleport/main.tga").
So habe ich es zumindest gemacht.
|
|
|
09/17/2014, 06:07
|
#97
|
elite*gold: 0
Join Date: Jun 2013
Posts: 5
Received Thanks: 2
|
Password Archive.?
|
|
|
09/17/2014, 08:39
|
#98
|
elite*gold: 0
Join Date: Jan 2013
Posts: 31
Received Thanks: 0
|
Quote:
Sucht nach:
Code:
__ServerCommand_Build
und schreibt folgendes zur Tabelle:
Code:
"Teleport" : self.Teleport,
|
Dies ist, wie sollten Sie es in dem Teil zu setzen?
so ich es auf:
Code:
self.__ServerCommand_Build()
"Teleport" : self.Teleport,
syserr:
Code:
0917 08:32:20542 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=12, itemIndex=10139) - Failed to item data
0917 08:32:20543 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=11, itemIndex=10139) - Failed to item data
0917 08:32:20901 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0917 08:32:22375 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.
0917 08:32:32687 :: Traceback (most recent call last):
0917 08:32:32688 :: File "networkModule.py", line 237, in SetGamePhase
0917 08:32:32688 :: File "system.py", line 130, in __pack_import
0917 08:32:32688 :: File "
0917 08:32:32688 :: <string>
0917 08:32:32688 :: ", line
0917 08:32:32688 :: 132
0917 08:32:32688 ::
0917 08:32:32688 ::
0917 08:32:32688 :: "Teleport" : self.Teleport,
0917 08:32:32688 ::
0917 08:32:32688 :: ^
0917 08:32:32688 :: SyntaxError
0917 08:32:32688 :: :
0917 08:32:32688 :: invalid syntax
0917 08:32:32688 ::
|
|
|
09/17/2014, 10:51
|
#99
|
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
|
Quote:
Originally Posted by isolator0524
Dies ist, wie sollten Sie es in dem Teil zu setzen?
so ich es auf:
Code:
self.__ServerCommand_Build()
"Teleport" : self.Teleport,
syserr:
Code:
0917 08:32:20542 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=12, itemIndex=10139) - Failed to item data
0917 08:32:20543 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=11, itemIndex=10139) - Failed to item data
0917 08:32:20901 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0917 08:32:22375 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.
0917 08:32:32687 :: Traceback (most recent call last):
0917 08:32:32688 :: File "networkModule.py", line 237, in SetGamePhase
0917 08:32:32688 :: File "system.py", line 130, in __pack_import
0917 08:32:32688 :: File "
0917 08:32:32688 :: <string>
0917 08:32:32688 :: ", line
0917 08:32:32688 :: 132
0917 08:32:32688 ::
0917 08:32:32688 ::
0917 08:32:32688 :: "Teleport" : self.Teleport,
0917 08:32:32688 ::
0917 08:32:32688 :: ^
0917 08:32:32688 :: SyntaxError
0917 08:32:32688 :: :
0917 08:32:32688 :: invalid syntax
0917 08:32:32688 ::
|
You have to insert it in the existing table in that function
|
|
|
09/17/2014, 14:06
|
#100
|
elite*gold: 10
Join Date: Nov 2013
Posts: 625
Received Thanks: 483
|
Könnt ihr evtl mir behilflich sein?
Sobald ich (Strg + J ) das Mapfenster öffne, kommt nichts (alles verdunkelt)
die Pfade sollten eigentlich richtig sein..
|
|
|
09/17/2014, 16:35
|
#101
|
elite*gold: 0
Join Date: Jul 2013
Posts: 809
Received Thanks: 1,612
|
Quote:
Originally Posted by i'm HNSY
Könnt ihr evtl mir behilflich sein?
Sobald ich (Strg + J ) das Mapfenster öffne, kommt nichts (alles verdunkelt)
die Pfade sollten eigentlich richtig sein..
|
Oben hast du "Ymir Work" und unten direkt Teleport ohne "Ymir Work"
wenn du nur "Teleport" machst, dann ist das in der root, und die root ist nicht in "Ymir Work".
Mach die Pfade einfach so:
root > teleport > dateien.
|
|
|
09/17/2014, 19:33
|
#102
|
elite*gold: 115
Join Date: Sep 2013
Posts: 597
Received Thanks: 83
|
like cabal aber nice work xd
|
|
|
09/18/2014, 16:58
|
#103
|
elite*gold: 10
Join Date: Nov 2013
Posts: 625
Received Thanks: 483
|
Funktioniert das System bei jemanden von euch zu 100% ?
|
|
|
09/18/2014, 17:25
|
#104
|
elite*gold: 0
Join Date: Jul 2013
Posts: 809
Received Thanks: 1,612
|
Quote:
Originally Posted by i'm HNSY
Funktioniert das System bei jemanden von euch zu 100% ?
|
Wenn ihr es richtig einfügt, sollte da kein Problem geben.
|
|
|
09/18/2014, 17:32
|
#105
|
elite*gold: 10
Join Date: Nov 2013
Posts: 625
Received Thanks: 483
|
Quote:
Originally Posted by CryPrime
Wenn ihr es richtig einfügt, sollte da kein Problem geben.
|
Clientside habe ich die Probleme gelöst, danke nochmal
serverside nicht wirklich..
nur als teleport.lua dies eingefügt :
PHP Code:
quest teleport begin state start begin when login begin cmdchat("Teleport index"..q.getcurrentquestindex()) end when info or button begin local i = tonumber(input(cmdchat("Teleport GetInfo"))) if type(i) != "number" then return end local warp = warp_kords() if warp[i] == nil then return end local get_first_number = warp[i][1] CHAT("Your result of click: "..get_first_number.."") end function warp_kords() return { {459800,953900}, --Dt {459800,953900}, --Tempel {459800,953900}, --Donner {459800,953900}, --Roter Wald {459800,953900}, --Kap {459800,953900}, --AD {459800,953900}, --Lungsam {459800,953900}, --NW {459800,953900}, --Berg Sohan {459800,953900}, --Bakra {459800,953900}, --OT {459800,953900}, --DC {459800,953900}, --Bokjung {459800,953900}, --AD {459800,953900}, --Chunjo {459800,953900}, --Nephritibucht {459800,953900}, --Grotte1 {459800,953900}, --Grotte2 {459800,953900}, --Grotte Boss {459800,953900}, --Sd2 {459800,953900}, --Sd3 {459800,953900}, --Sd Boss {459800,953900}, --Yayang {459800,953900}, --Shinsoo {459800,953900}, --AD {459800,953900}, --Wüste {459800,953900}, --Schlangenfeld {459800,953900}, --Jinno {459800,953900}, --Feuerland } end end end
(koordinaten nur zum testen)
in die questlib :
PHP Code:
function warp_kords() return { {459800,953900}, --Dt {459800,953900}, --Tempel {459800,953900}, --Donner {459800,953900}, --Roter Wald {459800,953900}, --Kap {459800,953900}, --AD {459800,953900}, --Lungsam {459800,953900}, --NW {459800,953900}, --Berg Sohan {459800,953900}, --Bakra {459800,953900}, --OT {459800,953900}, --DC {459800,953900}, --Bokjung {459800,953900}, --AD {459800,953900}, --Chunjo {459800,953900}, --Nephritibucht {459800,953900}, --Grotte1 {459800,953900}, --Grotte2 {459800,953900}, --Grotte Boss {459800,953900}, --Sd2 {459800,953900}, --Sd3 {459800,953900}, --Sd Boss {459800,953900}, --Yayang {459800,953900}, --Shinsoo {459800,953900}, --AD {459800,953900}, --Wüste {459800,953900}, --Schlangenfeld {459800,953900}, --Jinno {459800,953900}, --Feuerland {459800,953900}, --Gautamarkliff } end
die quest funktionen dafür natürlich auch..
keine Ahnung, Ingame klappts dann leider nicht (rebootet)
|
|
|
 |
|
Similar Threads
|
[Release]Accountschutz 1.0 - lite Version
10/22/2010 - AutoIt - 6 Replies
Hi Community!
Da mein Account (in Runes of Magic, 4Story und anderen MMORPGs)
in letzter Zeit immer wieder missbraucht wurde (darunter
verstehe ich: Gold/Equipment klauen/verkaufen, oder ähnliches),
habe ich mir überlegt, einen Accountschutz mit AutoIT zu basteln.
Er funktioniert folgendermaßen:
Erstens:
Starte den Accountschutz
Zweitens:
|
[RELEASE] SystemZer0 V6.3 + [Quest V2.0] + [Mansion V1.0] [Lite] [2.27.08]
06/13/2009 - GunZ - 18 Replies
WORKING AFTER THE 2/27/08 PATCH
Hacks Included:
From SystemZer0 V6.3
Edited World Items
Cuss Filter Disabled
Quest God Mode
Prem
Chest
Legs
|
[RELEASE] SystemZer0 V6.4 + [Quest V2.0] + [Mansion V2.0] [Super/Lite] [3.12.08]
06/22/2008 - GunZ - 3 Replies
WORKING AFTER THE 3/12/08 PATCH
Hacks Included:
From SystemZer0 V6.4
Edited World Items
Cuss Filter Disabled
Quest God Mode
Prem -2 New Unreleased Prems
Chest
Legs
|
[RELEASE]SystemZer0 V6.1 + [Quest V2.0] + [Lite] [2.13.08]
02/19/2008 - GunZ - 2 Replies
WORKING AFTER THE 2/13/08 PATCH
Hacks Included:
From SystemZer0 V6.1
Edited World Items
Cuss Filter Disabled
Quest God Mode
All quest monsters spawn on you
Mansion edited spawn locations SystemZer0: You MUST have all maps attached. If you dont use the maps you will get you "Cannot not create game "error.
SystemZer0 : : You do NOT need any edited maps, if you use the maps, instead you will get "Cannot not create game" error.
|
All times are GMT +1. The time now is 17:58.
|
|