Register for your free account! | Forgot your password?

You last visited: Today at 00:33

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

Advertisement



[Share]SMC Create Item +255

Discussion on [Share]SMC Create Item +255 within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,508
[Share]SMC Create Item +255

im gonna show you the way to create items on smc mor than +12








Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go



----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
-- 20_SMC__ShardDB.sql  _SMC_ADD_ITEM ¼öÁ¤ 
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------

 -----------------------------------------------------------------------  
ALTER       procedure [dbo].[_SMC_ADD_ITEM]  
----------------------------------------------------- params to find target item  
 @TargetStorage int,  /* 0 = inventory, 1 = chest , 2 = guild chest, 3 = Avatar Inventory */  
 @OwnerName varchar(128),  
 ----------------------------------------------------- params to modify the item  
 @RefItemID  int,  
 @OptLvl   tinyint,  
 @Variance  bigint,  
 @Data   int,  
 @szCreater  varchar(32),  
 @MagParamNum int,  
 @MagParam1 bigint,  
 @MagParam2 bigint,  
 @MagParam3 bigint,  
 @MagParam4 bigint,  
 @MagParam5 bigint,  
 @MagParam6 bigint,  
 @MagParam7 bigint,  
 @MagParam8 bigint,  
 @MagParam9 bigint,  
 @MagParam10 bigint,  
 @MagParam11 bigint,  
 @MagParam12 bigint  
