Register for your free account! | Forgot your password?

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

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

Advertisement



[Help]problem with SR_GameServer

Discussion on [Help]problem with SR_GameServer within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 45
Received Thanks: 2
[Help]problem with SR_GameServer

help i need help plez

this is problem


omardahy is offline  
Old 05/16/2012, 21:36   #2
 
elite*gold: 0
Join Date: Mar 2012
Posts: 492
Received Thanks: 125
check your
RefscrapOfpackageitem&RefPackageItem

Well use this query as you will have trouble get it to working
Code:
USE[SRO_VT_SHARD] /*or what ever you use */
UPDATE _RefScrapOfPackageItem
SET [StockCount] '0'
Where RefPackageItemCodeName like '%PACKAGE_ITEM_ETC_AMMO_ARROW_01%'
Best Regards,
Legendary-Online
Sir*DeviL is offline  
Old 05/16/2012, 21:39   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 45
Received Thanks: 2
i get
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '0'.
omardahy is offline  
Old 05/16/2012, 21:46   #4
 
elite*gold: 0
Join Date: Mar 2012
Posts: 492
Received Thanks: 125
Code:
USE[SRO_VT_SHARD] /*or what ever you use */
UPDATE _RefScrapOfPackageItem
SET [StockCount] = '0'
Where RefPackageItemCodeName like '%PACKAGE_ITEM_ETC_AMMO_ARROW_01%'
Sir*DeviL is offline  
Old 05/16/2012, 21:54   #5
 
elite*gold: 0
Join Date: Nov 2007
Posts: 45
Received Thanks: 2
i think i lost SRO_VT_SHARD
bro i want SRO_VT_SHARD + Media.pk2
have D12 or 13
and have Item D12 or 13 in NPC with FB and ++ any ++
because my DB when i use GM COMMAND i try for item +15 or 18
but i get item +8 onle
u can help me for that ?
and think you for help me and answer me
omardahy is offline  
Old 05/16/2012, 21:55   #6
 
elite*gold: 0
Join Date: Mar 2012
Posts: 492
Received Thanks: 125
First: query i gave you worked?
second; what do you really need?
Sir*DeviL is offline  
Old 05/16/2012, 22:00   #7
 
elite*gold: 0
Join Date: Nov 2007
Posts: 45
Received Thanks: 2
no i get this error
Msg 207, Level 16, State 1, Line 0
Invalid column name 'StockCount'.

and i want add item D12 or 13 with FB and plus(+) in NPC
and i have problem when i want buy MP or HP from NPC
when i pres Ctrl+lift click in MP or HP ICO nothing happen
but i can buy HP and MP one By one
omardahy is offline  
Old 05/16/2012, 22:02   #8
 
elite*gold: 0
Join Date: Mar 2012
Posts: 492
Received Thanks: 125
Well, you need new sql/db developer.
i can't help you right now.
just answered your question.
Sir*DeviL is offline  
Old 05/16/2012, 22:03   #9
 
elite*gold: 0
Join Date: Nov 2007
Posts: 45
Received Thanks: 2
ok, np
thnx u for help me and answer me
omardahy is offline  
Old 05/16/2012, 23:17   #10
 
elite*gold: 0
Join Date: Aug 2009
Posts: 671
Received Thanks: 288
Quote:
USE SRO_VT_SHARD /* ITEMS TO NPC FOR GOLD by Caipi */
Declare @ItemID int
Declare @yourPrice int
Declare @WhichTAB varchar(74)



SET @ItemID = 23 /* The Item ID of the Item you want to add to the NPC*/ --## <--
SET @yourPrice = 5000 /* The price per Unit */ --## <--
SET @WhichTAB = 'STORE_CH_POTION_TAB1' /* To which Tab at which NPC you want to add the Item*/



/* Codename instead of the ID */
Declare @CodeName varchar (74) SET @CodeName = (SELECT CodeName128 FROM _RefObjCommon WHERE ID = @ItemID)

