[Release]Teleportsystem Lite-Version [Gui+Quest+Code]

09/12/2014 21:31 [TM]SixSense#91
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 garofolo#92
I I click the button and not the character teleports

Quote:
Originally Posted by Capella2009 View Post
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 View Post
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 Kurogane'#93
Quote:
Originally Posted by Capella2009 View Post
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 garofolo#94
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 CryPrime#95
Quote:
Originally Posted by huaaaaaaaaa View Post
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.

[Only registered and activated users can see links. Click Here To Register...]

Da wo rot ist, da den pfad ändern.
09/15/2014 19:03 OoKaMi_#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 andrewsXx#97
Password Archive.?
09/17/2014 08:39 isolator0524#98
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 .Inya#99
Quote:
Originally Posted by isolator0524 View Post
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 i'm HNSY#100
Könnt ihr evtl mir behilflich sein?

Sobald ich (Strg + J ) das Mapfenster öffne, kommt nichts (alles verdunkelt)
die Pfade sollten eigentlich richtig sein..

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
09/17/2014 16:35 CryPrime#101
Quote:
Originally Posted by i'm HNSY View Post
Könnt ihr evtl mir behilflich sein?

Sobald ich (Strg + J ) das Mapfenster öffne, kommt nichts (alles verdunkelt)
die Pfade sollten eigentlich richtig sein..

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
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 .Nizami#102
like cabal aber nice work xd
09/18/2014 16:58 i'm HNSY#103
Funktioniert das System bei jemanden von euch zu 100% ?
09/18/2014 17:25 CryPrime#104
Quote:
Originally Posted by i'm HNSY View Post
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 i'm HNSY#105
Quote:
Originally Posted by CryPrime View Post
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)