Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 12:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[REQUEST] Custom Teleport Problem

Discussion on [REQUEST] Custom Teleport Problem within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 24
Received Thanks: 3
[REQUEST] Custom Teleport Problem

Hey guys....

I have an Problem but i cant fix it alone....

My F****** BU****** Problem:

I fount that via google..:

PHP Code:
USE SRO_VT_SHARD /* Add new Teleport By Arabianfox */


DECLARE  [MENTION=2110853]teleport[/MENTIONVARCHAR (64)
DECLARE @
CHARNAME1 VARCHAR (30)
DECLARE @
CHARNAME2 VARCHAR (30)
DECLARE [
MENTION=333751]Ownt[/MENTION]eleport INT
DECLARE @Fee INT
DECLARE  [MENTION=1331661]Required[/MENTION]LVL INT

/* Put your settings here */
SET  [MENTION=2110853]teleport[/MENTION] = 'PVP_ZONE' -- any name you want exPK_ZONE or PVP_ZONE
SET 
@CHARNAME1 'CHARNAME1' -- Teleport position
SET 
@CHARNAME2 'CHARNAME2' -- Spawn position after teleport
SET 
[MENTION=333751]Ownt[/MENTION]eleport 1  -- Target teleport ID exfor Jangan for Hotan 20 for Constantinople
SET 
@Fee 50000  -- Gold amount to Pass the teleport
SET  
[MENTION=1331661]Required[/MENTION]LVL 0  -- minimum level required to teleport 0 for no restriction ex:90 lvl 90 and higher can teleport
/* settings area end here */

IF EXISTS (SELECT CodeName128 FROM _RefObjCommon WHERE CodeName128 'STORE_'  [MENTION=2110853]teleport[/MENTION])
 
BEGIN
  raiserror
('The stated teleportname of %s is already exist!',11,1  [MENTION=2110853]teleport[/MENTION]);
  RETURN;
 
END
    
    
DECLARE @MAXOBJ INT = (SELECT MAX (IDFROM _RefObjCommon)+1
    
DECLARE  [MENTION=1184112]region[/MENTION]1 INT SET  [MENTION=1184112]region[/MENTION]= (SELECT (LatestRegionFROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE [
MENTION=1524007]pos[/MENTION]X1 INT SET [MENTION=1524007]pos[/MENTION]X1 = (SELECT (POSXFROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE [
MENTION=1837537]posy[/MENTION]1 INT SET [MENTION=1837537]posy[/MENTION]= (SELECT (POSYFROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE [
MENTION=1914174]posz[/MENTION]1 INT SET [MENTION=1914174]posz[/MENTION]= (SELECT (POSZFROM _Char WHERE CharName16 = @CHARNAME1)
    DECLARE @
LINK INT = (SELECT MAX (IDFROM _RefObjStruct)+1
     
    SET IDENTITY_INSERT _RefObjCommon ON
    INSERT INTO _RefObjCommon 
(Service,ID,CodeName128,ObjName128,OrgObjCodeName128,NameStrID128,DescStrID128,CashItem,Bionic,TypeID1,TypeID2,TypeID3,TypeID4,DecayTime,Country,Rarity,CanTrade,CanSell,CanBuy,CanBorrow,CanDrop,CanPick,CanRepair,CanRevive,CanUse,CanThrow,Price,CostRepair,CostRevive,CostBorrow,KeepingFee,SellPrice,ReqLevelType1,ReqLevel1,ReqLevelType2,ReqLevel2,ReqLevelType3,ReqLevel3,ReqLevelType4,ReqLevel4,MaxContain,RegionID,Dir,OffsetX,OffsetY,OffsetZ,Speed1,Speed2,Scale,BCHeight,BCRadius,EventID,AssocFileObj128,AssocFileDrop128,AssocFileIcon128,AssocFile1_128,AssocFile2_128,LinkVALUES
    
(1,@MAXOBJ,'STORE_'  [MENTION=2110853]teleport[/MENTION]  [MENTION=2110853]teleport[/MENTION],'xxx','SN_STORE_'  [MENTION=2110853]teleport[/MENTION],'xxx',0,0,4,1,1,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,-1,0,-1,0,-1,0,-1  [MENTION=1184112]region[/MENTION]1,[MENTION=1524007]pos[/MENTION]X1 [MENTION=1837537]posy[/MENTION][MENTION=1914174]posz[/MENTION]1,0,0,50,50,30,0,'quest\teleport01.bsr','xxx','xxx','xxx','xxx',@link)
    
SET IDENTITY_INSERT _RefObjCommon OFF
    
    
print ''
    
print 'Add the following line to teleportbuilding.txt  [MENTION=485444]server[/MENTION]_dep\silkroad\textdata folder'
    
print '1    '+CONVERT(varchar(max),@MAXOBJ)+'    '+'STORE_'  [MENTION=2110853]teleport[/MENTION]+'    '  [MENTION=2110853]teleport[/MENTION]+'    xxx    '+'SN_STORE_'  [MENTION=2110853]teleport[/MENTION]+'    xxx    0    0    4    1    1    0    0    3    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    0    -1    0    -1    0    -1    0    -1    '+CONVERT(varchar(max)  [MENTION=1184112]region[/MENTION]1)+'    0    '+CONVERT(varchar(max) [MENTION=1524007]pos[/MENTION]X1)+'    '+CONVERT(varchar(max) [MENTION=1837537]posy[/MENTION]1)+'    '+CONVERT(varchar(max) [MENTION=1914174]posz[/MENTION]1)+'    0    0    50    50    30    0    quest\teleport01.bsr    xxx    xxx    xxx    xxx    '+CONVERT(varchar(max),@link)
    print 
''
    
print 'Add the following line to textdata_object.txt  [MENTION=485444]server[/MENTION]_dep\silkroad\textdata folder'
    
print ''
    
print '1    '+'SN_STORE_'  [MENTION=2110853]teleport[/MENTION]+'                                '  [MENTION=2110853]teleport[/MENTION]
    print 
''
      
print ''

  
SET IDENTITY_INSERT _RefObjStruct ON
  INSERT INTO _RefObjStruct 
(ID,Dummy_DataVALUES
  
(@LINK,0)
  
SET IDENTITY_INSERT _RefObjStruct OFF
  
  
DECLARE [MENTION=835493]maxtel[/MENTION]ID INT = (SELECT MAX (IDFROM _RefTeleport)+1
  
DECLARE  [MENTION=3975794]worldi[/MENTION]D INT = (SELECT (WorldIDFROM _Char where CharName16 = @CHARNAME2)
  DECLARE  [
MENTION=1184112]region[/MENTION]2 INT SET  [MENTION=1184112]region[/MENTION]= (SELECT (LatestRegionFROM _Char WHERE CharName16 = @CHARNAME2)
  DECLARE [
MENTION=1524007]pos[/MENTION]X2 INT SET [MENTION=1524007]pos[/MENTION]X2 = (SELECT (POSXFROM _Char WHERE CharName16 = @CHARNAME2)
  DECLARE [
MENTION=1837537]posy[/MENTION]2 INT SET [MENTION=1837537]posy[/MENTION]= (SELECT (POSYFROM _Char WHERE CharName16 = @CHARNAME2)
  DECLARE [
MENTION=1914174]posz[/MENTION]2 INT SET [MENTION=1914174]posz[/MENTION]= (SELECT (POSZFROM _Char WHERE CharName16 = @CHARNAME2)

  
INSERT INTO _RefTeleport (Service,ID,CodeName128,AssocRefObjCodeName128,AssocRefObjID,ZoneName128,GenRegionID,GenPos_X,GenPos_Y,GenPos_Z,GenAreaRadius,CanBeResurrectPos,CanGotoResurrectPos,GenWorldID,BindInteractionMask,FixedServiceVALUES
  
([MENTION=835493]maxtel[/MENTION]ID,'GATE_'  [MENTION=2110853]teleport[/MENTION],'STORE_'  [MENTION=2110853]teleport[/MENTION],@MAXOBJ,'SN_STORE_'  [MENTION=2110853]teleport[/MENTION]  [MENTION=1184112]region[/MENTION][MENTION=1524007]pos[/MENTION]X2 [MENTION=1837537]posy[/MENTION][MENTION=1914174]posz[/MENTION]2,30,0,0  [MENTION=3975794]worldi[/MENTION]D,1,0)
  
  print 
''
  
print 'Add the following line to teleportdata.txt  [MENTION=485444]server[/MENTION]_dep\silkroad\textdata folder'
  
print '1    '+CONVERT(varchar(max) [MENTION=835493]maxtel[/MENTION]ID)+'    '+'GATE_'  [MENTION=2110853]teleport[/MENTION]+'    '+CONVERT(varchar(max),@MAXOBJ)+'    '+'SN_STORE_'  [MENTION=2110853]teleport[/MENTION]+'    '+CONVERT(varchar(max)  [MENTION=1184112]region[/MENTION]2)+'    '+CONVERT(varchar(max) [MENTION=1524007]pos[/MENTION]X2)+'    '+CONVERT(varchar(max) [MENTION=1837537]posy[/MENTION]2)+'    '+CONVERT(varchar(max) [MENTION=1914174]posz[/MENTION]2)+'    30    0    0    '+CONVERT(varchar(max)  [MENTION=3975794]worldi[/MENTION]D)+'    1    0'
  
print ''
  
print ''

  
IF  [MENTION=1331661]Required[/MENTION]LVL 0
  BEGIN
    INSERT INTO _RefTeleLink 
(Service,OwnerTeleport,TargetTeleport,Fee,RestrictBindMethod,RunTimeTeleportMethod,CheckResult,Restrict1,Data1_1,Data1_2,Restrict2,Data2_1,Data2_2,Restrict3,Data3_1,Data3_2,Restrict4,Data4_1,Data4_2,Restrict5,Data5_1,Data5_2VALUES
    
([MENTION=333751]Ownt[/MENTION]eleport [MENTION=835493]maxtel[/MENTION]ID,@Fee,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
    
INSERT INTO _RefTeleLink (Service,OwnerTeleport,TargetTeleport,Fee,RestrictBindMethod,RunTimeTeleportMethod,CheckResult,Restrict1,Data1_1,Data1_2,Restrict2,Data2_1,Data2_2,Restrict3,Data3_1,Data3_2,Restrict4,Data4_1,Data4_2,Restrict5,Data5_1,Data5_2VALUES
    
([MENTION=835493]maxtel[/MENTION]ID [MENTION=333751]Ownt[/MENTION]eleport,@Fee,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
    
print 
''
    
print 'Add the following lines to teleportlink.txt  [MENTION=485444]server[/MENTION]_dep\silkroad\textdata folder'
    
print '1    '+CONVERT(varchar(max) [MENTION=333751]Ownt[/MENTION]eleport)+'    '+CONVERT(varchar(max) [MENTION=835493]maxtel[/MENTION]ID)+'    '+CONVERT(varchar(max),@Fee)+'    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0'
    
print '1    '+CONVERT(varchar(max) [MENTION=835493]maxtel[/MENTION]ID)+'    '+CONVERT(varchar(max) [MENTION=333751]Ownt[/MENTION]eleport)+'    '+CONVERT(varchar(max),@Fee)+'    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0'
    
print ''
  
END
  
ELSE BEGIN
    INSERT INTO _RefTeleLink 
(Service,OwnerTeleport,TargetTeleport,Fee,RestrictBindMethod,RunTimeTeleportMethod,CheckResult,Restrict1,Data1_1,Data1_2,Restrict2,Data2_1,Data2_2,Restrict3,Data3_1,Data3_2,Restrict4,Data4_1,Data4_2,Restrict5,Data5_1,Data5_2VALUES
    
([MENTION=333751]Ownt[/MENTION]eleport [MENTION=835493]maxtel[/MENTION]ID,@Fee,0,0,0,1  [MENTION=1331661]Required[/MENTION]LVL,999,0,0,0,0,0,0,0,0,0,0,0,0)
    
    print 
''
    
print ''
    
print 'Add the following line to teleportlink.txt  [MENTION=485444]server[/MENTION]_dep\silkroad\textdata folder'
    
print '1    '+CONVERT(varchar(max) [MENTION=333751]Ownt[/MENTION]eleport)+'    '+CONVERT(varchar(max) [MENTION=835493]maxtel[/MENTION]ID)+'    '+CONVERT(varchar(max),@Fee)+'    0    0    0    1    '+CONVERT(varchar(max)  [MENTION=1331661]Required[/MENTION]LVL)+'    999    0    0    0    0    0    0    0    0    0    0    0    0'
    
print ''

  
END

print ''
print 'Done!' 
OK.. script = working

so....

i insert this:

teleportbuilding.txt
PHP Code:
1    62083    STORE_SALT_DESERT    SALT_DESERT    xxx    SN_STORE_SALT_DESERT    xxx    0    0    4    1    1    0    0    3    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    0    -1    0    -1    0    -1    0    -1    21835    0    1548    131    1054    0    0    50    50    30    0    quest\teleport01.bsr    xxx    xxx    xxx    xxx    338
1    62084    STORE_KIRK    KIRK    xxx    SN_STORE_KIRK    xxx    0    0    4    1    1    0    0    3    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    
-1    0    -1    0    -1    0    -1    0    -1    22098    0    1265    329    502    0    0    50    50    30    0    quest\teleport01.bsr    xxx    xxx    xxx    xxx    339 
and

teleportdata.txt
PHP Code:
1    556    GATE_SALT_DESERT    62083    SN_STORE_SALT_DESERT    21835    1444    119    1034    30    0    0    1    1    0
1    557    GATE_KIRK    62084    SN_STORE_KIRK    22098    1291    324    564    30    0    0    1    1    0 
and

teleportlink.txt
PHP Code:
1    557    556    50000    0    0    0    1    115    999    0    0    0    0    0    0    0    0    0    0    0    0
1    556    557    50000    0    0    0    1    115    999    0    0    0    0    0    0    0    0    0    0    0    0 
and last but not least this

textdata_object.txt
PHP Code:
1    SN_STORE_SALT_DESERT                                Salt Desert
1    SN_STORE_KIRK                                Kirk 
into the MEDIA....


Server starts without errors..

open Client
-
push Start
-
Login
-
select the Char
-
push START
-
LOADING
-
SRO Close without any error or something else.....


WTF... I checked all but i cant find any error....

Pls guys help me


I´m searching a long time for some fix but i cant find one.....


Sry for my worst english! Love ya ^^
vampi88 is offline  
Old 04/18/2017, 14:08   #2
 
Snow*'s Avatar
 
elite*gold: 1
Join Date: Nov 2011
Posts: 2,532
Received Thanks: 1,439
Double check your texts for multiple ID's or upload the text files in here and also the dmp file
Snow* is offline  
Old 04/18/2017, 16:21   #3
 
elite*gold: 0
Join Date: Dec 2009
Posts: 24
Received Thanks: 3
So i added all....


I checked all lines again.... but i cant found an error


Thx for ur help
Attached Files
File Type: txt teleportbuilding.txt (25.3 KB, 11 views)
File Type: txt teleportdata.txt (34.3 KB, 9 views)
File Type: txt teleportlink.txt (25.0 KB, 9 views)
File Type: rar crash.rar (17.9 KB, 21 views)
File Type: rar textdata_object.rar (253.5 KB, 7 views)
vampi88 is offline  
Old 04/18/2017, 16:47   #4
 
blapanda's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 1,860
Received Thanks: 760
A teleporter is a structure, structures need to be added like items, NPCs and mobs inside their respective file structure (in this case chardata_#####.txt) and accordingly to your listed "what I've added so far where and what", I clearly see that you are missing that one entirely.

Just think "how is the client supposed to load something on that spot, when the regular base/raw data and information is missing?".
blapanda is offline  
Old 04/18/2017, 17:03   #5
 
elite*gold: 0
Join Date: Dec 2009
Posts: 24
Received Thanks: 3
Quote:
Originally Posted by blapanda View Post
A teleporter is a structure, structures need to be added like items, NPCs and mobs inside their respective file structure (in this case chardata_#####.txt) and accordingly to your listed "what I've added so far where and what", I clearly see that you are missing that one entirely.

Just think "how is the client supposed to load something on that spot, when the regular base/raw data and information is missing?".
i add the lines and nothing changes......

so i opend the dmp file too and found that some missing

prim\mtrl\mob\taklamakan\devile

i add these and now i get the same DUMP but without that error



//////////////////////////////////////////////////////////////////


I checked the Chardata again and found a mistake...... with that freaking "0"

so now get i dc after login without any dump fild ;-( ;-) :-P
hmmmmmm
Attached Files
File Type: rar 6N[2017-04-18 16-51-55]_06_22 SunShine_deleder.rar (18.0 KB, 9 views)
vampi88 is offline  
Old 04/18/2017, 21:20   #6
 
WickedNite.'s Avatar
 
elite*gold: 15
Join Date: Jul 2014
Posts: 1,614
Received Thanks: 1,375
If you're a beginner, best advice I can give you is to learn how and which tables are connected, do some work manually until you understand, then either write your own queries or read what's released to understand what they do, cause nobody is just gonna fix a broken query that you have no idea what it actually does.
WickedNite. is offline  
Thanks
2 Users
Old 04/18/2017, 23:14   #7
 
elite*gold: 0
Join Date: Dec 2009
Posts: 24
Received Thanks: 3
Sure i understand what u mean.... i hope u understand now what i say... because my english grammar is not so well....

I think that i know what the query do.... i have an whiteboard with all connections into that db.... so i try it every day to understand what i do and to solve that error but i cant find the answer.

The biggest problem is that nobody explain the problem. U cant find any guide...

Many guides are bull**** ....
every time try that or try that.....

so u cant learn anything....

I had never found an guide with good informations...

-> first u creat this line because..... -> then u must insert this line to that files because.....

thats the right way that people can lern something.....

I want to learn it.... so i try my best again and again and again...

I try it many times befor i open a post for help... so i only want a hint to fix that.... i dont want an full fix...


So pls tell me how i can do it right to lern more....

Im realy sorry for that horror english :-( I hope u can understand the main information ;-(



Gesendet von meinem HUAWEI LYO-L21 mit Hilfe von Elitepvpers, bereitgestellt von appyet.com
vampi88 is offline  
Old 04/24/2017, 11:13   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 24
Received Thanks: 3
THX FOR UR HELP.....
vampi88 is offline  
Reply


Similar Threads Similar Threads
Custom Teleport crashes
06/29/2017 - SRO Private Server - 13 Replies
Hi, I'm adding a new teleport buildings,and everything seems fine on both client and server side,but whenever I click on the option "Select Teleport area" the client crashes.. I added the structure line to characterdata aswell as teleportbuilding,modified telelink.txt,textdate_object.txt and teleportdata.txt Any idea?
[Crash]Custom Teleport - Strange Problem
02/04/2016 - SRO Private Server - 2 Replies
Hello guys , i've just added 4 new custom teleports and they worked fine .. but i added 5th one ( the same way didn't change anything ) it keeps crashing me TeleportBuilding.txt 1 41802 STORE_TELEPORT_5 TELEPORT_5 xxx SN_STORE_ TELEPORT_5 xxx 0 0 4 1 1 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 22661 0 361 1470 1853 0 0 50 50 30 0 quest\ins_quest_teleport. bsr xxx xxx xxx xxx 98 PS: the same bsr of the other 4 teleports teleportdata.txt...
Custom teleport bug,
05/09/2015 - SRO Private Server - 19 Replies
Hello guys, So, i added a new custom teleport, using this query : USE SRO_VT_SHARD DECLARE @Teleport VARCHAR (64) DECLARE @CHARNAME1 VARCHAR (30)
Problem With CUstom teleport items
06/25/2010 - EO PServer Hosting - 4 Replies
ok so i did everything i get it on my toons names right codes seem right but when i click to use it. it puts it on like its a pieace of armor any1 tell me were i went wrong? theres the code i created for it but dunno were i went wrong any help?
M2 Multihack 1.8, Custom Teleport 1.2
06/12/2008 - Metin2 - 2 Replies
Moin , moin ^^ Ich habe ein problem mit diesen Cheats: M2 Multihack 1.8, Custom Teleport 1.2 ...:confused: Egal wann ich die öffne , jedes mal kommt ein Fenster mit : "Unexpected error" Aber Multihack Selector 1.7 funkzioniert ! Wenn jemand das gleiche problem hatte , und / oder weis wie ich das beheben könnte bitte einfach mal melden ^^ Würde mich freuen :D



All times are GMT +1. The time now is 12:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.