Register for your free account! | Forgot your password?

You last visited: Today at 11:31

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

Advertisement



about _RefPackitem table

Discussion on about _RefPackitem table within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
ahmed4ever2u's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 1,514
Received Thanks: 891
about _RefPackitem table

well i'm writing my own query which it will help me to add custom items to the npc with the codename only !
so all works as far as i can feel it now
but i have a wired error shows if i tried to add another item ( the error cased by the Identity in _RefPackageitem)

my codes
Code:
if not exists ( select ID from _RefPackageItem where ID = 1 )
	SET @ID = '1'
if exists ( select ID from _RefPackageItem where ID = 1 )
	SET @ID = (SELECT TOP 1 ID FROM _RefObjCommon ORDER BY ID DESC )+1
it works fine for the first item !
but if i tried to add 2nd item it works fine but with a hecka high ID ! =
but if i tried to add the 3rd item i get this error !

so i wonder which part made this error ?

----------------------Edit
already solved
Code:
if not exists ( select ID from _RefPackageItem where ID = 1 )
	SET @ID = '1'
if exists ( select ID from _RefPackageItem where ID = 1 )
	SET @ID = (SELECT TOP 1 ID FROM [B][COLOR="DarkRed"][COLOR="Red"]_RefObjCommon[/COLOR][/COLOR][/B] ORDER BY ID DESC )+1
it should be _RefPackageitem Not _RefObjCommon my bad sorry
ahmed4ever2u is offline  
Old 07/30/2012, 13:38   #2
 
elite*gold: 130
Join Date: Mar 2008
Posts: 2,485
Received Thanks: 934
Solved?

#Request close, then.


intercsaki is offline  
Closed Thread


Similar Threads Similar Threads
about table
07/04/2012 - SRO Private Server - 2 Replies
hey everyone, SORRY FOR THE WHOLE THREAD, but i couldn't find how to do can anyone tell me how to to make that black table, i can create the normal one like this test test
ce table
05/27/2011 - AutoIt - 7 Replies
hallo zusammen ich suche aion ce table fuer version 2.1.x.x hab schon parr werte gefunden fuer mein bot projekt in nomad kann mir eventuell hier aus der sektion wer helfen??? mfg
Table of EXP
03/19/2011 - WarRock - 7 Replies
i need the table of how much need to up level and 1% plz who can give me?
EXP Table
02/22/2011 - Metin2 Private Server - 6 Replies
/* russian */ В моих файлах сервера нет файла game. У меня даже нет папки channel. Только есть папка channel1 (в файлах сервера предусм& #1086;тренно два канала). В туториа& #1083;е указан путь /channel1/share_data/game но такого нет ни в /share_data/ (там где locale и data) ни в channel1. Что мне делать и где искать этот файл? /* deutsch (translate by google) */ In meiner Datei-Server, keine Datei-Spiel. Ich habe nicht einmal einen Ordner Kanal. Aber es ist ein Ordner channel1 (Datei-Server...
Need SQL Table
06/02/2010 - Dekaron Private Server - 1 Replies
Okey after i failed trying to make the startlocation to parca from Braiken/Loa, i f*** up my table, and ofc i have no backup cuz im a smartass. Can someone open the table character.dbo.char_mappos and just tell me the orginal 'table's" which is suppose to be there..



All times are GMT +1. The time now is 11:32.


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.