Free LevelUpPoints SQL Script

Status
Not open for further replies.
Joined
Oct 2, 2006
Messages
1,584
Reaction score
433
hello ragezoners

having a problem in SQL Script of free LevelUpPoints

here is my script

CREATE TRIGGER LevelUpPoint ON Character
FOR UPDATE AS

UPDATE Character
SET LevelUpPoint=('') + 1000
WHERE clevel<=1 and Resets<=1

but problem is the users need to relog to see their free stats

also in the other side

once they relog and relog again free stats become 2000
 
You want to give free stats to all new characters right?

Its very simple. Open table DefaultClassType and change values in column LevelUpPoint.

ScriptKid - Free LevelUpPoints SQL Script - RaGEZONE Forums



or something more advanced :

Code:
USE MuOnline
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'MUC_BONUS' AND type = 'TR')
DROP TRIGGER MUC_BONUS
GO

CREATE TRIGGER MUC_BONUS ON Dbo.Character FOR INSERT
AS
BEGIN

-- Bonus para Novos Chars
-- Por Alex do Muciados

DECLARE
@Resets INT,
@Pontos INT,
@Dinheiro INT,
@Char varchar(10)
SELECT @Char = Name FROM INSERTED

SET @Resets = [COLOR="Red"][B]10[/B][/COLOR] 
SET @Pontos = [COLOR="Red"][B]3500[/B][/COLOR] 
SET @Dinheiro = [COLOR="Red"][B]1000000[/B][/COLOR]

UPDATE Dbo.Character
SET Resets = @Resets, LevelUpPoint = @Pontos, Money = @Dinheiro
WHERE Name = @Char
END

to turn it off

Code:
USE MuOnline
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'MUC_BONUS' AND type = 'TR')
DROP TRIGGER MUC_BONUS
GO
 
Last edited:
Upvote 0
Man, as I say, go to MuOnline DB, open table DefaultClassType and change Default value in LevelUpPoint from 0 on value what you want. Thats all.

This should work but using the webzen dataserver the default values will be restored whenever you restarted any ds

Another solution is to modify the WZ_CreateCharacter stored procedure:
1. Search for something like below from WZ_CreateCharacter script
INSERT INTO dbo.Character
2. Just below it look for something
SELECT @AccountID As AccountID, @Name As Name, Level, LevelUpPoint

modify to ->

SELECT @AccountID As AccountID, @Name As Name, Level, LevelUpPoint+1000 <- points you want to add

Actually you can simply replace LevelUpPoint with the points you wanted to add coz those values are default to 0
 
Upvote 0
Status
Not open for further replies.
Back