Jump to content
Sign in to follow this  
Ultrasoth

Rebirth 2-3 bug

Recommended Posts

Hello guys, I have a problem with the rebirth 2 and 3.

When I rebirth 2 and 3 receive the stats that should give, but when disconnect and / or map change, the stats return back as they were before.

I dont know if your can understand what I'm trying to say is that after the rebirth 2 have the bonus of 5.5% damage and def. But when I use ticket or disconnect and reconnect, this no longer occurs, what had come to have the same stats as having no rebirth 2, the same goes for the rebirth 3.

any solution?

Srry for my bad inglish :(

 

NpcSdk.lua

Spoiler


------------------------------AzureEpix Lv2 Rebirth

function GetChaName1_born2 ( role,npc )
    -----------------Crusader Born
        local cha_type = GetChaTypeID ( role )
    if cha_type~=1 and cha_type~=2 and cha_type~=3 then
        SystemNotice( role ,"Only Lance,Phyllis,Carsise Can Become Crusader")
        return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
        SystemNotice( role ,"Requirements Do Not Meet")
        return
    end
    -----------------Skill Add
    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,9 )     
    GiveItem_chibang2 ( role  )                --Wings Add
    local sk_add = SK_WYZ
    AddChaSkill ( role , sk_add , 2 , 1 , 0 )
    SetChaAttrI(role, ATTR_CSAILEXP , 11000)
    RefreshCha ( role )
end
-------------------------------Champ
function GetChaName2_born2 ( role,npc )
    -----------------Champ Born
        local cha_type = GetChaTypeID ( role )
    if cha_type~=2 then
        SystemNotice( role ,"Only Carsise Can become Champion")
        return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
        SystemNotice( role ,"Requirements Do Not Meet")
        return
    end
    -----------------Skill Add
    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,8 )
    GiveItem_chibang2 ( role  )                --Wings Add
    local sk_add = SK_BSJ
    AddChaSkill ( role , sk_add , 2 , 1 , 0 )
    SetChaAttrI(role, ATTR_CSAILEXP , 10000)
    RefreshCha ( role )
end
-------------------------------Voyager
function GetChaName3_born2 ( role,npc )
    -----------------È¡Voyager Born
        local cha_type = GetChaTypeID ( role )
    if cha_type~=1 and cha_type~=3 and cha_type~=4 then
        SystemNotice( role ,"Only Lance,Phyllis,Ami Can Become Voyager")
        return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
        SystemNotice( role ,"Requirements Do Not Meet")
        return
    end
    -----------------GiveSkill
    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,16 )     
    GiveItem_chibang2 ( role  )                --Wings Add
    local sk_add = SK_CYN
    AddChaSkill ( role , sk_add , 2 , 1 , 0 )
    SetChaAttrI(role, ATTR_CSAILEXP , 10000)
    RefreshCha ( role )
end
-------------------------------SharpShooter
function GetChaName4_born2 ( role,npc )
    -----------------È¡Sharpshooter Born
        local cha_type = GetChaTypeID ( role )
    if cha_type~=1 and cha_type~=3 then
        SystemNotice( role ,"Only Lance,Phyllis Can Become Sharpshooter")
        return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
        SystemNotice( role ,"Requirements Do Not Meet")
        return
    end
    -----------------Skill Add
    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,12 )     
    GiveItem_chibang2 ( role  )                --Wings Add
    local sk_add = SK_HLP
    AddChaSkill ( role , sk_add , 2 , 1 , 0 )
    SetChaAttrI(role, ATTR_CSAILEXP , 10000)
    RefreshCha ( role )
end
-------------------------------Cleric
function GetChaName5_born2 ( role,npc )
    -----------------Cleric Born
        local cha_type = GetChaTypeID ( role )
    if cha_type~=3 and cha_type~=4 then
        SystemNotice( role ,"Only Phyllis,Ami Can Become Cleric")
        return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
        SystemNotice( role ,"Requirements Do Not Meet")
        return
    end
    -----------------Skill Add
    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,13 )     
    GiveItem_chibang2 ( role  )                --Rebirth Wings Add
    local sk_add = SK_SSSP
    AddChaSkill ( role , sk_add , 2 , 1 , 0 )
    SetChaAttrI(role, ATTR_CSAILEXP , 10000)
    RefreshCha ( role )
