[CD3.55] Help with script please

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
Can anyone spot what is wrong with this script please, iv tried over and over and cant figure it out, the part that im sure is broken is when the item is being moved to a rusted, iv put a <output(A3)> that will show if the item has been moved to A3 properly but it is always blank and the scipt always fail, and yes all the items needed are always equipped.



Code:
#SAY
{FCOLOR/11}-------------------------------------------------------------------------\
{FCOLOR/14}________________________::::BlueMoon::::________\
{FCOLOR/11}-------------------------------------------------------------------------\
{FCOLOR/14}:::::::::::<[ Back ]/@main>:::::::::::<[ Home ]/@main>::::::::::<[ X ]/@EXIT>:::::::::::\
{FCOLOR/11}-------------------------------------------------------------------------\
{FCOLOR/8}\
It cost 1 Bullion to work on a rusted item. Choose the item to work on.\ \
Work on a rusted <DemonTemptation/@NumaAreaItemSegiongNEXT(DemonTemptation,1)> \
Work on a rusted <WarSpiritWheel/@NumaAreaItemSegiongNEXT(WarSpiritWheel,0)> \
Work on a rusted <LawOfMagic/@NumaAreaItemSegiongNEXT(LawOfMagic,1)> \
Work on a rusted <OriginationBracelet/@NumaAreaItemSegiongNEXT(OriginationBracelet,2)> \
Work on a rusted <SoulPurifier/@NumaAreaItemSegiongNEXT(SoulPurifier,2)> \
Work on a rusted <DragonLord/@NumaAreaItemSegiongNEXT(DragonLord,1)> \
Work on a rusted <TrueLordRing/@NumaAreaItemSegiongNEXT(TrueLordRing,0)> \
Work on a rusted <SoulRulerRing/@NumaAreaItemSegiongNEXT(SoulRulerRing,2)> \
Work on a rusted <ImperialValor/@NumaAreaItemSegiongNEXT(ImperialValor,0)> \ \


[COLOR=#ff0000][@NumaAreaItemSegiongNEXT()]
#ACT
Mov A1 %ARG(1)
Mov D0 %ARG(2)
Mov A3 ""
goto @NumaAreaItemSegiongNEXT22

[@NumaAreaItemSegiongNEXT22]
#ACT
Addstr A3 %A1
Addstr A3 "(Rusted)"[/COLOR]

#IF
checkitem Bullion 1
checkitem %A3 1
#ELSEACT
break
#ELSESAY
{FCOLOR/11}-------------------------------------------------------------------------\
{FCOLOR/14}________________________::::BlueMoon::::________\
{FCOLOR/11}-------------------------------------------------------------------------\
{FCOLOR/14}:::::::::::<[ Back ]/@main>:::::::::::<[ Home ]/@main>::::::::::<[ X ]/@EXIT>:::::::::::\
{FCOLOR/11}-------------------------------------------------------------------------\
{FCOLOR/8}\
You don't have enough material. Check your material one more time.\ \
<Exit/@exit>\
<$OUTPUT(A3)>\\

#ACT
Take Bullion 1
Take %A3 1
goto @NumaAreaItemSegiongNEXT1#
 

dagras

LOMCN Veteran
Veteran
Feb 6, 2011
282
3
44
checkitem checks in your bag yet above u said all the items needed are equipped
try this one:-

#IF
checkitem Bullion 1
checkitem DemonTemptation(Old) 1
#ACT
Take Bullion 1
Take DemonTemptation(old) 1
GIVE DemonTemptation 1

#ELSESAY
SORRY YOU DONT HAVE REQUIRED ITEMS\

and if u want to add item with element on it , add it to database like demontemptation(PH) for phasma etc

if this is what ur after i can send u copy of script i have geo. hope this helps


#ELSEACT

---------- Post Merged at 04:34 PM ---------- Previous Post was at 04:32 PM ----------

or if u want to change old or rust or antique item to fame points i can do that too
 
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
I dont think you get it, its not checkin if item is equiped.

Its checking if u have a rusted versionof the item, which when tested we do, but its not checking it correctly, if for example u choose demontemptation, it should check that you have a demontempatation(rusted) in bag, if so then it carries on, if not then it stops, but even if you have the correct item it stops, which is why i need help

This is a basic script that has been tweaked to remove the convert and the item names slightly changed which is why i dont understand why it wont work
 
Upvote 0

dagras

LOMCN Veteran
Veteran
Feb 6, 2011
282
3
44
check it spelled correctly in database and in script DemonTemptation(Rusted) sometimes could be a bracket wrong way or a space somewhere.?
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
369
350
[@NumaAreaItemSegiongNEXT()]
#ACT
Mov A1 %ARG(1)
Mov D0 %ARG(2)
Mov A3 ""
goto @NumaAreaItemSegiongNEXT22

[@NumaAreaItemSegiongNEXT22]
#ACT
Addstr A3 %A1
Addstr A3 "(Rusted)"

why is there () in [@NumaAreaItemSegiongNEXT()] shouldnt it be [@NumaAreaItemSegiongNEXT]
 
Upvote 0

Yolom

LOMCN Veteran
Veteran
Aug 7, 2010
325
21
45
Spain
If I remember, I tried making a variable = "(word)"
I think with ( ) does not work.

Regards

---------- Post Merged at 03:32 PM ---------- Previous Post was at 03:30 PM ----------

Iceman, is there ( ) because: Work on a rusted <ImperialValor/@NumaAreaItemSegiongNEXT(ImperialValor,0)>
 
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
If I remember, I tried making a variable = "(word)"
I think with ( ) does not work.

Regards

---------- Post Merged at 03:32 PM ---------- Previous Post was at 03:30 PM ----------

Iceman, is there ( ) because: Work on a rusted <ImperialValor/@NumaAreaItemSegiongNEXT(ImperialValor,0)>
this is from numaarea item script though, and it works fine on there
 
Upvote 0

Yolom

LOMCN Veteran
Veteran
Aug 7, 2010
325
21
45
Spain
Try this:

Code:
[@NumaAreaItemSegiongNEXT()]#ACT
Mov A1 %ARG(1)
Mov D0 %ARG(2)
Mov A3 ""
goto @NumaAreaItemSegiongNEXT22


[@NumaAreaItemSegiongNEXT22]
#ACT
Addstr A1 "(Rusted)"
 
Upvote 0