Removing items stats

Join Discord

Paine

Dedicated Member
Dedicated Member
Mar 17, 2004
139
0
63
England
How do i remove added item stats from an item please using an npc script?

Also any way of taking an item from someones equipment without knowing the name of it?

I searched around but couldnt find anything
 

Smaug

Banned
Banned
Dedicated Member
Jun 20, 2007
79
0
52
I don't have the files to hand but I'll post how to do it soon. baring in mind it only removes added stats.
 
Upvote 0

Paine

Dedicated Member
Dedicated Member
Mar 17, 2004
139
0
63
England
bump.

I know a few people know how to do this can someone please let me know would be very grateful
 
Upvote 0

Smaug

Banned
Banned
Dedicated Member
Jun 20, 2007
79
0
52
As mick said, tho I think he's just giving you the idea. In other words theres a part of how its done, figure the rest out.

Tho it does actually tell you how to do it in thefiles provided.
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,966
110
310
Stoke, UK
Sorry, realise now you told me..

As Smaug said, its easy enough to test once you have the basic command...

Here is a script for you to do all the checking for yourself, You will also be able to copy and paste this code once you know what everything does :)

Please note, I have just done this at work and haven't tested it, so it might have an error or 2 in, but it should only be basic errors :)

Code:
[@Main]
#IF
#SAY
Which item would you like to change?\\
<0/@SelectStat(0)>\
<1/@SelectStat(1)>\
<2/@SelectStat(2)>\
<3/@SelectStat(3)>\
<4/@SelectStat(4)>\
<5/@SelectStat(5)>\
<6/@SelectStat(6)>\
<7/@SelectStat(7)>\
<8/@SelectStat(8)>\
<9/@SelectStat(9)>\
<10/@SelectStat(10)>\
<11/@SelectStat(11)>\
<12/@SelectStat(12)>\

[@SelectStat()]
#IF
#ACT
Mov  D1  %ARG(1)
#SAY
Which Stat would you like to change?\\
<0/@SelectAddRem(0)>\
<1/@SelectAddRem(1)>\
<2/@SelectAddRem(2)>\
<3/@SelectAddRem(3)>\
<4/@SelectAddRem(4)>\
<5/@SelectAddRem(5)>\
<6/@SelectAddRem(6)>\
<7/@SelectAddRem(7)>\
<8/@SelectAddRem(8)>\
<9/@SelectAddRem(9)>\
<10/@SelectAddRem(10)>\
<11/@SelectAddRem(11)>\
<12/@SelectAddRem(12)>\
<13/@SelectAddRem(13)>\
<14/@SelectAddRem(14)>\

[@SelectAddRem()]
#IF
#ACT
Mov  D2  %ARG(1)
#SAY
What would you like to do?\\
<Add Stats/@SelectQty(Add)>\
<Remove Stats/@SelectQty(Remove)>\

[@SelectQty]
#IF
#ACT
Mov  A1  %ARG(1)
#IF
#SAY
How many would you like to <$OUTPUT(A1)>?\\
<Please Enter Qty/@@SelectQty1>\\

[@@SelectQty1]
#IF
#ACT
Mov  D3  %INPUTNUM
#SAY
<$OUTPUT(A1)> Stats :\\
Item - <$OUTPUT(D1)>\
Stat - <$OUTPUT(D2)>\
Qty - <$OUTPUT(D3)>\\
<Do it/@ChangeStat>\\

[@ChangeStat]
#IF
Equal  A1  "Add"
#ACT
HLSCRIPTCMD ItemRemakeAdd %D1 %D2 %D3
#ELSEACT
HLSCRIPTCMD ItemRemakeSub %D1 %D2 %D3
#IF
#SAY
All Done - Take off item to view the change\
Don't forget to log what has changed for future\
reference\\
< WOW, Thanks ida :) /@exit>\\
 
Upvote 0

Smaug

Banned
Banned
Dedicated Member
Jun 20, 2007
79
0
52
Thanks mick and also it helps to read the information provided with a release :)
 
Upvote 0