end
-------------------------------Seal Master
function GetChaName6_born2 ( role,npc )
    -----------------È¡Seal Master Born
        local cha_type = GetChaTypeID ( role )
    if cha_type~=3 and cha_type~=4 then
        SystemNotice( role ,"Only Phyllis,Ami Can Become Seal Master")
        return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
        SystemNotice( role ,"Requirements Do Not Meet")
        return
    end
    -----------------SkillAdd
    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,14 )     
    GiveItem_chibang2 ( role  )                --Rebirth Wings Add
    local sk_add = SK_SSSP
    AddChaSkill ( role , sk_add , 2 , 1 , 0 )
    SetChaAttrI(role, ATTR_CSAILEXP , 10000)
    RefreshCha ( role )
end

function GiveItem_chibang2 ( role  )
        local cha_type = GetChaTypeID ( role )    
    if cha_type==1 then
        GiveItem( role , 0 , 136  , 1 , 4 )
    elseif cha_type==2 then
        GiveItem( role , 0 , 139  , 1 , 4 )
    elseif cha_type==3 then
        GiveItem( role , 0 , 129  , 1 , 4 )
    elseif cha_type==4 then
        GiveItem( role , 0 , 132  , 1 , 4 )
    end
end

-------------------------------Check Lv2 RB
function GetChaName_born2 ( role )
    -----------------È¡½ÇÉ«µÄÃû×Ö
    local cha_name = GetChaDefaultName ( role )
    -----------------È¡½ÇÉ«µÄµÈ¼¶
    local cha_lv = GetChaAttr(role, ATTR_LV)
    -----------------È¡½ÇÉ«µÄÖ°Òµ
    local cha_job = GetChaAttr(role, ATTR_JOB)
    -----------------ÅжϽÇÉ«±³°üÀïÊÇ·ñ¾ßÓÐÖØÉúÖ¤Ã÷
    local i = CheckBagItem( role, 5765 )    
    if i < 1 then
        SystemNotice( role ,"Please Give Me Ur Lv2 Rebirth Stone")
        return 0
    end
    -----------------ÅжϽÇɫװ±¸À¸ÊÇ·ñÒÑÇå¿Õ
    local item_empty=IsEquip(role)
    if item_empty==LUA_TRUE then
        SystemNotice(role,"Please place the item from character's equipment slot into the inventory")
        return 0    
    end
    -----------------ÅжϽÇÉ«±³°üÖÐÊÇ·ñÓпոñ
    local Item_CanGet = GetChaFreeBagGridNum ( role )    
    if Item_CanGet < 1 then
        SystemNotice(role ,"Inventory Needs Atleast 1 Free Slot")
        UseItemFailed ( role )
        return 0
    end
    local zs1 =TakeItem( role, 0,5765, 1 )
    if zs1==0 then
        SystemNotice ( role ,"Gather Lv2 Rebirth Stone Failed")
        return 0
    end
    ------------------ÅжϽÇÉ«ÊÇ·ñÒѾ­ÖØÉú¹ý
    local Zs_Exp = GetChaAttr ( role , ATTR_CSAILEXP )
    if Zs_Exp >=10000 then
        SystemNotice(role ,"U have Already Done Lv2 Rebirth")
        return 0
    end
    local cha_skill_num=GetChaAttr(role, ATTR_TP  )

    local clear_skill_num=ClearFightSkill(role)

    cha_skill_num=cha_skill_num+clear_skill_num
    SetChaAttr(role, ATTR_TP ,cha_skill_num )

    local ap = GetChaAttr( role , ATTR_AP )

    local cha_str = GetChaAttr(role, ATTR_BSTR  )
    local cha_dex = GetChaAttr(role, ATTR_BDEX  )
    local cha_agi = GetChaAttr(role, ATTR_BAGI  )
    local cha_con = GetChaAttr(role, ATTR_BCON )
    local cha_sta = GetChaAttr(role, ATTR_BSTA )
    ap=ap+cha_str+cha_dex+cha_agi+cha_con+cha_sta-25
    SetChaAttr(role, ATTR_BSTR ,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BDEX ,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BAGI ,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BCON,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BSTA,5 )
    SyncChar(role,4)
    SetChaAttr(role , ATTR_AP,ap  )
    SyncChar(role,4)
    AddSailExp(role, npc , 1 , 1 )
    local sk_add = SK_ZSSL
    AddChaSkill ( role , sk_add , 2 , 1 , 0 )

    Notice("Extreme celebration "..cha_name.." 2nd Rebirth successful. Blessing from the whole server "..cha_name.." Hope you have a safe journey and everything goes your way!")
    return 1

