[Share] ^^ Ammend Magic

Web3 is the Future
Developer
Joined
Sep 16, 2007
Messages
1,205
Reaction score
544
i take some help with our co-devz with this kind of magic in-game hahaha
originally, i see this idea on phoenixran, (jolin's server lately)

Here it is,
Once you type the 'SaintB51F', you will be warped there after you relogin..

Execute this on your MSSQL
Code:
USE [RanGame1]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[Auto_Map] ON [dbo].[ChaInfo]
AFTER UPDATE
AS
BEGIN
    UPDATE [ChaInfo] SET [ChaInfo].ChaSaveMap = [COLOR=Red][B]51[/B][/COLOR],
    [ChaInfo].ChaSavePosX = -1,
    [ChaInfo].ChaSavePosY = -1,
    [ChaInfo].ChaSavePosZ = -1
    FROM INSERTED
    WHERE Inserted.ChaGuName = '[COLOR=RoyalBlue][B]SaintB51F[/B][/COLOR]'
    and [ChaInfo].ChaMoney > 1
    and [ChaInfo].ChaLevel > 1
    and [ChaInfo].ChaNum = Inserted.ChaNum
    and [ChaInfo].UserNum = Inserted.UserNum
END

If you want to add another map, juz copy paste that trigger on same query and then change the following below
51 = Map Code
SaintB51F = The Word that you will put on the Ammend


use your common sense :lol:

Credits: Eifelzoecker, Jolin88, Crypticword(denverporia), marck
 
Last edited:
this is nice ^^ thnx

can you make a trigger for adding stats like this?
 
@lourence8
hahaha i ask eifel to make me a script and of course he will try it in his server ^^ is it great huh wahaha :D

@all
np
 
ok nvm

but this should be changed :


and [ChaInfo].ChaMoney > 1


remove it, the code means you require 2 gold or higher to enter but its not consumed

my actual script goes as follow :

update chainfo set chasavemap = 35,chaguname = '' from inserted where inserted.chanum = chainfo.chanum and inserted.chaguname = 'B30'
update chainfo set chasavemap = 36,chaguname = '' from inserted where inserted.chanum = chainfo.chanum and inserted.chaguname = 'B50'
update chainfo set chasavemap = 37,chaguname = '' from inserted where inserted.chanum = chainfo.chanum and inserted.chaguname = 'B90'
 
hmmmm you can do more... by using amend... like money cheat, warp, and many more... all this is runing on my weak server
 
we can also use this for adding stats like MU they use this amend..^^
 
haha i forgot, put it in your 1st trigger (example REBORN trigger)

remove this part of my trigger
Code:
USE [RanGame1]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[Auto_Map] ON [dbo].[ChaInfo]
AFTER UPDATE
AS

and add on my RB Trigger on this part of your RB

Code:
AFTER UPDATE
AS

REMEMBER: if you will not combine your and my trigger, it will cause rollback ^_^
ty to all np, sorry sir lourence


@Jolin, i already credited u ^^ see above..
 
haha i forgot, put it in your 1st trigger (example REBORN trigger)

remove this part of my trigger
Code:
USE [RanGame1]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[Auto_Map] ON [dbo].[ChaInfo]
AFTER UPDATE
AS

and add on my RB Trigger on this part of your RB

Code:
AFTER UPDATE
AS

REMEMBER: if you will not combine your and my trigger, it will cause rollback ^_^
ty to all np, sorry sir lourence


@Jolin, i already credited u ^^ see above..

problem solved already ehehe

tnx to sir Eifel
 
guys help me coz when i use this ammend magic after an hour my server crashes...

then after that ammend magic cannot be use anymore...

what do i need to do?
 
Back