Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 05:24

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

Advertisement



Auto PLUS NOTICE, How to change CodeName to Normal Name.

Discussion on Auto PLUS NOTICE, How to change CodeName to Normal Name. within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2015
Posts: 64
Received Thanks: 10
Auto PLUS NOTICE, How to change CodeName to Normal Name.

Hey Folks !

Im using this procedure to show UP on notice "+" Its shows me plus like i setuped from +5 till +30. But what should i do to show ppl "Has Incrased Blue Dragon bal bla bla" cuz currently showing me "Has Incrased ITEM_CH_BLADE ... " >< .
And another weird thing is: Big delay , example:
im on +7 and it start showings +5 + 6 etc etc etc, what can causing this? The delay is abt i dunno 6-8seconds its big a bit...
Thanks for Your help and suggestions !

PHP Code:
USE [SRO_VT_SHARDLOG]
GO
/****** Object:  StoredProcedure [dbo].[_AddLogItem]    Script Date: 02/02/2016 00:15:39 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER  procedure 
[dbo].[_AddLogItem]  
  @
CharID  int,   
  @
ItemRefID int,   
  @
ItemSerial bigint,   
  @
dwData int,   
  @
TargetStorage tinyint,   
  @
Operation tinyint,   
  @
Slot_From tinyint,   
  @
Slot_To tinyint,   
  @
EventPos varchar(64),   
  @
strDesc varchar(128), 
  @
Gold        bigint        -- #ifdef EXTEND_GOLD_TYPE »ðÀÔ    
  
as   
   declare @
len_pos int   
   
declare @len_desc int  
   
declare @strDesc_separado varchar(128)  
   declare  @
len_desc1 int 
   set 
@len_pos len(@EventPos)   
   
set @len_desc len(@strDesc)   
   if (@
len_pos and @len_desc 0)   
   
begin   
            insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_ToEventPosstrDescSerial64Gold)    -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼ 
            
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @strDesc, @ItemSerial, @Gold)        -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼ 
   
end   
   
else if (@len_pos and @len_desc 0)   
   
begin   
            insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_ToEventPosSerial64Gold)            -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼ 
            
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @EventPos, @ItemSerial, @Gold)                -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼  
   
end   
   
else if (@len_pos and @len_desc 0)   
   
begin   
            insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_TostrDescSerial64Gold)            -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼ 
            
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @strDesc, @ItemSerial, @Gold)                    -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼  
   
end   
   
else if (@len_pos and @len_desc 0)   
   
begin   
            insert _LogEventItem 
(EventTimeCharIDItemRefIDdwDataTargetStorageOperationSlot_FromSlot_ToSerial64Gold)                        -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼ 
            
values(GetDate(), @CharID, @ItemRefID, @dwData, @TargetStorage, @Operation, @Slot_From, @Slot_To, @ItemSerial, @Gold)                            -- #ifdef EXTEND_GOLD_TYPE ±³Ã¼ 
   
end   
   
-- À¯·á ¾ÆÀÌÅÛ ±¸ÀÔÀ̸é!   
   -- 
#define LOG_ITEMEVENT_BUY_CASHITEM  (BYTE)35   
if  (@Operation 35begin
    insert _LogCashItem 
(RefItemIDCharIDCntEventTimeSerial64)   
    
values(@ItemRefID, @CharID, @dwDataGetDate(), @ItemSerial)   
end 
if  (@Operation 90 OR @Operation 160)
 
begin   
    set 
@len_desc1 CHARINDEX (']',@strDesc)  
    if (@
len_desc1 9)
     
begin 
        set 
@strDesc SUBSTRING(@strDesc,0,9
        
set @strDesc_separado SUBSTRING(@strDesc81
    
end 
    
else if (@len_desc1 10
    
begin 
        set 
@strDesc SUBSTRING(@strDesc,0,10
        
set @strDesc_separado SUBSTRING(@strDesc82
    
end 
    
if(@strDesc_separado >= 30
    
begin 
        
--set @strDesc_separado = @len_desc1 
      insert _LogItemPlus
(CharIDSerial64PlusDataLidovalues(@CharID, @ItemSerial, @strDesc_separadoGetDate(), '0')   
    
end  
   end 
   
if(@Operation 90 and @strDesc_separado >= 5)
   
begin
    
declare @iname varchar(129)
    declare @
iid int
    
declare @cname varchar(64)
    
select @iid RefItemID from SRO_VT_SHARD.dbo._Items where Serial64 = @ItemSerial
    select 
@iname CodeName128 from SRO_VT_SHARD.dbo._RefObjCommon where id = @iid
    select 
@cname CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @CharID
    insert PlusNotice
(SentMessage)values(0,@cname ' has increased ' + @iname ' to [lvl ' CAST(@strDesc_separado AS NVARCHAR) + ']')
 
end 
Like reason edit says!
szokersonik is offline  
Old 02/03/2016, 11:24   #2


 
tschulian's Avatar
 
elite*gold: 294
Join Date: Sep 2013
Posts: 1,410
Received Thanks: 635
Make a new Table.
for example: _RefRealNames with those Columns:

[Realname], [CODENAME128]

select @iname = CodeName128 from SRO_VT_SHARD.dbo._RefObjCommon where id = @iid
select @rname = Realname from SRO_VT_SHARD.._RefRealNames where CODENAME128 = @iname
select @cname = CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @CharID

insert PlusNotice(Sent, Message)values(0,@cname + ' has increased ' + @rname + ' to [lvl ' + CAST(@strDesc_separado AS NVARCHAR) + ']')
end
tschulian is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] Auto Party Re-from Event ( Manageable) + Auto notice ( Simple )
03/17/2017 - SRO PServer Guides & Releases - 46 Replies
- The same Old Auto Re-from Event i have released before but this time you can manage everything inside ., with working plus notice so you wont open a plus notice program btw if i added more things in this project it will be edited here in the same topic to prevent spam
How to change the GRB notice
07/22/2015 - Shaiya PServer Guides & Releases - 5 Replies
How to change the GRB notice Requirements Download me! LETS START! You download the Download me! Open the Application that you download Click "File" Open "Data.sah" Find "sysmsg-uni" Ctrl-F find " The guild ranking battle"
L2 Codename - simple CP HP and MP Auto-Clicker
03/25/2013 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 4 Replies
I want to present simple CP, HP and MP clicker. I created L2 Codename for my own needs some time ago, since i'm not using it too often i rebuild it and decided to share. You just need to set buttons for potions, show program your CP bar then press START and you ready to go ;) http://L2codename.ugu.pl/img/pierwszaENG.jpg http://L2codename.ugu.pl/img/jakENG.jpg Site of L2 codename: L2 Codename free hosting
CODENAME CHANGE & HIGH SP
07/07/2009 - Soldier Front Philippines - 7 Replies
:)MGA TOLS CNO NAKAKAALAM PANO UNG CHANGE CODENAME EVERY LOG IN AT ANG TAAS NG SP DURING NEW CREATE NG ACCOUNT NARINIG KO LANG SA CAFE, PATURO NAMAN PO:):D



All times are GMT +1. The time now is 05:25.


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.