Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Idea?

Newbie Spellweaver
Joined
Apr 1, 2017
Messages
47
Reaction score
1
is it possible to get coins on kill

Like 1 kill = 10 coins like that ??
 
Junior Spellweaver
Joined
Aug 26, 2020
Messages
148
Reaction score
20
i think he mean that every kill on character will get coins like a bounty in the game, if you killed some of characters or each character you will get bounty immediately.
 
Upvote 0
Newbie Spellweaver
Joined
Apr 1, 2017
Messages
47
Reaction score
1
What do you mean by Coins? Can you show a screenshot of what you are talking about?



No I mean when u kill some players u get bounty right like that we can add the coins to Database.



i think he mean that every kill on character will get coins like a bounty in the game, if you killed some of characters or each character you will get bounty immediately.

Exactly
 
Upvote 0
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
It does not matter.

Code:
USE [GunzDB]
GO
/** Kill for Coins **/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[spUpdateCharInfoData]
-- ALTER PROC dbo.spUpdateCharInfoData
    [USER=369615]Cid[/USER]            INT,
    @XPInc            INT,
    @BPInc            INT,
    [USER=1731]KiLLi[/USER]nc        INT,
    [USER=401081]Death[/USER]Inc        INT,
    [USER=2000229413]Playtime[/USER]Inc    INT
AS BEGIN
    SET NOCOUNT ON;
DECLARE @ECoins int
DECLARE [USER=420555]Aid[/USER] int
SELECT [USER=420555]Aid[/USER]=AID FROM Character(nolock) WHERE CID = [USER=369615]Cid[/USER]

SELECT @ECoins = [USER=1731]KiLLi[/USER]nc * 1 
    UPDATE    dbo.Character
    SET        XP = XP + (@XPInc)
            , BP = BP + (@BPInc)
            , KillCount = KillCount +  [USER=1731]KiLLi[/USER]nc)
            , DeathCount = DeathCount +  [USER=401081]Death[/USER]Inc)
            , PlayTime = PlayTime +  [USER=2000229413]Playtime[/USER]Inc)
    WHERE    CID = [USER=369615]Cid[/USER];


UPDATE Account 
SET KillCoins=KillCoins+(@ECoins) 
WHERE AID [USER=420555]Aid[/USER]

ENDUSE [GunzDB]
GO
/** Kill for Coins **/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[spUpdateCharInfoData]
-- ALTER PROC dbo.spUpdateCharInfoData
    [USER=369615]Cid[/USER]            INT,
    @XPInc            INT,
    @BPInc            INT,
    [USER=1731]KiLLi[/USER]nc        INT,
    [USER=401081]Death[/USER]Inc        INT,
    [USER=2000229413]Playtime[/USER]Inc    INT
AS BEGIN
    SET NOCOUNT ON;
DECLARE @ECoins int
DECLARE [USER=420555]Aid[/USER] int
SELECT [USER=420555]Aid[/USER]=AID FROM Character(nolock) WHERE CID = [USER=369615]Cid[/USER]

SELECT @ECoins = [USER=1731]KiLLi[/USER]nc * 1 
    UPDATE    dbo.Character
    SET        XP = XP + (@XPInc)
            , BP = BP + (@BPInc)
            , KillCount = KillCount +  [USER=1731]KiLLi[/USER]nc)
            , DeathCount = DeathCount +  [USER=401081]Death[/USER]Inc)
            , PlayTime = PlayTime +  [USER=2000229413]Playtime[/USER]Inc)
    WHERE    CID = [USER=369615]Cid[/USER];


UPDATE Account 
SET KillCoins=KillCoins+(@ECoins) 
WHERE AID [USER=420555]Aid[/USER]

END
 
Upvote 0
Newbie Spellweaver
Joined
Apr 1, 2017
Messages
47
Reaction score
1
It does not matter.

Code:
USE [GunzDB]
GO
/** Kill for Coins **/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[spUpdateCharInfoData]
-- ALTER PROC dbo.spUpdateCharInfoData
    [USER=369615]Cid[/USER]            INT,
    @XPInc            INT,
    @BPInc            INT,
    [USER=1731]KiLLi[/USER]nc        INT,
    [USER=401081]Death[/USER]Inc        INT,
    [USER=2000229413]Playtime[/USER]Inc    INT
AS BEGIN
    SET NOCOUNT ON;
DECLARE @ECoins int
DECLARE [USER=420555]Aid[/USER] int
SELECT [USER=420555]Aid[/USER]=AID FROM Character(nolock) WHERE CID = [USER=369615]Cid[/USER]

SELECT @ECoins = [USER=1731]KiLLi[/USER]nc * 1 
    UPDATE    dbo.Character
    SET        XP = XP + (@XPInc)
            , BP = BP + (@BPInc)
            , KillCount = KillCount +  [USER=1731]KiLLi[/USER]nc)
            , DeathCount = DeathCount +  [USER=401081]Death[/USER]Inc)
            , PlayTime = PlayTime +  [USER=2000229413]Playtime[/USER]Inc)
    WHERE    CID = [USER=369615]Cid[/USER];


UPDATE Account 
SET KillCoins=KillCoins+(@ECoins) 
WHERE AID [USER=420555]Aid[/USER]

ENDUSE [GunzDB]
GO
/** Kill for Coins **/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[spUpdateCharInfoData]
-- ALTER PROC dbo.spUpdateCharInfoData
    [USER=369615]Cid[/USER]            INT,
    @XPInc            INT,
    @BPInc            INT,
    [USER=1731]KiLLi[/USER]nc        INT,
    [USER=401081]Death[/USER]Inc        INT,
    [USER=2000229413]Playtime[/USER]Inc    INT
AS BEGIN
    SET NOCOUNT ON;
DECLARE @ECoins int
DECLARE [USER=420555]Aid[/USER] int
SELECT [USER=420555]Aid[/USER]=AID FROM Character(nolock) WHERE CID = [USER=369615]Cid[/USER]

SELECT @ECoins = [USER=1731]KiLLi[/USER]nc * 1 
    UPDATE    dbo.Character
    SET        XP = XP + (@XPInc)
            , BP = BP + (@BPInc)
            , KillCount = KillCount +  [USER=1731]KiLLi[/USER]nc)
            , DeathCount = DeathCount +  [USER=401081]Death[/USER]Inc)
            , PlayTime = PlayTime +  [USER=2000229413]Playtime[/USER]Inc)
    WHERE    CID = [USER=369615]Cid[/USER];


UPDATE Account 
SET KillCoins=KillCoins+(@ECoins) 
WHERE AID [USER=420555]Aid[/USER]

END

Thanks man jorklenis2
 
Upvote 0
Back
Top