• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[help] About Auto Reborn..

Status
Not open for further replies.
Junior Spellweaver
Joined
Aug 11, 2007
Messages
144
Reaction score
30
When I Shutdown Or Restart My Pc My Reborn Count Will Reset Back To 0 Why... Can You Give Me A Perfect Autoreborn Script
Please Help Me Here...
 
Junior Spellweaver
Joined
Apr 23, 2006
Messages
115
Reaction score
9
@mike

maybe i can help you i encounter that problem but when i add 1 field in ChaInfo
ChaRebornTotal(smallint,allow null)... and here is the trigger

Update [ChaInfo] set [ChaInfo].ChaReborn=inserted.ChaRebornTotal
From Inserted
Where Inserted.ChaName=inserted.ChaName
and [ChaInfo].UserNum =inserted.UserNum

Update [ChaInfo] set [ChaInfo].ChaLevel=1,
[ChaInfo].ChaRebornTotal=[ChaInfo].ChaRebornTotal + 1,
[ChaInfo].ChaExp=0, -- Set Exp back to 0
[ChaInfo].ChaStRemain = (100*[ChaInfo].ChaReborn),
[ChaInfo].ChaPower = 0, -- Set the number of Pow you added to 0
[ChaInfo].ChaStrong = 0, -- Set the number of Vit you added to 0
[ChaInfo].ChaStrength = 0, -- Set the number of Stm you added to 0
[ChaInfo].ChaSpirit = 0, -- Set the number of Int you added to 0
[ChaInfo].ChaDex = 0, -- Set the number of Dex you added to 0
[ChaInfo].ChaMoney = [ChaInfo].ChaMoney - 2000000, -- Optional : Reborn cost 2m
[ChaInfo].ChaSkillPoint = (10*[ChaInfo].ChaReborn), -- Set the Skillpoints per reborn
[ChaInfo].ChaSkills = NULL, -- Optional : Forget all skills after reborn
[ChaInfo].ChaSkillSlot = NULL, -- Optional : Delete shortcut list of skills
[ChaInfo].ChaQuest = NULL -- Optional : Delete quest list (need restart all quests) after 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].ChaBright >= 0 -- Optional : Require 0 or more attr for reborn
and [ChaInfo].ChaMoney >= 2000000 -- Optional : Require 2m gold for reborn


thats the trigger i used when my ChaReborn reset to 0
 
Last edited:
Upvote 0
Junior Spellweaver
Joined
Aug 11, 2007
Messages
144
Reaction score
30
can i delete this part??


[ChaInfo].ChaExp=0, -- Set Exp back to 0
[ChaInfo].ChaStRemain = (100*[ChaInfo].ChaReborn),
[ChaInfo].ChaPower = 0, -- Set the number of Pow you added to 0
[ChaInfo].ChaStrong = 0, -- Set the number of Vit you added to 0
[ChaInfo].ChaStrength = 0, -- Set the number of Stm you added to 0
[ChaInfo].ChaSpirit = 0, -- Set the number of Int you added to 0
[ChaInfo].ChaDex = 0, -- Set the number of Dex you added to 0

[ChaInfo].ChaSkillPoint = (10*[ChaInfo].ChaReborn), -- Set the Skillpoints per reborn
[ChaInfo].ChaSkills = NULL, -- Optional : Forget all skills after reborn
[ChaInfo].ChaSkillSlot = NULL, -- Optional : Delete shortcut list of skills
[ChaInfo].ChaQuest = NULL -- Optional : Delete quest list (need restart all quests) after reborn
and [ChaInfo].ChaBright >= 0 -- Optional : Require 0 or more attr for reborn
 
Upvote 0
Junior Spellweaver
Joined
Apr 23, 2006
Messages
115
Reaction score
9
hmmm try to use only this line and replace it to your trigger in line

Update [ChaInfo] set [ChaInfo].ChaLevel=1,
[ChaInfo].ChaRebornTotal=[ChaInfo].ChaRebornTotal + 1,
[ChaInfo].ChaExp=0, -- Set Exp back to 0
[ChaInfo].ChaStRemain = (100*[ChaInfo].ChaReborn),
[ChaInfo].ChaPower = 0, -- Set the number of Pow you added to 0
[ChaInfo].ChaStrong = 0, -- Set the number of Vit you added to 0
[ChaInfo].ChaStrength = 0, -- Set the number of Stm you added to 0
[ChaInfo].ChaSpirit = 0, -- Set the number of Int you added to 0
[ChaInfo].ChaDex = 0, -- Set the number of Dex you added to 0
[ChaInfo].ChaMoney = [ChaInfo].ChaMoney - 2000000, -- Optional : Reborn cost 2m
[ChaInfo].ChaSkillPoint = (10*[ChaInfo].ChaReborn), -- Set the Skillpoints per reborn
[ChaInfo].ChaSkills = NULL, -- Optional : Forget all skills after reborn
[ChaInfo].ChaSkillSlot = NULL, -- Optional : Delete shortcut list of skills
[ChaInfo].ChaQuest = NULL -- Optional : Delete quest list (need restart all quests) after reborn

or just add [ChaInfo].ChaRebornTotal

then add this one

Update [ChaInfo] set [ChaInfo].ChaReborn=inserted.ChaRebornTotal
From Inserted
Where Inserted.ChaName=inserted.ChaName
and [ChaInfo].UserNum =inserted.UserNum
 
Upvote 0
Status
Not open for further replies.
Back
Top