Jump to content
Sign in to follow this  
DaGreatMarky

How To Add Reb4?

Recommended Posts

Check roso file and just took it from there, but u will need all necessary parts(npcsdk and so) in order to make it work perfectly.
Or
Copy 1 or 2nd or 3rd rebirth and remake into 4th rebirth.

Edited by DangThao
  • Like 1

Share this post


Link to post
Share on other sites
On 1/17/2018 at 10:54 AM, DangThao said:

npcscript function(npc talk), npcsdk (item.func and return), forge script (rebirth function).

Okay i did everything , but the max got bugged when i do the rb4 so where is the problem?

like normally the character   have with rb3

Min/max attack : 573  [ not wearing anything ]  

---

but when i did the rb4

after my rb4 my  min/max attack: 504 lol

 

so where is the problem ?

Edited by DaGreatMarky

Share this post


Link to post
Share on other sites

Check the function GetChaName_born4 ( role )
Find 
 


	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( role, 361 )
	Notice("Congratulations "..cha_name.." for successfully completing the 3rd Rebirth. "..cha_name.." Best wishes from all your server friends!")
	return 1

See where it said SetChaAttr(role, ATTR_STR, 5) Check ur 4th rebirth to see if it is lower than 3rd rebirth or higher, if ur 3rd rebirth set those to 10 while your 4th rebirth set to 5. it will drop your stats.

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...