/* Which Itemdata.txt is affected in the Media.pk2*/
Declare @newItemID varchar(5)
Declare @lastPrice varchar(25) SET @lastPrice = (SELECT Price FROM _RefObjCommon WHERE ID = @ItemID)
Declare @yourPriceCHAR varchar(25) SET @yourPriceCHAR = @yourPrice
IF (@ItemID < 5000) SET @newItemID = 5000
else if (@ItemID < 10000) SET @newItemID = 10000
else if (@ItemID < 15000) SET @newItemID = 15000
else if (@ItemID < 20000) SET @newItemID = 20000
else if (@ItemID < 25000) SET @newItemID = 25000
else if (@ItemID < 30000) SET @newItemID = 30000
else if (@ItemID < 35000) SET @newItemID = 35000
else if (@ItemID < 40000) SET @newItemID = 40000
else SET @newItemID = 45000
print ''
print @CodeName + ' from Media\server_dep\silkroad\textdata\itemdata_'+@new ItemID+'.txt'
print 'Change the current Price of '+@lastPrice+' to '+@yourPriceCHAR+' at the itemdata_'+@newItemID+'. (For the visual Price ingame)'
/*END which Itemdata.txr*/

/*for _RefObjCommon Price*/
UPDATE _RefObjCommon SET Price = @yourPrice WHERE ID = @ItemID

