help with rebirth

Join Discord

brandon93131

Dedicated Member
Dedicated Member
Oct 5, 2008
27
0
28
here ma prob the reb npc takes fp lvls an cash but it dunt take the integs it needs the amount of integ it sez but it dunt take any inteh wen u rebirth here the scirpt -

[@main]
#if
Checkfame
#act
mov d4 %p9
#say
-----------------------------------------------------------\
Welcome to {FCOLOR/1}Insane Mir3{FCOLOR/12} Rebirth System\
-----------------------------------------------------------\
Currently we offer 8 rebirths to our members.\
attaining all of them is not an easy task.\
<Rebirth/@rebirthmenu>\

[@rebirthmenu]
#say
< RebirthLevel 1 - 100 Integrals - 20 FamePoints - Level 100 - 30Million gold/@rebirth(1,100,20,100,30000000)>\
< RebirthLevel 2 - 250 Integrals - 50 FamePoints - Level 250 - 40Million gold/@rebirth(2,250,50,250,40000000)>\
< RebirthLevel 3 - 500 Integrals - 70 FamePoints - Level 500 - 50Million gold/@rebirth(3,500,70,500,50000000)>\
< RebirthLevel 4 - 750 Integrals - 100 FamePoints - Level 750 - 60Million gold/@rebirth(4,750,100,750,60000000)>\
< RebirthLevel 5 - 900 Integrals - 150 FamePoints- Level 900 - 80Million gold/@rebirth(5,900,150,900,80000000)>\
< RebirthLevel 6 - 1200 Integrals - 200 FamePoints - Level 1200 - 100Million gold/@rebirth(6,1200,200,1200,100000000)>\
< RebirthLevel 7 - 2000 Integrals - 300 FamePoints - Leve l2000 - 250Million gold/@rebirth(7,2000,300,2000,250000000)>\
< RebirthLevel 8 - 2500 Integrals - 500 FaemPoints - Level 2500 - 1Billion gold/@rebirth(8,2500,500,2500,1000000000)>\

[@rebirth()]
#act
mov d5 %arg(1)
mov d6 %arg(2)
mov d3 %arg(3)
mov d0 %arg(4)
mov d8 %arg(5)

goto @proceed

[@proceed]
#if
elarge d4 %d3
checkgold %d8
checklevel %d0
hlscriptcmd checkpoint %d6
!hlscriptcmd checkrelevel %d5
#act
dec d4 %d3
dec d0 %d3
dec d6 %d6
setfame %d4
take gold %d8
HLSCRIPTCMD CHANGELEVEL - %d3
hlscriptcmd setpoint %d6
hlscriptcmd reincarnation
hlscriptcmd clearexp
#say
You now have level <$hlreincarnation> Rebirth.\
and you now have <$output(d4)> FamePoints.\
#elsesay
You do not qualify for rebirth go away.\
<exit/@exit>\\

any help would b great thanks :)
 

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
here ma prob the reb npc takes fp lvls an cash but it dunt take the integs it needs the amount of integ it sez but it dunt take any inteh wen u rebirth here the scirpt

try taking the
Code:
dec d6 %d6
out as you don't need that for deducting integs and leave it with the
Code:
hlscriptcmd setpoint %d6
 
Upvote 0

kyeron

LOMCN Veteran
Veteran
Loyal Member
Sep 28, 2008
296
1
45
timisoara
by doing that he will just set chars integral to the vallue he needs to pay , and if he has 2 mil integrals he will remain with only 100 integrals after he makes the rebirth .....

you need to change
Code:
dec d6 %d6
ur first D6(from were u decrese) its the chars integral vallue never played with integrals so i dont really know how to put that vallue to an variable but u need to do something like
Code:
#if
Checkfame
#act
mov d4 %p9
just for integrals , so when u dec u dec the %D6(integral price) from the D7(chars integral value)
 
Upvote 0