Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[SQL] Query to add a new custom Teleport with options very easy and very fast

Newbie Spellweaver
Joined
Jul 17, 2012
Messages
25
Reaction score
1
1 question :) it creates an npc teleport? or it just adds new teleport to an npc teleport near it?

you can change the name in textdata_object media pk2. and be sure the numbers are the same from db and media
 
Skilled Illusionist
Joined
Mar 12, 2012
Messages
338
Reaction score
27
Code:
'_Refobjcommon' table
- Unable to create index 'PK__Refobjcommon_1'.  
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo._Refobjcommon' and the index name 'PK__Refobjcommon_1'. The duplicate key value is (33805).
Could not create constraint. See previous errors.
The statement has been terminated.

any fix for this >?
 
Newbie Spellweaver
Joined
Feb 4, 2012
Messages
45
Reaction score
3
my client is crash after teleport :mad:
and before i see teleport building i crashed
 
Last edited:
Joined
Jun 6, 2012
Messages
453
Reaction score
130
Code:
'_Refobjcommon' table
- Unable to create index 'PK__Refobjcommon_1'.  
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo._Refobjcommon' and the index name 'PK__Refobjcommon_1'. The duplicate key value is (33805).
Could not create constraint. See previous errors.
The statement has been terminated.

any fix for this >?

try This
1:Set primary key for "ID" in _RefTeleport and it shall work
 
Experienced Elementalist
Joined
Jun 21, 2012
Messages
208
Reaction score
17
Error i need help plesss

'_RefObjCommon' table
- Unable to create index 'PK__RefObjCommon_1'.
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo._RefObjCommon' and the index name 'PK__RefObjCommon_1'. The duplicate key value is (41845).
Could not create constraint. See previous errors.
The statement has been terminated.
 
Experienced Elementalist
Joined
Nov 22, 2011
Messages
255
Reaction score
111
go to your _Refobjcommon table and search ID 41845 you will find 2 records with this ID ,you must remove one of them or change ID for one of them to be able to set identity on for this table.
 
Newbie Spellweaver
Joined
Jul 23, 2012
Messages
11
Reaction score
0
when i import text files i get crash i think cause it have spaces or something could u give me php codes of txt media and thx
 
Newbie Spellweaver
Joined
Apr 16, 2012
Messages
28
Reaction score
1
Awesome work !
Tested and working ! Thanks a Lot I have been searching for this ^^
 
Experienced Elementalist
Joined
May 17, 2012
Messages
279
Reaction score
3
How i can make Teleport From Jangan To B3 Teleport Not A new Teleport
 
Experienced Elementalist
Joined
May 17, 2012
Messages
279
Reaction score
3
Thx But I Set A Teleport From Jangan To B3 But The New Teleport Haven't A Teleport to Jangan Why?
 
Junior Spellweaver
Joined
Sep 12, 2012
Messages
100
Reaction score
10
i got this error

Msg 137, Level 15, State 2, Line 35
Must declare the scalar variable "@link".
Msg 137, Level 15, State 2, Line 40
Must declare the scalar variable "@link".
 
Newbie Spellweaver
Joined
Dec 20, 2012
Messages
6
Reaction score
1
hmm

everytime when i teleport the the selected area, i get a client crash.
Ichecked it many times, i included the media strings completely and correct with correct spaces(tabulators).

The sql query is working very nice but the crash when iam in the teleported area is terrible.

I used two different characters names: teleport1 and teleport2
I used two different places where they stay (around 3-5 meters away from each other)

anyone is able to say me why this isnt working ?

Greetz
 
Newbie Spellweaver
Joined
Feb 18, 2010
Messages
8
Reaction score
1
I'm sorry, but I get this :

Msg 544, Level 16, State 1, Line 60
Cannot insert explicit value for identity column in table '_RefTeleport' when IDENTITY_INSERT is set to OFF.
 
Skilled Illusionist
Joined
Jul 25, 2012
Messages
311
Reaction score
38
I'm sorry, but I get this :

Msg 544, Level 16, State 1, Line 60
Cannot insert explicit value for identity column in table '_RefTeleport' when IDENTITY_INSERT is set to OFF.

Right click on "_RefTeleport" -> "Design".
Click on "ID", under you can find "Column Proterties".
Scroll down till you find "Identity Specification", click on the >Plus<.
Now click on "(Is Identity)"-> *switch* NO -> YES.

If it don't work now too, you must do first click on "Tools"->"Options"
Then click on "Designers" and take away the arrow on "Prevent saving changes that require table re-creation"

Good luck (Click thank you if i could help you*
 
Newbie Spellweaver
Joined
Jul 17, 2012
Messages
7
Reaction score
1
I'm sorry, but I get this :

Msg 544, Level 16, State 1, Line 60
Cannot insert explicit value for identity column in table '_RefTeleport' when IDENTITY_INSERT is set to OFF.

You can add this line before inserting to '_RefTeleport' table

Code:
SET IDENTITY_INSERT _RefTeleport ON

And set it OFF when you done.

Could anybody tell me how to know the ID of Ownerteleport and Targetteleport?

Forexample, which table shows that the ID for Jangan is 1 and Constantinople is 20?

Thanks!
 
Last edited:
Back
Top