Hello need help with an scroll

10/20/2019 20:44 codyblack#1
Hello friends i just released new server and have an idea i need a scroll to add advanced Avatars Blues
like dress = x3 (100 Block rate- hp 5000 -attack rate 70)
hat = x2 (str 25 - int 25)
access=x1 damage absorbation 5%

i need help really as soon as possible how to create that x3 scrolls

thank you very much in advance
10/21/2019 00:21 Yukki*#2
try to find your avatar serial then get the param value for your requirements after all you can modify your avatar from _Items if that works 100% you can make a scroll with procedure!
10/29/2019 02:34 LitelleLess#3
Add Scroll Lines in RefObjCommon / RefObjItem
Then Add This Procuder to ShardLog

PHP Code:
USE [SRO_VT_SHARDLOG]
GO
/****** Object:  StoredProcedure [dbo].[FB]    Script Date: 29/10/2019 01:30:12 ص ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================

Create PROCEDURE [dbo].[FB] 
@
CHARID INT
AS
BEGIN

    SET NOCOUNT ON
;


DECLARE @
ItemID int 
,@Charname VarChar(50) 
,@
PLUS int 
, @Head int 
,@CHEST int 
,@LEGS int 
 
[MENTION=4433738]Shoulder[/MENTION] int 
,@HAND int 
, @FOOT int 
,@RING1 int 
 
[MENTION=5959531]ring2[/MENTION] int 
,@NECK int 
,@ERRING int 
 
[MENTION=795817]wep[/MENTION] int 
 
[MENTION=662184]Shield[/MENTION] int 
 
[MENTION=382588]variance[/MENTION] int

SELECT 
@Charname=CHARNAME16 FROM SRO_VT_SHARD.._CHAR WHERE CHARID=@Charid
SET 
@Charid = (select CharID from SRO_VT_SHARD.._Char where CharName16=@Charname) 
SET @Head = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=0 and CharID=@Charid) 
SET @CHEST = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=1 and CharID=@Charid) 
SET @LEGS = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=4 and CharID=@Charid) 
SET [MENTION=4433738]Shoulder[/MENTION] = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=2 and CharID=@Charid) 
SET @HAND = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=3 and CharID=@Charid) 
SET @FOOT = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=5 and CharID=@Charid) 
SET @RING1 = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=11 and CharID=@Charid) 
SET [MENTION=5959531]ring2[/MENTION] = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=12 and CharID=@Charid) 
SET @NECK = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=10 and CharID=@Charid) 
SET @ERRING = (Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=9 and CharID=@Charid) 
SET [MENTION=795817]wep[/MENTION] =(Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=6 and CharID=@Charid) 
SET [MENTION=662184]Shield[/MENTION] =(Select ItemID from SRO_VT_SHARD.dbo._Inventory where Slot=7 and CharID=@Charid) 

update SRO_VT_SHARD.._Items  
set MagParamNum
=6,  
MagParam1 =5583457484950, 
MagParam2 =5583457484962, 
MagParam3 =30064771144, 
MagParam4=858993459290, 
MagParam5=30064771150, 
MagParam6=257698037898, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@Head 
--------------- 

update SRO_VT_SHARD.._Items  
set MagParamNum
=6, 
MagParam1 =5583457484950, 
MagParam2 =5583457484962, 
MagParam3 =30064771144, 
MagParam4=858993459290, 
MagParam5=30064771150, 
MagParam6=257698037898, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@CHEST 

---------------------- 

update SRO_VT_SHARD.._Items  
set MagParamNum
=4, 
MagParam1 =30064771150, 
MagParam2 =30064771144, 
MagParam3 =858993459290, 
MagParam4=257698037898, 
Variance [MENTION=382588]variance[/MENTION]
where ID64  [MENTION=4433738]Shoulder[/MENTION] 

---------------------- 
update SRO_VT_SHARD.._Items  
set MagParamNum
=4, 
MagParam1 =30064771150, 
MagParam2 =30064771144, 
MagParam3 =858993459290, 
MagParam4=257698037898, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@HAND 


update SRO_VT_SHARD
.._Items  
set MagParamNum
=6, 
MagParam1 =5583457484950, 
MagParam2 =5583457484962, 
MagParam3 =30064771144, 
MagParam4=858993459290, 
MagParam5=30064771150, 
MagParam6=257698037898, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@LEGS 

----------------------- 

update SRO_VT_SHARD.._Items  
set MagParamNum
=4, 
MagParam1 =30064771150, 
MagParam2 =30064771144, 
MagParam3 =858993459290, 
MagParam4=257698037898, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@FOOT 

update SRO_VT_SHARD
.._Items  
set MagParamNum
=6, 
MagParam1 =30064771144, 
MagParam2 =30064771150, 
MagParam3 =85899346100, 
MagParam4 =85899346094, 
MagParam5 =85899346112, 
MagParam6 =85899346106, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@RING1 



update SRO_VT_SHARD
.._Items  
set MagParamNum
=6, 
MagParam1 =30064771144, 
MagParam2 =30064771150, 
MagParam3 =85899346100, 
MagParam4 =85899346094, 
MagParam5 =85899346112, 
MagParam6 =85899346106, 
Variance [MENTION=382588]variance[/MENTION]
where ID64  [MENTION=5959531]ring2[/MENTION] 

update SRO_VT_SHARD.._Items  
set MagParamNum
=6, 
MagParam1 =30064771144, 
MagParam2 =30064771150, 
MagParam3 =85899346100, 
MagParam4 =85899346094, 
MagParam5 =85899346112, 
MagParam6 =85899346106, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@NECK 


update SRO_VT_SHARD
.._Items  
set MagParamNum
=6, 
MagParam1 =30064771144, 
MagParam2 =30064771150, 
MagParam3 =85899346100, 
MagParam4 =85899346094, 
MagParam5 =85899346112, 
MagParam6 =85899346106, 
Variance [MENTION=382588]variance[/MENTION]
where ID64 =@ERRING 

update SRO_VT_SHARD
.._Items  
set MagParamNum
=4, 
MagParam1 =30064771150, 
MagParam2 =30064771144, 
MagParam3 =858993459290, 
MagParam4 =257698037862, 
Variance [MENTION=382588]variance[/MENTION]
where ID64  [MENTION=795817]wep[/MENTION] 


update SRO_VT_SHARD.._Items  
set MagParamNum
=3, 
MagParam1 =30064771150, 
MagParam2 =30064771144, 
MagParam3 =858993459290, 
Variance [MENTION=382588]variance[/MENTION]
where ID64  [MENTION=662184]Shield[/MENTION] 
set nocount off;
END 
Add Those Lines To SRO_VT_SHARDLOG / LogItem

PHP Code:
------FB SCROLL
IF (@Operation=41 AND @ItemRefID=92894) BEGIN 
EXEC SRO_VT_SHARDLOG
..FB @CHARID
END