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!

Auto Rb script

Newbie Spellweaver
Joined
Jun 23, 2008
Messages
88
Reaction score
0
can someone share the auto Rb script w/ no rollback of stats and skills??



really need it...


thx in advnce
 
Newbie Spellweaver
Joined
Dec 5, 2007
Messages
50
Reaction score
0
CREATE TRIGGER [dbo].[Auto_Reborn] ON [dbo].[ChaInfo]
after update
as
BEGIN

Update [ChaInfo] set [ChaInfo].ChaReborn = 0,[ChaInfo].ChaTribe = 1
from Inserted
Where Inserted.ChaTribe = 0

Update [ChaInfo] set [ChaInfo].ChaLevel=1, -- Level that you get after reborn
[ChaInfo].ChaReborn=[ChaInfo].ChaReborn + 1, -- Reborn counter
[ChaInfo].ChaExp=0, -- Set Exp back to 0
[ChaInfo].ChaStRemain = (100*[ChaInfo].ChaReborn), -- how many stat points you get per reborn
[ChaInfo].ChaMoney = [ChaInfo].ChaMoney - 2000000, -- Optional : Reborn cost 2m
[ChaInfo].ChaSkillPoint = (10*[ChaInfo].ChaReborn) -- Set the Skillpoints per reborn

From Inserted
Where Inserted.ChaLevel = 300 -- Level to reborn
and [ChaInfo].ChaReborn < 10 -- Max Reborn number
and [ChaInfo].ChaName=inserted.ChaName
and [ChaInfo].UserNum =inserted.UserNum
and [ChaInfo].ChaMoney >= 2000000 -- Optional : Require 2m gold for reborn

End

-----------------------
Just edit some parameters there to suit your need..hope it will Help you..
 
Upvote 0
Newbie Spellweaver
Joined
Jul 6, 2008
Messages
71
Reaction score
5
ey i don't understand @_@ can someone give some specific method?? [slow methods more like level 0/1 noob method like me wenkzz]
 
Upvote 0
Newbie Spellweaver
Joined
Jul 6, 2008
Messages
71
Reaction score
5
no... i meant where do i start, what do i must open slow methods but the script still like that :D

oh maybe you can put a red color if i can modify it like example i can modify the level so make it color red please :D
 
Upvote 0
Back
Top