as  
 ----------------------------------------------------  
 -- step 1. check validity of parameters  
 ----------------------------------------------------  
 if (@TargetStorage <> 0 and @TargetStorage <> 1 and @TargetStorage <> 2 and @TargetStorage <> 3)  
 begin  
  select -1, cast(0 as bigint), cast(0 as bigint) -- invalid target storage  
  return  
 end  
 declare @ownerid int  
 declare @ItemID bigint  
 set @ownerid = 0  
 set @ItemID = 0  
 declare @empty_slot int  
 set @empty_slot = -1  
 if (@TargetStorage = 0)  
 begin  
  select @ownerid = charid from _char where charname16 = @OwnerName  
  if (@@rowcount = 0 or @ownerid = 0 or @ownerid is null)  
  begin  
   select -2, cast(0 as bigint), cast(0 as bigint)-- can't find owner  
   return  
  end  
  
  select top 1 @empty_slot = slot from _inventory   
  where charid = @ownerid and slot >= 13   
   and itemid = 0   
   and slot < (select top 1 InventorySize from _Char where CharID = @ownerid)  
  order by slot asc  
  
  if (@@rowcount = 0)  
  begin  
   select -3, cast(0 as bigint), cast(0 as bigint) -- inventory full  
   return  
  end  
 end  
 else if (@TargetStorage = 1)  
 begin  
  select @ownerid = JID from _AccountJID where AccountID = @ownername  
  if (@@rowcount = 0 or @ownerid = 0 or @ownerid is null)  
  begin  
   select -2, cast(0 as bigint), cast(0 as bigint) -- can't find owner  
   return  
  end  
  select top 1 @empty_slot = slot from _chest where userjid = @ownerid and (itemid = 0 or ItemID is null) order by slot asc  
  if (@@rowcount = 0)  
  begin  
   select -3, cast(0 as bigint), cast(0 as bigint) -- chest full  
   return  
  end  
 end  
 else if (@TargetStorage = 2)  
 begin  
  select @ownerid = [ID] from _guild where [name] = @ownername  
  if (@@rowcount = 0 or @ownerid = 0 or @ownerid is null)  
  begin  
   select -2, cast(0 as bigint), cast(0 as bigint) -- can't find owner  
   return  
  end   
  select top 1 @empty_slot = slot from _guildchest where guildid = @ownerid and (itemid = 0 or ItemID is null) order by slot asc  
  if (@@rowcount = 0)  
  begin  
   select -3, cast(0 as bigint), cast(0 as bigint) -- chest full  
   return  
  end   
    
  -- ±æµå ·¹º§¿¡ µû¸¥ ±æµå ½½·Ô¼ö Á¦ÇÑÀ» È®ÀÎÇÏÀÚ.  
  declare @lvl tinyint  
  declare @max_slot tinyint  
  select @lvl = Lvl from _guild where [id] = @ownerid  
  set @max_slot = 30 * (@lvl - 1) - 1  
  
  if @empty_slot > @max_slot   
  begin  
   select -3, cast(0 as bigint), cast(0 as bigint) -- chest full  
   return  
  end      
 end  
 else  
 begin  
  select @ownerid = charid from _char where charname16 = @OwnerName  
  if (@@rowcount = 0 or @ownerid = 0 or @ownerid is null)  
  begin  
   select -2, cast(0 as bigint), cast(0 as bigint)-- can't find owner  
   return  
  end  
  
  select top 1 @empty_slot = slot from _InventoryForAvatar  
  where charid = @ownerid  
   and itemid = 0   
   and slot < 4     -- ÇÁ·Î½ÃÁ® ÇϵåÄÚµù(¾Æ¹ÙŸ ½½·ÔÀº 0, 1, 2, 3ÀÌ´Ù.)  
  order by slot asc  
  
  if (@@rowcount = 0)  
  begin  
   select -3, cast(0 as bigint), cast(0 as bigint) -- inventory full  
   return  
  end  
 end  
   
  
 if (@empty_slot < 0 or @empty_slot is null)  
 begin   
  select -4, cast(0 as bigint), cast(0 as bigint)  -- unknown error ???  
  return  
 end  
   
 declare @tid1 int  
 declare @tid2 int  
 declare @tid3 int  
  declare @tid4 int  
   
 select @tid1 = TypeID1, @tid2 = TypeID2, @tid3 = TypeID3, @tid4 = TypeID4 from _RefObjCommon where ID = @RefItemID  
 if (@tid1 <> 3)  
 begin  
  select -5, cast(0 as bigint), cast(0 as bigint) -- about to assign non-item object  
  return  
 end  
 if (@tid2 <> 1)  -- is not equipment  
 begin  
  -- can't assign magic param or optlevel to non-equip item  
  if (@MagParamNum > 0 or @OptLvl > 0)  
  begin  
   select -6, cast(0 as bigint), cast(0 as bigint)  
   return  
  end  
 end  
   
 ----------------------------------------------------  
 -- step 2. correct some non-critical parameters  
 ----------------------------------------------------  
 if (@tid2 = 3 and @Data = 0) -- can't assign overlap count 0 to expendable item  
 begin  
  set @Data = 1  
 end  
  
 if (LEN(@szCreater) = 0)  
  set @szCreater = NULL  
  
 ----------------------------------------------------  
 -- step add. equip and pet @data setting  
 ----------------------------------------------------  
 declare @IS_EQUIP int  
 declare @IS_PET int  
  
 set @IS_EQUIP = 0  
 set @IS_PET = 0  
  
 if (@tid1 = 3 and @tid2 = 1)  
  set @IS_EQUIP = 1  
 else if (@tid1 = 3 and @tid2 = 2 and @tid3 = 1 and (@tid4 = 1 or @tid4 = 2))  
  set @IS_PET = 1  
  
 if (@IS_EQUIP = 1)  
 begin  
  
    -- Àß ¸øµÈ ID·Î select Çϰí ÀÖÀ½. ¼öÁ¤ (by binu 2008-10-17)
    --    select @Data = Dur_L from _RefObjItem where ID =  @RefItemID
    select @Data = Dur_L from _RefObjItem where ID = (select Link from _RefObjCommon where ID = @RefItemID )
    
   if (@OptLvl < 0)  
    set @OptLvl = 0  
   else if (@OptLvl > 12)  
    set @OptLvl = 12  
  
 end  
 else  
 begin  
  
  if( @IS_PET = 1 )  
   set @Data = 0  
  else  
  begin  
   declare @MaxCount int  
   select @MaxCount = MaxStack from _RefObjItem where ID = @RefItemID  
   
   if (@Data <= 0 or @Data > @MaxCount)    
    set @Data = @MaxCount    
  end  
  
  set @OptLvl = 0  
 end  
  
  
 ----------------------------------------------------------  
 -- Step3. create item and set to associated storage  
 ----------------------------------------------------------  
 set xact_abort on  
