Register for your free account! | Forgot your password?

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

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

Advertisement



_AddLogItem / _LogEventItem doesn't work.

Discussion on _AddLogItem / _LogEventItem doesn't work. within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1

 
AceSpace's Avatar
 
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
_AddLogItem / _LogEventItem doesn't work.

Hey,

I have been trying lately to add a new scroll "overlimit system" which grants the player a item after using it. However, there is nothing wrong with my query.

It should be from _AddLogItem since It doesn't really insert anything into _LogEventItem.. Been trying to fix it for 2 days and still couldn't find a solution so I thought about posting here, maybe someone could help.

Some pictures for explanation:



^ It doesn't insert anything into _LogEventItem "I used a instant return scroll before checking"

So I thought about creating a new table to check if _AddLogItem doesn't work at all and found out that:



It does work lol, I'm thinking right now of creating a new procedure and use _OperationDetectHUH instead but I think It may not work..


_AddLogItem Procedure:

Code:
USE [SRO_VT_LOG]
GO
/****** Object:  StoredProcedure [dbo].[_AddLogItem]    Script Date: 02/13/2014 13:04:26 ******/
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  
  
  
  
insert into _OperationDetectHUH values (@CharID, @Operation, @Slot_From, @Slot_To, @EventPos, @strDesc, @ItemRefID, GETDATE())
RETURN
   declare @len_pos int  
   declare @len_desc 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  srsly learn how to use TV next time xDDD  I don't use meeting :s 
   if (@Operation = 35)  
   begin  
    insert _LogCashItem (RefItemID, CharID, Cnt, EventTime, Serial64)  
    values(@ItemRefID, @CharID, @dwData, GetDate(), @ItemSerial)  
   end
   
   IF (@Operation = '41')
        -- ##############################################
        -- TESTING AT LEAST
        -- ##############################################
     begin
    
  IF (@ItemRefID = '47063')
  begin
  Declare  @Charname varchar(64);
      Select  @Charname = Charname16
  FROM sro_vt_Shard.dbo._Char where CharID = @CharID
  
  	exec sro_vt_shard.dbo._ADD_ITEM_EXTERN @Charname,'ITEM_EVENT_RENT_REVERSE_RETURN_SCROLL',5,1  
  
  end
  end
Thank you so much and I'm really sorry If i have wasted your time.
AceSpace is offline  
Old 02/13/2014, 13:13   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
Are you using Evangelion/srZor gameserver?

Check the ini files if you disabled the log call from there.
magicanoo is offline  
Thanks
1 User
Old 02/13/2014, 13:16   #3

 
AceSpace's Avatar
 
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
Quote:
Originally Posted by magicanoo View Post
Are you using Evangelion/srZor gameserver?

Check the ini files if you disabled the log call from there.
They're enabled as i think.



I have even replaced sr_gameserver and evangelion right now. still the same problem..

EDIT: Fixed. Thanks goes to magicanoo. Thank you again
AceSpace is offline  
Closed Thread


Similar Threads Similar Threads
NHC doesn'T work
01/01/2014 - League of Legends Trading - 2 Replies
for anyone else? so buggy
Doesn't work...
12/22/2012 - SRO Private Server - 2 Replies
Hi all! I have a big problem.. my silkroad launcher is not launch. I launch the silkroad launcher, and nothing ... Only 1-2 min. later gain i one window, with a short message... Please help me !!!
WP doesn't work
01/06/2012 - DarkOrbit - 6 Replies
The WP I do not work anymore, why? Thanks.
<HELP>MY NPC'S DOESN'T WORK
07/17/2009 - CO2 Private Server - 2 Replies
My server works fine and only my npcs doesn't want to work...i dunno what's the problem!Please help me with this!:handsdown:
rPE doesn't work !! help me T_T
06/16/2008 - RO Guides & Templates - 1 Replies
hi everybody !! i have a problem when using rPE. I can open the game with rPE, but when i click Start, it didnt capture any packets, everything is 0,and i was making sure that i have selected the right process with .exe at the end. I tried with other applications but it still the same. With some applications it says "rPE.dll has been loaded..." and i couldn't select. IF any1 knows how to solve this plz tell me what to do.. T_T Thx so much for helping me !<3



All times are GMT +1. The time now is 16:03.


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.