[req] auto reborn script

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! justmaine is offline
    MemberRank
    Jan 2010 Join Date
    418Posts

    [req] auto reborn script

    can someone share a autoreborn script.. the script will wipe all the stats and recieve 30 free stats per rb thanks


  2. #2
    Account Upgraded | Title Enabled! LUPIN III is offline
    MemberRank
    Dec 2012 Join Date
    Ran PlanetLocation
    1,127Posts

    Re: [req] auto reborn script

    Quote Originally Posted by justmaine View Post
    can someone share a autoreborn script.. the script will wipe all the stats and recieve 30 free stats per rb thanks
    try use this

    max level to reborn is 250
    max reborn is 200
    gained stat per rb is 30

    hope its help and dont forget to press like ^_^

    CREATE TRIGGER [dbo].[Auto_Reborn] ON [dbo].[ChaInfo]
    after update
    as
    BEGIN

    Update [ChaInfo] set [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].ChaStartMap=22, -- MarketPlace
    [ChaInfo].ChaStartGate=0, -- MarketPlace
    [ChaInfo].ChaSavePosX=0.847706, -- X coordinates
    [ChaInfo].ChaSavePosY=0.299, -- Y coordinates
    [ChaInfo].ChaSaveMap=22, -- MarketPlace
    [ChaInfo].ChaSavePosZ=0.345514, -- X coordinates
    [ChaInfo].ChaReturnMap=22, -- MarketPlace
    [ChaInfo].ChaReturnPosX=0.847706, -- X coordinates
    [ChaInfo].ChaReturnPosY=0.299, -- Y coordinates
    [ChaInfo].ChaReturnPosZ=0.345514, -- Z coordinates
    [ChaInfo].ChaStRemain = (30*[ChaInfo].ChaReborn), -- how many stat points you get per reborn
    [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 - 1000000, -- Optional : Reborn cost 5m
    [ChaInfo].ChaSkillSlot = NULL -- Optional : Delete shortcut list of skills
    From Inserted
    Where Inserted.ChaLevel = 250 -- Level to reborn
    and [ChaInfo].ChaReborn < 200 -- 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 >= 1000000 -- Optional : Require 5m gold for reborn

    End

  3. #3
    Account Upgraded | Title Enabled! justmaine is offline
    MemberRank
    Jan 2010 Join Date
    418Posts

    Re: [req] auto reborn script

    Quote Originally Posted by Bounty View Post
    try use this

    max level to reborn is 250
    max reborn is 200
    gained stat per rb is 30

    hope its help and dont forget to press like ^_^

    CREATE TRIGGER [dbo].[Auto_Reborn] ON [dbo].[ChaInfo]
    after update
    as
    BEGIN

    Update [ChaInfo] set [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].ChaStartMap=22, -- MarketPlace
    [ChaInfo].ChaStartGate=0, -- MarketPlace
    [ChaInfo].ChaSavePosX=0.847706, -- X coordinates
    [ChaInfo].ChaSavePosY=0.299, -- Y coordinates
    [ChaInfo].ChaSaveMap=22, -- MarketPlace
    [ChaInfo].ChaSavePosZ=0.345514, -- X coordinates
    [ChaInfo].ChaReturnMap=22, -- MarketPlace
    [ChaInfo].ChaReturnPosX=0.847706, -- X coordinates
    [ChaInfo].ChaReturnPosY=0.299, -- Y coordinates
    [ChaInfo].ChaReturnPosZ=0.345514, -- Z coordinates
    [ChaInfo].ChaStRemain = (30*[ChaInfo].ChaReborn), -- how many stat points you get per reborn
    [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 - 1000000, -- Optional : Reborn cost 5m
    [ChaInfo].ChaSkillSlot = NULL -- Optional : Delete shortcut list of skills
    From Inserted
    Where Inserted.ChaLevel = 250 -- Level to reborn
    and [ChaInfo].ChaReborn < 200 -- 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 >= 1000000 -- Optional : Require 5m gold for reborn

    End
    its not compatible with my database it always getting have problem when i execute it

  4. #4
    Member respect09 is offline
    MemberRank
    Jan 2013 Join Date
    51Posts

    Re: [req] auto reborn script

    "its not compatible with my database it always getting have problem when i execute it" dont copy all just start copying
    CREATE TRIGGER [dbo].[Auto_Reborn] ON [dbo].[ChaInfo]
    after update
    as
    BEGIN

    Update [ChaInfo] set [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].ChaStartMap=22, -- MarketPlace
    [ChaInfo].ChaStartGate=0, -- MarketPlace
    [ChaInfo].ChaSavePosX=0.847706, -- X coordinates
    [ChaInfo].ChaSavePosY=0.299, -- Y coordinates
    [ChaInfo].ChaSaveMap=22, -- MarketPlace
    [ChaInfo].ChaSavePosZ=0.345514, -- X coordinates
    [ChaInfo].ChaReturnMap=22, -- MarketPlace
    [ChaInfo].ChaReturnPosX=0.847706, -- X coordinates
    [ChaInfo].ChaReturnPosY=0.299, -- Y coordinates
    [ChaInfo].ChaReturnPosZ=0.345514, -- Z coordinates
    [ChaInfo].ChaStRemain = (30*[ChaInfo].ChaReborn), -- how many stat points you get per reborn
    [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 - 1000000, -- Optional : Reborn cost 5m
    [ChaInfo].ChaSkillSlot = NULL -- Optional : Delete shortcut list of skills
    From Inserted
    Where Inserted.ChaLevel = 250 -- Level to reborn
    and [ChaInfo].ChaReborn < 200 -- 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 >= 1000000 -- Optional : Require 5m gold for reborn

    End

  5. #5
    Account Upgraded | Title Enabled! LUPIN III is offline
    MemberRank
    Dec 2012 Join Date
    Ran PlanetLocation
    1,127Posts

    Re: [req] auto reborn script

    its working dude im using this my server .. please make it sure you dont have existing trigger in your database .. and read the error if what is say.


    CREATE TRIGGER [dbo].[Auto_Reborn] ON [dbo].[ChaInfo]
    after update
    as
    BEGIN

    Update [ChaInfo] set [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].ChaStartMap=22, -- MarketPlace
    [ChaInfo].ChaStartGate=0, -- MarketPlace
    [ChaInfo].ChaSavePosX=0.847706, -- X coordinates
    [ChaInfo].ChaSavePosY=0.299, -- Y coordinates
    [ChaInfo].ChaSaveMap=22, -- MarketPlace
    [ChaInfo].ChaSavePosZ=0.345514, -- X coordinates
    [ChaInfo].ChaReturnMap=22, -- MarketPlace
    [ChaInfo].ChaReturnPosX=0.847706, -- X coordinates
    [ChaInfo].ChaReturnPosY=0.299, -- Y coordinates
    [ChaInfo].ChaReturnPosZ=0.345514, -- Z coordinates
    [ChaInfo].ChaStRemain = (30*[ChaInfo].ChaReborn), -- how many stat points you get per reborn

    [ChaInfo].ChaMoney = [ChaInfo].ChaMoney - 1000000, -- Optional : Reborn cost 5m
    [ChaInfo].ChaSkillSlot = NULL -- Optional : Delete shortcut list of skills
    From Inserted
    Where Inserted.ChaLevel = 250 -- Level to reborn
    and [ChaInfo].ChaReborn < 200 -- 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 >= 1000000 -- Optional : Require 5m gold for reborn

    End

    if not working try to change the CREATE to ALTER then pres sexecute

  6. #6
    Account Upgraded | Title Enabled! justmaine is offline
    MemberRank
    Jan 2010 Join Date
    418Posts

    Re: [req] auto reborn script

    Msg 8197, Level 16, State 4, Procedure Auto_Reborn, Line 1
    The object 'dbo.ChaInfo' does not exist or is invalid for this operation.
    this is the error

  7. #7
    Account Upgraded | Title Enabled! denvee is offline
    MemberRank
    Feb 2009 Join Date
    /var/users/Location
    579Posts

    Re: [req] auto reborn script

    make sure rangame1 is highlighted... then run that query

  8. #8
    Account Upgraded | Title Enabled! justmaine is offline
    MemberRank
    Jan 2010 Join Date
    418Posts

    Re: [req] auto reborn script

    Quote Originally Posted by denvee View Post
    make sure rangame1 is highlighted... then run that query
    ohh thats why i just press new query thanks sir

  9. #9
    / Developer / Coder / Dharyll is offline
    MemberRank
    Mar 2012 Join Date
    FacebookLocation
    303Posts

    Re: [req] auto reborn script

    well, if you having problem to execute the script . just check your database i think that you already executed it.

  10. #10
    Apprentice Carlo Tatoy is offline
    MemberRank
    Aug 2013 Join Date
    5Posts

    Re: [req] auto reborn script

    How To Add This On My RanGame1



Advertisement