Qfunction script.
Go to m2server > Envir > QuestDiary.
Make a folder and name it 'Rebirth' and inside that create .txt document and name that 'NewRebirth.txt'.
Merchant.
Open your Merchant.txt in your QuestDiary folder to add the NPC. If your unsure how to add it just copy of a NPC above and changing the name and coords. Name would be Rebirth-0.
Creating the NPC.
Marker_Def and NPC_Def
These are the two locations that you need to create your NPC.
Exactly the same in both make a new .txt and name them Rebirth-X (X been the number of your map). Its important that you have the correct map number in order for the whole thing to work. Once you have these done you can paste this into the Rebirth-X .txt
Save and exit.
SQL
Open SQL and open your database and open your tables. Look for TBL_NPC and open that. Now we need to add the NPC with locations etc.
Go to the bottom of your table and put in the next number that follows. eg, 230, 231, 232 so next would be 233. Then enter that name of your NPC which in most Rebirth cases is called Rebirth. Now the type which would be 0. Now the map number. Followed by the coords you want the NPC. Flag is also 0. Appearance is the look of your NPC. Finally you need to enable your NPC so stick a 1 in this column.
Screenshot example.
This should help some people adding a Rebirth system to there server as it helped me. Also you can edit it to your liking this is just an example of adding it to your server. Hope you like it.
[@login]
#IF
CHECK [25] 1
CHECKJOB Warrior
#ACT
SETRANKLEVELNAME %s\RebornWarrior
#IF
CHECK [25] 1
CHECKJOB Wizard
#ACT
SETRANKLEVELNAME %s\RebornWizard
#IF
CHECK [25] 1
CHECKJOB Taoist
#ACT
SETRANKLEVELNAME %s\RebornTaoist
Go to m2server > Envir > QuestDiary.
Make a folder and name it 'Rebirth' and inside that create .txt document and name that 'NewRebirth.txt'.
Merchant.
Open your Merchant.txt in your QuestDiary folder to add the NPC. If your unsure how to add it just copy of a NPC above and changing the name and coords. Name would be Rebirth-0.
Creating the NPC.
Marker_Def and NPC_Def
These are the two locations that you need to create your NPC.
Exactly the same in both make a new .txt and name them Rebirth-X (X been the number of your map). Its important that you have the correct map number in order for the whole thing to work. Once you have these done you can paste this into the Rebirth-X .txt
Save and exit.
; ===================================
; Npc Def NPC File : Rebirth-0
; Rebirth npc in BichonProvince
; -----------------------------------
; Name: Rebirth
; Job:
; Map No: 0
; Pos X
; Pos Y
; File name: *removed*
; Comment: Rebirth npc in BichonProvince
;================================================= =
;
[@main]
#IF
CHECKNAMELIST ..\QuestDiary\Rebirth\NewRebirth.txt
#SAY
Sorry you have already been reborn.\
<No problem/@exit>
#ELSEACT
goto @main1
[@main1]
#IF
checklevel 100
#SAY
Hey there would you like to Rebirth?\
Quick and easy with no messing about.\
All you need is to be level 100\
You will be deleveled to 60 and gain some nice kit.\
Yes or no?\
<Yes Please/@yes> <No Thank You/@exit>
[@yes]
#IF
CHECKJOB Warrior
#ACT
goto @warriorrebirth
break
#IF
CHECKJOB Wizard
#ACT
goto @wizardrebirth
break
#IF
CHECKJOB Taoist
#ACT
goto @taoistrebirth
break
[@warriorrebirth]
#ACT
RENEWLEVEL 1 60 100
SENDMSG 0 "<$USERNAME> has been Reborn"
SETRANKLEVELNAME %s\RebornWarrior
ADDNAMELIST ..\QuestDiary\Rebirth\NewRebirth.txt
GIVE rebirthWeapon 1
GIVE RebirthRobe(M) 1
GIVE RebirthRobe(F) 1
GIVE RebirthHelmet 1
GIVE RebirthNecklace 1
GIVE Rebirthbrace 2
GIVE RebirthRing 2
GIVE Rebirthbelt 1
set [25] 1
break
[@wizardrebirth]
#ACT
RENEWLEVEL 1 60 100
SENDMSG 0 "<$USERNAME> has been Reborn"
SETRANKLEVELNAME %s\RebornWizard
ADDNAMELIST ..\QuestDiary\Rebirth\NewRebirth.txt
GIVE rebirthWeapon 1
GIVE RebirthRobe(M) 1
GIVE RebirthRobe(F) 1
GIVE RebirthHelmet 1
GIVE RebirthNecklace 1
GIVE Rebirthbrace 2
GIVE RebirthRing 2
GIVE Rebirthbelt 1
set [25] 1
break
[@taoistrebirth]
#ACT
RENEWLEVEL 1 60 100
SENDMSG 0 "<$USERNAME> has been Reborn"
SETRANKLEVELNAME %s\RebornTaoist
ADDNAMELIST ..\QuestDiary\Rebirth\NewRebirth.txt
GIVE rebirthWeapon 1
GIVE RebirthRobe(M) 1
GIVE RebirthRobe(F) 1
GIVE RebirthHelmet 1
GIVE RebirthNecklace 1
GIVE Rebirthbrace 2
GIVE RebirthRing 2
GIVE Rebirthbelt 1
set [25] 1
break
SQL
Open SQL and open your database and open your tables. Look for TBL_NPC and open that. Now we need to add the NPC with locations etc.
Go to the bottom of your table and put in the next number that follows. eg, 230, 231, 232 so next would be 233. Then enter that name of your NPC which in most Rebirth cases is called Rebirth. Now the type which would be 0. Now the map number. Followed by the coords you want the NPC. Flag is also 0. Appearance is the look of your NPC. Finally you need to enable your NPC so stick a 1 in this column.
Screenshot example.
This should help some people adding a Rebirth system to there server as it helped me. Also you can edit it to your liking this is just an example of adding it to your server. Hope you like it.
Last edited by a moderator: