open CommonServer.cfg and add line:
LuckyItemTrade = 1 //->1 enabled
or if you rather hardcode the option, gamemain.cpp:
bool g_LuckyItemTrade = false; //change to true.
can someone explain if there was a bug with tier2 items?
Printable View
i know, but i don't have it, cuz its in update v4?
No lucky items... this:
http://i.imgur.com/gkz5a3l.jpg
http://i.hizliresim.com/JdEBLY.jpg
http://i.hizliresim.com/OJdO2Z.jpg
add 1 to end of line
example :
7 70 15 0 1 7 0 5 1 //nemesis
8 64 15 0 1 7 0 5 1 //hades
you can't see it because you have to ADD it. if you look around code you'll find
that means it's going to read the value from LuckyItemTrade under [GameServerInfo] in commonserver.cfg, and that it takes 1 as the default value if it can't find the line.Code:g_LuckyItemTrade = GetPrivateProfileIntA("GameServerInfo", "LuckyItemTrade", 1, gDirPath.GetNewPath("commonserver.cfg"));
both lucky items txt seem incomplete, I'll try fill in the blanks, I hate configuring servers.
that would break the check, it works like this:
if you change it, it would work like this:Code:if( g_LuckyItemTrade == false ) // IF TRADING IS DISABLED
{
if( g_LuckyItemManager.IsLuckyItemEquipment(lpObj->pInventory[source].m_Type) ) // IF ITEM IS LUCKY ITEM
{
return -1; RETURN ERROR
}
}
if anyone has complete itemsettype and itemsetoption would you be so kind to share it?Code:if( g_LuckyItemTrade == TRUE ) // IF LUCKY TRADING IS ENABLED
{
if( g_LuckyItemManager.IsLuckyItemEquipment(lpObj->pInventory[source].m_Type) ) // IF ITEM IS LUCKY ITEM
{
return -1; // RETURN ERROR. BUT WE WANT IT TO RETURN THAT IT'S OK!
}
}
or30n
With your zMain.exe not show server in enter the game.
I use files with v4 update. But GameServer.exe is freezed, why this is happening?
Here's a photo:
http://www.part.lt/img/05a92d7f24d46...3bd4d58706.jpg
Please people read the thread.
@th3angel please either fix the update's 4 gs or remove the update 4 from the first post.
I tried to fix LuckyCoin event but without success...
Add these lines in commonserver.cfg section GameServerInfo:
Attachment 146740Quote:
LuckyCoinEventOn = 1
LuckyCoinDropRate = 100
Table
T_LUCKY_ITEM_INFO
ProceduresCode:USE [MuOnline]
GO
/****** Object: Table [dbo].[T_LUCKY_ITEM_INFO] Script Date: 07/12/2014 09:47:34 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[T_LUCKY_ITEM_INFO](
[nIndex] [int] IDENTITY(1,1) NOT NULL,
[UserGuid] [int] NOT NULL,
[CharName] [varchar](10) NOT NULL,
[ItemCode] [int] NOT NULL,
[ItemSerial] [bigint] NOT NULL,
[DurabilitySmall] [smallint] NOT NULL,
CONSTRAINT [PK_T_LUCKY_ITEM_INFO] PRIMARY KEY CLUSTERED
(
[CharName] ASC,
[ItemCode] ASC,
[ItemSerial] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
WZ_LuckyItemDelete
WZ_LuckyItemInsertCode:USE [MuOnline]
GO
/****** Object: StoredProcedure [dbo].[WZ_LuckyItemDelete] Script Date: 07/12/2014 09:39:04 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/****************************************************************
-- 2.CREATE PROC
*****************************************************************/
/****************************************************************
TITLE : 钒虐酒捞袍 昏力
EX : WZ_LuckyItemDelete
PROJECT : Season 6
CALL :
INPUT :
OUTPUT : @ErrorCode
0 : 己傍
2 : 角菩
REVERSION:
-------------------------------------------------------------------
DATE Author Description
-------------------------------------------------------------------
2010-09-16 傍饶琶[MU_STUDIO] 弥檬 累己
-------------------------------------------------------------------
*****************************************************************/
ALTER PROC [dbo].[WZ_LuckyItemDelete]
@CharacterName varchar(10)
,@ItemCode int
,@ItemSerial bigint
AS
DELETE T_LUCKY_ITEM_INFO
WHERE CharName = @CharacterName AND ItemCode = @ItemCode AND ItemSerial = @ItemSerial
WZ_LuckyItemSelectCode:USE [MuOnline]
GO
/****** Object: StoredProcedure [dbo].[WZ_LuckyItemInsert] Script Date: 07/12/2014 09:39:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/****************************************************************
TITLE : 钒虐酒捞袍 积己
EX : WZ_LuckyItemInsert
PROJECT : Season 6
CALL :
INPUT :
OUTPUT : @ErrorCode
0 : 己傍
2 : 角菩
REVERSION:
-------------------------------------------------------------------
DATE Author Description
-------------------------------------------------------------------
2010-09-16 傍饶琶[MU_STUDIO] 弥檬 累己
2011-04-14 C.H.O @durabilitySmall tinyint -> smallint
-------------------------------------------------------------------
*****************************************************************/
ALTER PROC [dbo].[WZ_LuckyItemInsert]
@userGuid int
@CharName varchar(10)
,@ItemCode int
,@ItemSerial bigint
@durabilitySmall smallint
AS
DECLARE @ErrorCode int
SET @ErrorCode = 0
SET NOCOUNT ON
SET XACT_ABORT ON
BEGIN TRAN
-- -----------------------------------------------------------------
-- 沥焊啊 绝促搁....
-- -----------------------------------------------------------------
IF NOT EXISTS (SELECT ItemCode FROM T_LUCKY_ITEM_INFO WITH ( READUNCOMMITTED )
WHERE CharName = @CharName AND ItemCode = @ItemCode AND ItemSerial = @ItemSerial
and UserGuid = @userGuid)
BEGIN
INSERT INTO T_LUCKY_ITEM_INFO (UserGuid, CharName, ItemCode, ItemSerial, DurabilitySmall)
VALUES @userGuid, @CharName, @ItemCode, @ItemSerial, @durabilitySmall)
END
-- -----------------------------------------------------------------
--沥焊啊 乐促搁 盎脚
-- -----------------------------------------------------------------
ELSE
BEGIN
UPDATE T_LUCKY_ITEM_INFO
SET DurabilitySmall = @durabilitySmall
WHERE CharName = @CharName AND ItemCode = @ItemCode AND ItemSerial = @ItemSerial
and UserGuid = @userGuid
END
IF( @ERROR <> 0 )
BEGIN
SET @ErrorCode = 2
END
IF ( @ErrorCode <> 0 )
ROLLBACK TRAN
ELSE
COMMIT TRAN
SELECT @ErrorCode
SET XACT_ABORT OFF
SET NOCOUNT OFF
Code:USE [MuOnline]
GO
/****** Object: StoredProcedure [dbo].[WZ_LuckyItemSelect] Script Date: 07/12/2014 09:40:32 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/****************************************************************
TITLE : 钒虐酒捞袍 炼雀
EX : WZ_LuckyItemSelect
PROJECT : Season 6
CALL :
INPUT : @CharacterName
OUTPUT :
REVERSION:
-------------------------------------------------------------------
DATE Author Description
-------------------------------------------------------------------
2010-09-16 傍饶琶[MU_STUDIO] 弥檬 累己
-------------------------------------------------------------------
*****************************************************************/
ALTER PROC [dbo].[WZ_LuckyItemSelect]
@CharacterName varchar(10)
AS
SELECT ItemCode, ItemSerial, DurabilitySmall
FROM T_LUCKY_ITEM_INFO
WHERE CharName = @CharacterName
Thanks 4FUNer, my mistake, this has nothing to do with LuckyCoin event...:(
@Ema Leto : you can sahre me yopru main plzease? i need you help, i want test with main GMO, plz help me! thank bro!
Can some one share GameServer that even works??
Try every Gs that is in here but still not responding.
who have Database Season 6 ep 3 original Webzen? please share me.
- - - Updated - - -
missing procedure 'SP_REQ_GET_COIN_COUNT' and procedure 'SP_REQ_REGEIST_COIN'