/* for _RefPackageItem */
IF EXISTS (SELECT CodeName128 FROM _RefPackageItem WHERE CodeName128 = 'Package_'+@CodeName)
BEGIN
print 'Already added @ RefPackageItem/.txt!'
END
ELSE BEGIN
Declare @SN varchar(74) SET @SN = (SELECT NameStrID128 FROM _RefObjCommon WHERE ID = @ItemID)
Declare @DESC varchar(74) SET @Desc = (SELECT DescStrID128 FROM _RefObjCommon WHERE ID = @ItemID)
Declare @DDJ varchar(74) SET @DDJ = (SELECT AssocFileIcon128 FROM _RefObjCommon WHERE ID = @ItemID)
INSERT INTO _RefPackageItem (Service,Country,CodeName128,SaleTag,ExpandTerm,Na meStrID,DescStrID,AssocFileIcon,Param1,Param1_Desc 128,Param2,Param2_Desc128,Param3,Param3_Desc128,Pa ram4,Param4_Desc128)
VALUES (1,15,'PACKAGE_'+@CodeName,0,'EXPAND_TERM_ALL',@SN ,@Desc,@DDJ,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
Declare @TOPID varchar (10) SET @TOPID = (SELECT MAX(ID) FROM _RefPackageItem)
print ''
print 'Add the following line @ refpackageitem.txt'
print '1 15 '+@TOPID+' PACKAGE_'+@CodeName+' 0 EXPAND_TERM_ALL '+@SN+' '+@DESC+' '+@DDJ+' -1 xxx -1 xxx -1 xxx -1 xxx'
print ''
END

/* for _RefPricePolicyOfItem */
IF EXISTS (SELECT RefPackageItemCodeName FROM _RefPricePolicyOfItem WHERE RefPackageItemCodeName = 'Package_'+@CodeName AND PaymentDevice = 1 AND Cost = @yourPrice)
BEGIN
print 'Already added @ RefPricePolicyOfItem/.txt!'
END
ELSE BEGIN
INSERT INTO _RefPricePolicyOfItem (Service,Country,RefPackageItemCodeName,PaymentDev ice,PreviousCost,Cost,Param1,Param1_Desc128,Param2 ,Param2_Desc128,Param3,Param3_Desc128,Param4,Param 4_Desc128)
VALUES (1,15,'PACKAGE_'+@CodeName,1,0,@yourPrice,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
Declare @NEWPRICE varchar(15) SET @NEWPRICE = @yourPrice
print ''
print 'Add the following line @ refpricepolicyofitem.txt'
print '1 15 PACKAGE_'+@CodeName+' 1 0 '+@NEWPRICE+' -1 xxx -1 xxx -1 xxx -1 xxx'
print ''
END

/* for _RefShopGoods */
IF EXISTS (SELECT RefPackageItemCodeName FROM _RefShopGoods WHERE RefPackageItemCodeName = 'Package_'+@CodeName AND RefTabCodeName = @WhichTAB)
BEGIN
print 'Already added @ RefShopGoods/.txt!'
END
ELSE BEGIN
Declare @newSLOTINDEX varchar(15) SET @newSLOTINDEX = (SELECT MAX(SlotIndex) FROM _RefShopGoods WHERE RefTabCodeName = @WhichTAB)+1
INSERT INTO _RefShopGoods (Service,Country,RefTabCodeName,RefPackageItemCode Name,SlotIndex,Param1,Param1_Desc128,Param2,Param2 _Desc128,Param3,Param3_Desc128,Param4,Param4_Desc1 28)
VALUES (1,15,@WhichTAB,'PACKAGE_'+@CodeName,@newSLOTINDEX ,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
print ''
print 'Add the following line @ refshopgoods.txt'
print '1 15 '+@WhichTAB+' '+'PACKAGE_'+@CodeName+' '+@newSLOTINDEX+' -1 xxx -1 xxx -1 xxx -1 xxx'
print ''
END

/* for _RefScrapOfPackageItem */
IF EXISTS (SELECT RefPackageItemCodeName FROM _RefScrapOfPackageItem WHERE RefPackageItemCodeName = 'Package_'+@CodeName AND RefItemCodeName = @CodeName)
BEGIN
print 'Already added @ RefScrapOfPackageItem/.txt!'
END
ELSE BEGIN
INSERT INTO _RefScrapOfPackageItem (Service,Country,RefPackageItemCodeName,RefItemCod eName,OptLevel,Variance,Data,MagParamNum,MagParam1 ,MagParam2,MagParam3,MagParam4,MagParam5,MagParam6 ,MagParam7,MagParam8,MagParam9,MagParam10,MagParam 11,MagParam12,Param1,Param1_Desc128,Param2,Param2_ Desc128,Param3,Param3_Desc128,Param4,Param4_Desc12 8)
VALUES (1,15,'PACKAGE_'+@CodeName,@CodeName,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
Declare @ScrapIndex varchar(15)
SET @ScrapIndex = (SELECT MAX([Index]) FROM _RefScrapOfPackageItem WHERE RefItemCodeName = @CodeName)
print ''
print 'Add the following line @ refscrapofpackageitem.txt'
print '1 15 '+'PACKAGE_'+@CodeName+' '+@CodeName+' 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 xxx -1 xxx -1 xxx -1 xxx '+@ScrapIndex
print ''
END
print ''
print ''
print 'Done!'
Use this query.It'll fix your issue
LegendM is offline  
Reply


Similar Threads Similar Threads
[Help] SR_GameServer
01/22/2016 - SRO Private Server - 1 Replies
i m open all service (Certificate, global, machines, freame, download, SMC, agent and all) work fine, open SR_GameServer 10 sec and close, way, hellp me guys, thank you
[HELP] SR_GAMESERVER
03/18/2012 - SRO Private Server - 1 Replies
hi im having a few errors in game server i had this error: 2012-03-09 20:55:00 {?=CALL _CharInstanceWorldDataMarkUpLastWorld(6693,1,1,1)} 2012-03-09 20:55:00 SQL Error State:42000, Native Error Code: 89, ODBC Error: Must declare the scalar variable "@Charid". but i fixed by changing tables error : StoredProcedure . few few CharID was Charid so just changed to CharID and no errors so i hope this helps a few others :)
demon shaitan problem in sr_gameserver
03/02/2012 - SRO Private Server - 0 Replies
" BSObj Plugin ----- can't find assoc Item this Package can someone help me ?
SR_GameServer Please Help
01/04/2012 - SRO Private Server - 4 Replies
http://i1141.photobucket.com/albums/n594/xtech99/S R_GameServer.gif The Agent Sever is not working =S And SR_ShardManager And SR_GameServer Have that Thing what is it ?? http://i1141.photobucket.com/albums/n594/xtech99/ AgentServer.gif http://i1141.photobucket.com/albums/n594/xtech99/ SR_GameServerError.gif http://i1141.photobucket.com/albums/n594/xtech99/ SR_GameServerError.gif
Problem in SR_GameServer
12/01/2011 - SRO Private Server - 0 Replies
Type of problem : DC after login within few second using gm acccount Type of Error showed: "silk data loading failed" "AQ failed"



All times are GMT +1. The time now is 02:57.


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.