begin transaction  
   
 declare @NewItemID  bigint  
 declare @Serial64 bigint  
 set @NewItemID  = 0  
 set @Serial64 = 0  
 exec @NewItemID = _STRG_ALLOC_ITEM_NoTX @Serial64 OUTPUT  
 if (@NewItemID = 0)  
 begin  
  rollback transaction  
  select -7, cast(0 as bigint), cast(0 as bigint)  
  return  
 end  
 if (@MagParamNum = 0)  
 begin  
  update _Items set RefItemID = @RefItemID, OptLevel = @OptLvl, Variance = @Variance, Data = @Data, MagParamNum = 0, Serial64 = @Serial64   
  where ID64 = @NewItemID  
 end  
 else  
 begin  
  update _Items set RefItemID = @RefItemID, OptLevel = @OptLvl, Variance = @Variance, Data = @Data, MagParamNum = @MagParamNum,   
    MagParam1 = @MagParam1, MagParam2 = @MagParam2, MagParam3 = @MagParam3, MagParam4 = @MagParam4,  
    MagParam5 = @MagParam5, MagParam6 = @MagParam6, MagParam7 = @MagParam7, MagParam8 = @MagParam8,  
    MagParam9 = @MagParam9, MagParam10= @MagParam10, MagParam11 = @MagParam11, MagParam12 = @MagParam12, Serial64 = @Serial64  
  where ID64 = @NewItemID  
 end  
 if (@@error <> 0)  
 begin  
  rollback transaction  
  select -8, cast(0 as bigint), cast(0 as bigint)  
  return  
 end  
 if (@TargetStorage = 0)  
  update _Inventory set ItemID = @NewItemID where CharID = @OwnerID and Slot = @empty_slot  
 else if (@TargetStorage = 1)  
  update _chest set ItemID = @NewItemID where UserJID = @OwnerID and slot = @empty_slot  
 else if (@TargetStorage = 2)  
  update _guildchest set ItemID = @NewItemID where guildid = @OwnerID and slot = @empty_slot  
 else  
  update _InventoryForAvatar set ItemID = @NewItemID where CharID = @OwnerID and Slot = @empty_slot  
   
 if (@@rowcount = 0 or @@error <> 0)  
 begin  
  rollback transaction  
  select -9, cast(0 as bigint), cast(0 as bigint)  
  return  
 end  
   
 commit transaction  
 select @empty_slot, @NewItemID, @Serial64  
 return
look for this

Code:
if (@OptLvl < 0)  
    set @OptLvl = 0  
   else if (@OptLvl > 12)  
    set @OptLvl = 12
change

Code:
if (@OptLvl < 0)  
    set @OptLvl = 0  
   else if (@OptLvl > 255)  
    set @OptLvl = 255
same with _SMC_EDIT_ITEM

for the ones to create via gm console, ill look for i, since i may bug something in the way

im not pretty sure if 255 is max or if server gonna accept it(if anyone know max value, post here)

Note:
this may help
Quote:
Originally Posted by whyt3boi View Post
If this works the same way as changing it in the database. If you go over a certain + it will have no effect. Damage will be substantially lower than your normal +. Try using +50 or 70 first. There is a limit. Simply because the game does not have an algorithm that goes that high.
PortalDark is offline  
Thanks
19 Users
Old 12/24/2011, 22:13   #2
 
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
it's useless,the server won't handle it over +12
so it'll have the same dmg as a +12 one would
vorosmihaly is offline  
Old 12/24/2011, 22:15   #3
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,508
dont know if server will only make item with same stats like +12, but bragging is cool
PortalDark is offline  
Thanks
1 User
Old 12/24/2011, 22:40   #4
 
Xuz's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 222
Received Thanks: 47
gonna try it when i get back to house
SWFiles
Ty <3 IAM NOT GAY
Xuz is offline  
Old 12/25/2011, 00:09   #5
 
elite*gold: 0
Join Date: Aug 2007
Posts: 191
Received Thanks: 109
If this works the same way as changing it in the database. If you go over a certain + it will have no effect. Damage will be substantially lower than your normal +. Try using +50 or 70 first. There is a limit. Simply because the game does not have an algorithm that goes that high.
whyt3boi is offline  
Old 12/25/2011, 00:13   #6
 
