Need script help for a friend

smoochy boys on tour

Zen2

LOMCN Veteran
Veteran
Jul 26, 2007
1,818
18
145
Hi if anyone can help point my friend in the right direction hes trying to make people loose 2 fame points upon death, Heres the script we attempted please could someone possibly correct this and point us in the right direction.

[@main]
#if
checkfame
#act
mov D4 %P9
inc D4 6 (number of fp)
setfame %D4
linemsg [grobal] "The User<$USERNAME>has DIED and lost 2 FamePoints "

Thanks if you can help

 

Gigabit

Dedicated Member
Dedicated Member
Oct 21, 2010
85
1
34
It needs to be done as part of the DieScript IE:

This needs to be placed in 00Default

[@_DieFameLoss]
#IF
HLSCRIPTCMD CHECKUNDEAD
#ACT
goto @yourdead

[@yourdead]
#CALL [HLSCRIPT\DieFameLoss.txt] @fameloss

You then need to create the second script in the location of the HLSCRIPT in QuestDiary

You then need to use the following for the script, though I'm not going to write the script out, as people need to figure these things out for themselves.

HLSCRIPTCMD CHECKUNDEAD
HLSCRIPTCMD UNDEAD
 
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
Well for a start by the looks of that script he's got it set to give fp on death, not take them lol. Try using DEC instead of INC and I thought he was trying to take 2? It says INC D4 6? lol
 
Upvote 0