end

------------------------------Azure Epix Lv3 Rebirth
-------------------------------Start Crusader
function GetChaName1_born3 ( role,npc )
   -----------------Crusader Born
        local cha_type = GetChaTypeID ( role )
   if cha_type~=1 and cha_type~=2 and cha_type~=3 then
      SystemNotice( role ,"Only Lance,Phyllis,Carsise Can Become Crusader")
      return
   end
   local check=GetChaName_born3 ( role )
   if check==0 then
      SystemNotice( role ,"Requirements Do Not Meet")
      return
   end
   -----------------Skill Add
   local cha_job = GetChaAttr( role , ATTR_JOB )
   SetChaAttr(role, ATTR_JOB ,9 )    
   GiveItem_chibang3 ( role  )            --Wings Add
   local sk_add = SK_WYZ
   AddChaSkill ( role , sk_add , 3 , 3 , 0 )
   SetChaAttrI(role, ATTR_CSAILEXP , 12000)
   RefreshCha ( role )
end
-------------------------------Champ
function GetChaName2_born3 ( role,npc )
   -----------------Champ Born
        local cha_type = GetChaTypeID ( role )
   if cha_type~=2 then
      SystemNotice( role ,"Only Carsise Can become Champion")
      return
   end
   local check=GetChaName_born3 ( role )
   if check==0 then
      SystemNotice( role ,"Requirements Do Not Meet")
      return
   end
   -----------------Skill Add
   local cha_job = GetChaAttr( role , ATTR_JOB )
   SetChaAttr(role, ATTR_JOB ,8 )
   GiveItem_chibang3 ( role  )            --Wings Add
   local sk_add = SK_BSJ
   AddChaSkill ( role , sk_add , 3 , 3 , 0 )
   SetChaAttrI(role, ATTR_CSAILEXP , 12000)
   RefreshCha ( role )
end
-------------------------------Voyager
function GetChaName3_born3 ( role,npc )
   -----------------?Voyager Born
        local cha_type = GetChaTypeID ( role )
   if cha_type~=1 and cha_type~=3 and cha_type~=4 then
      SystemNotice( role ,"Only Lance,Phyllis,Ami Can Become Voyager")
      return
   end
   local check=GetChaName_born3 ( role )
   if check==0 then
      SystemNotice( role ,"Requirements Do Not Meet")
      return
   end
   -----------------GiveSkill
   local cha_job = GetChaAttr( role , ATTR_JOB )
   SetChaAttr(role, ATTR_JOB ,16 )    
   GiveItem_chibang3 ( role  )            --Wings Add
   local sk_add = SK_CYN
   AddChaSkill ( role , sk_add , 3 , 3 , 0 )
   SetChaAttrI(role, ATTR_CSAILEXP , 12000)
   RefreshCha ( role )
end
-------------------------------SharpShooter
function GetChaName4_born3 ( role,npc )
   -----------------?Sharpshooter Born
        local cha_type = GetChaTypeID ( role )
   if cha_type~=1 and cha_type~=3 then
      SystemNotice( role ,"Only Lance,Phyllis Can Become Sharpshooter")
      return
   end
   local check=GetChaName_born3 ( role )
   if check==0 then
      SystemNotice( role ,"Requirements Do Not Meet")
      return
   end
   -----------------Skill Add
   local cha_job = GetChaAttr( role , ATTR_JOB )
   SetChaAttr(role, ATTR_JOB ,12 )    
   GiveItem_chibang3 ( role  )            --Wings Add
   local sk_add = SK_HLP
   AddChaSkill ( role , sk_add , 3 , 3 , 0 )
   SetChaAttrI(role, ATTR_CSAILEXP , 12000)
   RefreshCha ( role )
