rebirth issue ...

Join Discord

kelvin09

LOMCN Veteran
Veteran
Jul 13, 2008
438
6
64
here is my script its basic how i like it but i have a slight issue with it ...
i was trying it out and i set it at lvl 100 for you to rebirth and u go bk to 60 but it allows u to rebirth down to 60 then u can reclick it again once u hit 60 and get the same weap again , how do i stop this from happening i have looked at previous threads abotu rebirth but my heads just frazzled can anyone help or show where im going wrong lol

[@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 rebirthmace 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 rebirthmace 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 rebirthmace 1
set [25] 1
break



ty for help in advance :)
 

kelvin09

LOMCN Veteran
Veteran
Jul 13, 2008
438
6
64
thanx ice but that seems bit complex to me :) and i only wanted to do 1 rebirth lol
and i cant see how that helps with my little problem im having lol thanx though it looks like an awesome script :)
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
ok is it adding to the name list ?

or you can use the flag to check

#IF
CHECK [25] 1
#SAY
Sorry you have already been reborn.\
<No problem/@exit>
#ELSEACT
goto @main1
 
Last edited:
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
255
♫♪♫ ♦♥♠♣ ♀♂♀
when you are ingame and receive the

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

and press yes does this dialogue window stay open? or does it close?
is this your problem? i think that what you are saying is that you can press yes once and then the window is still open and you can re-press yes again even though you have releveled to 60.. is this correct?

if so i would add in the
[@yes]
#IF
checklevelex < 100
#ACT
goto @levelerror
break

#IF
CHECKJOB Warrior
#ACT
goto @warriorrebirth
break
#IF
CHECKJOB Wizard
#ACT
goto @wizardrebirth
break
#IF
CHECKJOB Taoist
#ACT
goto @taoistrebirth
break

[@levelerror]
#SAY
something
break
 
Last edited:
Upvote 0

kelvin09

LOMCN Veteran
Veteran
Jul 13, 2008
438
6
64
right ty that seems to work BUT an issue seems to have arose lol
i put in sql the number 4 in the fldneed as ice showed me ands i put 5 in the fldneedlevel
so only rebirths can wear it but i got my missus to do it ( shes other gm) and it rebirthed her down to 60 but it wouldnt let her put any rebirth kit on , yet also her name didnt show up in the newrebirth.txt in the quest folder either and it says shes not rebirthed when she clearly is lol????? hmm any suggestions lol


its ok i fixed it lol i changed the number 5 down to 1 lol
 
Last edited:
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,201
61
155
uk
May be a silly question but you got the Rebirth folder in QuestDiary yeh ?

fld_needlevel put 1 as your only rebirthing once.
 
Upvote 0

kelvin09

LOMCN Veteran
Veteran
Jul 13, 2008
438
6
64
ye got it in there m8 but weird thing is its accepting u now are rebirthed but ur name still dont turn up in the rebirth folder , and also it dont let u rebirth more than once to get more than 1 item lol
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
255
♫♪♫ ♦♥♠♣ ♀♂♀
with the checklevelex > 100 it shouldn't let you get more than one item.. as for the it not adding the name it's because there must be some errors somewhere..

ADDNAMELIST ..\QuestDiary\Rebirth\NewRebirth.txt

this says it is looking for a folder called QuestDiary which is one level up from the folder where the script is..

for instance if the script is in the qfunction.txt which is in marketdef it should go one folder up.. which is Envir.. look for QuestDiary.. look for Rebirth and look for NewRebirth.txt

so my question is.. is NewRebirth.txt inside X:\Mirserver\M2Server\Envir\QuestDiary\Rebirth ?
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,201
61
155
uk
If NewRebirth.txt is inside C:\Mirserver\M2Server\Envir\QuestDiary\Rebirth then its saving correctly...
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
255
♫♪♫ ♦♥♠♣ ♀♂♀
i'd test the script with NewRebirth.txt inside the MarketDef folder and by changing the script lines from
ADDNAMELIST ..\QuestDiary\Rebirth\NewRebirth.txt
to
ADDNAMELIST NewRebirth.txt

change all three of these lines and double check that in marketdef (same folder as the qfuntion.txt) you put the NewRebirth.txt.. also check that the files has the same capital letters and spelling.. if you save the file as NewRebirth.txt it should work..

another thing that is coming into my mind is to check if you have the file extensions visible because maybe you have renamed the file to NewRebirth.txt.txt

in this case if you don't have the file extensions visible you should activate them.. search in google how to make it.. because working with file extension is very important for a server maker.. but to start you could rename NewRebirth.txt to NewRebirth and it should work (if extensions are invisible).. you can also test this because after renaming it to NewRebirth you should still be able to open the file with notepad..
 
Last edited:
Upvote 0