elite*gold: 85
Join Date: Feb 2011
Posts: 117
Received Thanks: 12
limit is without any dc or client close +249 on the weapons
Paravibez is offline  
Old 12/25/2011, 01:31   #7
 
Keyeight's Avatar
 
elite*gold: 844
Join Date: Oct 2010
Posts: 839
Received Thanks: 192
im gonna try it later and till you if it work`s fine or no

any way thx alot for sharing your work
Keyeight is offline  
Old 12/25/2011, 01:42   #8
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,748
Received Thanks: 2,010
Quote:
Originally Posted by Atrox2011 View Post
limit is without any dc or client close +249 on the weapons
it should be 255 (or 254) if I remember it correctly
Nezekan is offline  
Thanks
1 User
Old 12/25/2011, 01:43   #9
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,988
Received Thanks: 1,783
Quote:
Originally Posted by Nezekan View Post
it should be 255 (or 254) if I remember it correctly
The highest plus item you can equip is +249
18andLife is offline  
Thanks
1 User
Old 12/25/2011, 04:57   #10
 
elite*gold: 0
Join Date: Aug 2007
Posts: 191
Received Thanks: 109
I don't know why you are all interested in this. Having a weapon with +200 or +250 is not going to do anything. There is no damage difference. It will change the stats but your damage will not be any higher. It stops after a certain amount.
whyt3boi is offline  
Old 12/25/2011, 07:31   #11
 
elite*gold: 0
Join Date: Dec 2011
Posts: 356
Received Thanks: 69
Well , Thanks
!x_~! is offline  
Old 12/25/2011, 08:52   #12
 
lesderid's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
Quote:
Originally Posted by whyt3boi View Post
I don't know why you are all interested in this. Having a weapon with +200 or +250 is not going to do anything. There is no damage difference. It will change the stats but your damage will not be any higher. It stops after a certain amount.
Maybe it overflows after a while, would be kinda funny.
lesderid is offline  
Thanks
1 User
Old 12/25/2011, 09:44   #13
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,650
Received Thanks: 4,729
Quote:
Originally Posted by vorosmihaly View Post
it's useless,the server won't handle it over +12
so it'll have the same dmg as a +12 one would
nono. that's wrong!
i iguarantee you that the server can handle way more.
i used to dupe on sjsro and i had a +74 glavie which made too much damage.people thought i had an edited char cuz i told them that the glavie was +13.
so it actually does more damage
silkbotter is offline  
Old 12/25/2011, 10:42   #14
 
elite*gold: 0
Join Date: May 2011
Posts: 490
Received Thanks: 149
first it's for SWSRO files not for vsro so gtfo
hamada619 is offline  
Old 12/25/2011, 11:27   #15
 
Xuz's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 222
Received Thanks: 47
Quote:
Originally Posted by hamada619 View Post
first it's for SWSRO files not for vsro so gtfo
OMG first ****** in the thread...Whalecum
there is no difference between SW or Vsro in this case
Xuz is offline  
Reply


Similar Threads Similar Threads
How can i create my own item?
03/06/2010 - Metin2 - 4 Replies
Hi can someone tells me how can i create my own item for metin?but tutorial in english pleaseee?
how Create share to Server and game
01/08/2010 - Dekaron Private Server - 14 Replies
if i get new share fillies and i need to edit ham to work in Server how edit ham can anyone Tell Me how i need anyman explanation how to do it :rolleyes: http://www.elitepvpers.com/forum/2moons-pserver-ho sting/361622-rebirth-client-patch-rebirth-share-pa tch-server.html
how to create an item Poison ?
02/27/2009 - CO2 Private Server - 2 Replies
how to create an item Poison I use ShadeCo Emulator 1.1 or how to create item with RECOVER MANA
how to create item?
02/01/2009 - Dekaron Private Server - 2 Replies
hi! nice to meet you! tell me how to create item?? I want know Item numbers.... itemset.csv?? but,it's not enough. many Item numbers are missing. help me plz.... sorry to my poor English.
[share]item.edf
10/08/2008 - RFO Hacks, Bots, Cheats, Exploits & Guides - 2 Replies
click here what it item do... 1-u can trade antrade items 2-cora can use acc and bells pots 40% atk(from cw exemple) next item. click here what do...



All times are GMT +1. The time now is 00:34.


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.