end
-------------------------------Cleric
function GetChaName5_born3 ( role,npc )
   -----------------Cleric Born
        local cha_type = GetChaTypeID ( role )
   if cha_type~=3 and cha_type~=4 then
      SystemNotice( role ,"Only Phyllis,Ami Can Become Cleric")
      return
   end
   local check=GetChaName_born3 ( role )
   if check==0 then
      SystemNotice( role ,"Requirements Do Not Meet")
      return
   end
   -----------------Skill Add
   local cha_job = GetChaAttr( role , ATTR_JOB )
   SetChaAttr(role, ATTR_JOB ,13 )    
   GiveItem_chibang3 ( role  )            --Rebirth Wings Add
   local sk_add = SK_SSSP
   AddChaSkill ( role , sk_add , 3 , 3 , 0 )
   SetChaAttrI(role, ATTR_CSAILEXP , 12000)
   RefreshCha ( role )
end
-------------------------------Seal Master
function GetChaName6_born3 ( role,npc )
   -----------------?Seal Master Born
        local cha_type = GetChaTypeID ( role )
   if cha_type~=3 and cha_type~=4 then
      SystemNotice( role ,"Only Phyllis,Ami Can Become Seal Master")
      return
   end
   local check=GetChaName_born3 ( role )
   if check==0 then
      SystemNotice( role ,"Requirements Do Not Meet")
      return
   end
   -----------------SkillAdd
   local cha_job = GetChaAttr( role , ATTR_JOB )
   SetChaAttr(role, ATTR_JOB ,14 )    
   GiveItem_chibang3 ( role  )            --Rebirth Wings Add
   local sk_add = 0457
   AddChaSkill ( role , sk_add , 3 , 3 , 0 )
   SetChaAttrI(role, ATTR_CSAILEXP , 12000)
   RefreshCha ( role )
end

function GiveItem_chibang3 ( role  )
        local cha_type = GetChaTypeID ( role )   
   if cha_type==1 then
      GiveItem( role , 0 , 137  , 1 , 4 )
   elseif cha_type==2 then
      GiveItem( role , 0 , 140  , 1 , 4 )
   elseif cha_type==3 then
      GiveItem( role , 0 , 130  , 1 , 4 )
   elseif cha_type==4 then
      GiveItem( role , 0 , 133  , 1 , 4 )
   end
end

-------------------------------Check Lv3 RB
function GetChaName_born3 ( role )
   -----------------???
   local cha_name = GetChaDefaultName ( role )
   -----------------???
   local cha_lv = GetChaAttr(role, ATTR_LV)
   -----------------???
   local cha_job = GetChaAttr(role, ATTR_JOB)
   -----------------???
   local i = CheckBagItem( role, 5715 )    
   if i < 1 then
      SystemNotice( role ,"Please Give Me Ur Lv3 Rebirth Stone")
      return 0
   end
   -----------------???
   local item_empty=IsEquip(role)
   if item_empty==LUA_TRUE then
      SystemNotice(role,"Please place the item from character's equipment slot into the inventory")
      return 0   
   end
   -----------------???
   local Item_CanGet = GetChaFreeBagGridNum ( role )   
   if Item_CanGet < 1 then
      SystemNotice(role ,"Inventory Needs Atleast 1 Free Slot")
      UseItemFailed ( role )
      return 0
   end
   local zs1 =TakeItem( role, 0,5715, 1 )
   if zs1==0 then
      SystemNotice ( role ,"Gather Lv3 Rebirth Stone Failed")
      return 0
   end
   ------------------??
   local Zs_Exp = GetChaAttr ( role , ATTR_CSAILEXP )
   if Zs_Exp >=12000 then
      SystemNotice(role ,"U have Already Done 3rd Rebirth")
      return 0
   end
   local cha_skill_num=GetChaAttr(role, ATTR_TP  )

   local clear_skill_num=ClearFightSkill(role)

   cha_skill_num=cha_skill_num+clear_skill_num
   SetChaAttr(role, ATTR_TP ,cha_skill_num )

   local ap = GetChaAttr( role , ATTR_AP )

   local cha_str = GetChaAttr(role, ATTR_BSTR  )
   local cha_dex = GetChaAttr(role, ATTR_BDEX  )
   local cha_agi = GetChaAttr(role, ATTR_BAGI  )
   local cha_con = GetChaAttr(role, ATTR_BCON )
   local cha_sta = GetChaAttr(role, ATTR_BSTA )
   ap=ap+cha_str+cha_dex+cha_agi+cha_con+cha_sta-25
   SetChaAttr(role, ATTR_BSTR ,5 )
   SyncChar(role,4)
   SetChaAttr(role, ATTR_BDEX ,5 )
   SyncChar(role,4)
   SetChaAttr(role, ATTR_BAGI ,5 )
   SyncChar(role,4)
   SetChaAttr(role, ATTR_BCON,5 )
   SyncChar(role,4)
   SetChaAttr(role, ATTR_BSTA,5 )
   SyncChar(role,4)
   SetChaAttr(role , ATTR_AP,ap  )
   SyncChar(role,4)
   AddSailExp(role, npc , 1 , 1 )
   local sk_add = SK_ZSSL
   AddChaSkill ( role , sk_add , 3 , 3 , 0 )

   PlayEffect( npc, 361 )
   Notice("Extreme celebration "..cha_name.." 3rd Rebirth successful. Blessing from the whole server "..cha_name.." Hope you have a safe journey and everything goes your way! Now Guys Lets Dance !!")
   return 1
