Register for your free account! | Forgot your password?

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

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

Advertisement



Another question about [Plus Notice]

Discussion on Another question about [Plus Notice] within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Hamza FiGo's Avatar
 
elite*gold: 150
Join Date: Sep 2009
Posts: 987
Received Thanks: 258
Another question about [Plus Notice]

There is anyway to make the + notice for 14D-15D only ?

Its works fine for all degrees. But i just need for 14D - 15D if possible

Ty
Hamza FiGo is offline  
Old 11/14/2014, 17:58   #2


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
PHP Code:
DECLARE @ItemCode varchar(max)
SELECT @ItemCode = (SELECT CodeName128 FROM _RefObjCommon WHERE ID =(SELECT RefItemID FROM _Items WHERE Serial64 = @ItemSerial))
IF (@
ItemCode LIKE '%14%' OR @ItemCode LIKE '%15%')
BEGIN
-- Your notice --
END 
Should be like this
​Exo is offline  
Thanks
1 User
Old 11/14/2014, 18:06   #3
 
Hamza FiGo's Avatar
 
elite*gold: 150
Join Date: Sep 2009
Posts: 987
Received Thanks: 258
Quote:
Originally Posted by xExorcist View Post
PHP Code:
DECLARE @ItemCode varchar(max)
SELECT @ItemCode = (SELECT CodeName128 FROM _RefObjCommon WHERE ID =(SELECT RefItemID FROM _Items WHERE Serial64 = @ItemSerial))
IF (@
ItemCode LIKE '%14%' OR @ItemCode LIKE '%15%')
BEGIN
-- Your notice --
END 
Should be like this
Ty i gonna try this.

*********
Didn`t work and there is no plus notice appeared. just nothing.

Code:
USE [SRO_VT_SHARDLOG]
GO
/****** Object:  StoredProcedure [dbo].[_AddLogItem]    Script Date: 14/11/2014 08:35:35 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

-------------------------------------------------------------------------------------------------------------------
-- Step 2
-- ±âÁ¸ ¾ÆÀÌÅÛ ·Î±× ÀÔ·Â Stored procedure ¼öÁ¤
-- DataBase            : Shard Log  
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 > 0 and @len_desc > 0)   
   begin   
            insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, EventPos, strDesc, Serial64, Gold)    -- #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 > 0 and @len_desc = 0)   
   begin   
            insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, EventPos, Serial64, Gold)            -- #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 = 0 and @len_desc > 0)   
   begin   
            insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, strDesc, Serial64, Gold)            -- #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 = 0 and @len_desc = 0)   
   begin   
            insert _LogEventItem (EventTime, CharID, ItemRefID, dwData, TargetStorage, Operation, Slot_From, Slot_To, Serial64, Gold)                        -- #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 = 35)   
   DECLARE @ItemCode varchar(max)
SELECT @ItemCode = (SELECT CodeName128 FROM _RefObjCommon WHERE ID =(SELECT RefItemID FROM _Items WHERE Serial64 = @ItemSerial))
IF (@ItemCode LIKE '%14%' OR @ItemCode LIKE '%15%')
   begin   
    insert _LogCashItem (RefItemID, CharID, Cnt, EventTime, Serial64)   
    values(@ItemRefID, @CharID, @dwData, GetDate(), @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(@strDesc, 8, 1) 
    end 
   else if(@len_desc1 = 10) 
        begin 
        set @strDesc = SUBSTRING(@strDesc,0,10) 
        set @strDesc_separado = SUBSTRING(@strDesc, 8, 2) 
        end 
        if(@strDesc_separado <= 6)
        begin 
        --set @strDesc_separado = @len_desc1 
      insert _LogItemPlus(CharID, Serial64, Plus, Data, Lido) values(@CharID, @ItemSerial, @strDesc_separado, GetDate(), '0')   
    end  
   end 
   if(@Operation = 90)
   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(Sent, Message)values(0,@cname + ' has increased ' + @iname + ' to [lvl ' + CAST(@strDesc_separado AS NVARCHAR) + ']')  
  end
Hamza FiGo is offline  
Old 11/14/2014, 20:08   #4


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
If you can't get this to work then just ....

PHP Code:
IF (@Operation=90)
BEGIN
DECLARE @_CharName varchar(16),
        @
ItemCode varchar(129),


SELECT  @ItemCode = (SELECT CodeName128 FROM SRO_VT_SHARD.._RefObjCommon WHERE ID =(SELECT RefItemID FROM SRO_VT_SHARD.._Items WHERE Serial64 = @ItemSerial)), 
        @
_CharName = (SELECT CharName16 FROM SRO_VT_SHARD.._Char WHERE CharID = @CharID)

  IF (@
ItemCode LIKE '%14%' OR @ItemCode LIKE '%15%')
  
BEGIN
  INSERT INTO PlusNotice
(SentMessageVALUES (0,@_CharName ' has increased ' + @ItemCode ' to [lvl ' CAST(@strDesc_separado AS NVARCHAR) + ']')  
  
END      

END 
If the notice isn't written then it's your fault, you failed in configuring the application, how to test if it should work? After fusing got to PlusNotice table and check if a new row was added.
​Exo is offline  
Reply


Similar Threads Similar Threads
[Question] How to setup guild notice?
05/15/2012 - RF Online - 3 Replies
sorry guys, this is not a hack/exploit question but i think its the best place to do it. I've been looking thru the web and found nothing. I just wanna know how do i setup that that appears when u login the game, just like the archon or the GM notice. ty
Question/Notice about Paypal
05/27/2011 - Off Topic - 4 Replies
In a recent transaction I noted that using the 'gift' option still incurs a fee. I don't think the person receiving the gift is charged, but as the 'giver' I was. I'm not sure if I was at fault or if that's just new, so factor it into your Paypal purchases if it is new. If it was me being dumb and not doing something specific, anybody have an idea what?
*Notice*Warning Password stealing site*Notice*
12/28/2009 - World of Warcraft - 0 Replies
Notice is as follows, do not enter this site, if you get a notice in your email like this for gawd sakes dont give anyone your password Subject:World of Warcraft Account Trade Dispute Notice When we carry out a routine check when the account, we have evidence to show that your account has been involved in the disputed transactions. So we have to inform you visit our website(worldofwarcraft*com]fill out some information to facilitate our investigation. If you can not tie in with our soon...
Question about Notice things for iSRO bot
04/21/2007 - Silkroad Online - 7 Replies
I get a pink notice for every packet sent... How do i turn this off? This never occured for me when i had the real iSRO bot but now it does when I got the crack. Any help?



All times are GMT +1. The time now is 14:18.


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.