end

Spoiler

        elseif item.func == GetChaName1_born2 then
            return GetChaName1_born2(character,npc )
        elseif item.func == GetChaName2_born2 then
            return GetChaName2_born2(character,npc )
        elseif item.func == GetChaName3_born2 then
            return GetChaName3_born2(character,npc )
        elseif item.func == GetChaName4_born2 then
            return GetChaName4_born2(character,npc )
        elseif item.func == GetChaName5_born2 then
            return GetChaName5_born2(character,npc )
        elseif item.func == GetChaName6_born2 then
            return GetChaName6_born2(character,npc )
        elseif item.func == GetChaName1_born3 then
            return GetChaName1_born3(character,npc )
        elseif item.func == GetChaName2_born3 then
            return GetChaName2_born3(character,npc )
        elseif item.func == GetChaName3_born3 then
            return GetChaName3_born3(character,npc )
        elseif item.func == GetChaName4_born3 then
            return GetChaName4_born3(character,npc )
        elseif item.func == GetChaName5_born3 then
            return GetChaName5_born3(character,npc )
        elseif item.func == GetChaName6_born3 then
            return GetChaName6_born3(character,npc )

SkillEffect.lua

Spoiler

-- rebirth passive skill

function Skill_Rbmp_Use( role , sklv )
    local statelv  = sklv  
    local rb_bonus = (-1) * ( 0.9 + 0.01 * statelv ) -- Increases by 5.5%
    local rb_bonusdef = (-1) * ( 0.36 + 0.01 * statelv ) -- Increases by 5.5%
    local rb_bonuspr = (-1) * ( 0.19 + 0.01 * statelv ) -- Increases by 5.5%
    local defsa    = math.floor (  (DefSa   (role) - rb_bonusdef ) * ATTR_RADIX )
    local ResistSa = math.floor (  (ResistSa(role) - rb_bonuspr ) * ATTR_RADIX )
    local mnatksa  = math.floor (  (MnatkSa (role) - rb_bonus ) * ATTR_RADIX )
    local mxatksa  = math.floor (  (MxatkSa (role) - rb_bonus ) * ATTR_RADIX )
    SetCharaAttr( mnatksa  , role , ATTR_STATEC_MNATK )
    SetCharaAttr( mxatksa  , role , ATTR_STATEC_MXATK )
    SetCharaAttr( defsa    , role , ATTR_STATEC_DEF   )
    SetCharaAttr( ResistSa , role , ATTR_STATEC_PDEF  )
    ALLExAttrSet(role)    
end

function Skill_Rbmp_Unuse( role , sklv )
        local statelv  = sklv  
    local rb_bonus = (-1) * ( 0.9 + 0.01 * statelv ) -- Increases by 5.5%
    local rb_bonusdef = (-1) * ( 0.36 + 0.01 * statelv ) -- Increases by 5.5%
    local rb_bonuspr = (-1) * ( 0.19 + 0.01 * statelv ) -- Increases by 5.5%
    local defsa    = math.floor (  (DefSa   (role) + rb_bonusdef ) * ATTR_RADIX )
    local ResistSa = math.floor (  (ResistSa(role) + rb_bonuspr ) * ATTR_RADIX )
    local mnatksa  = math.floor (  (MnatkSa (role) + rb_bonus ) * ATTR_RADIX )
    local mxatksa  = math.floor (  (MxatkSa (role) + rb_bonus ) * ATTR_RADIX )
    SetCharaAttr( mnatksa  , role , ATTR_STATEC_MNATK )
    SetCharaAttr( mxatksa  , role , ATTR_STATEC_MXATK )
    SetCharaAttr( defsa    , role , ATTR_STATEC_DEF   )
    SetCharaAttr( ResistSa , role , ATTR_STATEC_PDEF  )
    ALLExAttrSet(role)            
end

 

Npc rb2

Spoiler


 function dina_talk11 ()

 Talk (1, "Little Angel: I am waiting for you, my hero. If you have a [Revive Stone], you will be blessed by Athene and become much stronger.")
 Text (1, "I want to be blessed by Athene.", JumpPage, 2)
 Text (1, "I have no interest in being blessed by Athene.", CloseTalk)
 
 Talk (2, "Little Angel: Athene has been kept waiting for many years. You should make the wise decison to get blessed and be rebirth. Now what class you want to be?")
 Text (2, "I want to become a Crusader to uphold justice and peace", GetChaName1_born2, 1)
 Text (2, "I want to become a Champion and protect the innocent", GetChaName2_born2, 1)
 Text (2, "I want to become a Cleric and save people's lives", GetChaName5_born2, 1)
 Text (2, "I want to become a Voyager and set sail", GetChaName3_born2, 1)
 Text (2, "I want to become a Sharpshooter and and learn killing skills", GetChaName4_born2, 1)
 Text (2, "I want to become a Seal Master and defeat all of the BOSSES", GetChaName6_born2, 1)
 Text (2, "I need a moment to think.", CloseTalk)
 
 end

 

Npc rb3

Spoiler


function Third_talk11()

    Talk( 1, "3nd Rebirth Angel: I see you've gone through the 2nd Rebirth quests, This is where your prize is given to you for establishing peace through out the world and finding it's most preacius treasures." )
    Text( 1, "I wish to Reincarnate", JumpPage, 2)
    Text( 1, "I wish to know more", JumpPage, 3)
    Text( 1, "I am having problems on 3nd Rebirth", JumpPage, 5 )
    Text( 1, "I have not done this task.", CloseTalk)
    
    Talk( 2, "3nd Rebirth Angel: So you have done the task? Select the best option for you." )
    Text( 2, "Become a Crusader to uphold justice and peace",  GetChaName1_born3, 1)
    Text( 2, "Become a Champion to protect companion",  GetChaName2_born3, 1)
    Text( 2, "Become a voyager to sail the seas",  GetChaName5_born3, 1)
    Text( 2, "Become a Sharpshooter to vanquish your enemies",  GetChaName3_born3, 1)
    Text( 2, "Become a Cleric to heal the sick", GetChaName4_born3, 1)
    Text( 2, "Become a Seal Master to do anything", GetChaName6_born3, 1)
    Text( 2, "I do not wish to do 3nd Rebirth right now", CloseTalk)
    
    Talk( 3, "What do you wish to know more about?" )
    Text( 3, "Classes after 3nd Rebirth", JumpPage, 4 )
    
    Talk( 5, "Whats wrong?" )
    Text( 5, "I have the 3nd Rebirth stone, but it wont let me!", JumpPage, 6)
    Text( 5, "I don't know where to do the quests!", JumpPage, 7)
    Text( 5, "The High Priest will not hand me any quests!", JumpPage, 8)
    
    Talk( 6, "Take off all your equips, including rings and necklesses. Make sure you are choosing your new class according to race.")
    Text( 6, "Let me try once again!", JumpPage, 1)
    
    Talk( 7, "We have not done/translated all the quests. Please wait untill we can get all the according files and have these quests translated")
    Text( 7, "I understand", CloseTalk )
    
    Talk( 8, "Have you done Rebirth task? It is required to stand the 3nd Rebirth quests." )
    Text( 8, "YES! I have done it", JumpPage, 9 )
    Text( 8, "I have not", JumpPage, 10 )
    
    Talk( 9, "If you have done it, nothing is wrong, try checking if you have already done the quest and/or a GM set you a quest record")
    Text( 9, "I will check", CloseTalk )
    
    Talk( 10, "Then why are you here? You cannot start 3nd Rebirth until you have completed your 1st&2nd Rebirth.")
    Text( 10, "Sorry for my lack of inteligence", CloseTalk )

 

Share this post


Link to post
Share on other sites
1 hour ago, Bunker said:

Still does not work. may all script are well placed and the problem could be with Rebirth Mystic Power skill? x.x

I have a custom script which does all the basic needs for first and second level of rebirth, but you'll need to modify 3 different files, do you want it? 

Share this post


Link to post
Share on other sites
17 hours ago, Angelix said:

I have a custom script which does all the basic needs for first and second level of rebirth, but you'll need to modify 3 different files, do you want it? 

Yes please.

Share this post


Link to post
Share on other sites

Add this to forge.lua:

Then open NpcSdk.lua, look for:

Spoiler

        elseif item.func == GoTo then
            return GoTo( character, item.p1, item.p2, item.p3 )

Right under it, add this:

Spoiler

        -----------------------------------------------
        -- // Custom Function: PlayerRebirth // --
        elseif item.func == PlayerRebirth then
            return PlayerRebirth(character, item.p1, item.p2)

Now, it should look like this:

Spoiler

        elseif item.func == GoTo then
            return GoTo( character, item.p1, item.p2, item.p3 )
        -----------------------------------------------
        -- // Custom Function: PlayerRebirth // --
        elseif item.func == PlayerRebirth then
            return PlayerRebirth(character, item.p1, item.p2)

Now, just add this to any NPC you want.

Spoiler

    Talk(4, "Goddess: Rebirth is a special process where you can reincarnate once more, this will reset your class, stat and skills so you can make more choices.")
    Text(4, "Phoenix Rebirth", JumpPage, 5)
    Text(4, "Athene Rebirth", JumpPage, 6)
    
    Talk(5, "Goddess: This Rebirth is called Phoenix Rebirth, also called the First Rebirth.")
    Text(5, "Rebirth: Champion", PlayerRebirth, 1, 8)
    Text(5, "Rebirth: Crusader", PlayerRebirth, 1, 9)
    Text(5, "Rebirth: Sharpshooter", PlayerRebirth, 1, 12)
    Text(5, "Rebirth: Cleric", PlayerRebirth, 1, 13)
    Text(5, "Rebirth: Seal Master", PlayerRebirth, 1, 14)
    Text(5, "Rebirth: Voyager", PlayerRebirth, 1, 16)
    
    Talk(6, "Goddess: This Rebirth is called Phoenix Rebirth, also called the First Rebirth.")
    Text(6, "Rebirth: Champion", PlayerRebirth, 2, 8)
    Text(6, "Rebirth: Crusader", PlayerRebirth, 2, 9)
    Text(6, "Rebirth: Sharpshooter", PlayerRebirth, 2, 12)
    Text(6, "Rebirth: Cleric", PlayerRebirth, 2, 13)
    Text(6, "Rebirth: Seal Master", PlayerRebirth, 2, 14)
    Text(6, "Rebirth: Voyager", PlayerRebirth, 2, 16)

Of course, just modify the corresponding pages according to your needs.

 

This can essentially replace all those "ChaName_Born" (think they are called like that) functions. With that, you should have no problems with the skills, stats or something else. Although, the script does need the player to have the corresponding items such as the stones, and for Second Rebirth, you need between 9,500 and 9,999 SEXP to be able to proceed and the wings from Frist Rebirth. If something is missing, please let me know.

 

 

Edit: Had to publish through PasteBin since I think the script was too long for the post and I can't upload attachments, otherwise I would have loaded the LUA file directly here.

Edited by Angelix
Clarification
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...