Mir v3.38 NPC problem

Join Discord

Krige

Dedicated Member
Dedicated Member
Mar 17, 2007
25
0
47
I got problem with refiner. I got all what i need to do refine but he want take items and it says i dont have all items needed to refine.

Next problem my is how to make a refiner of items like necks, rings etc.
I want to make refine on dc dura, m-all on items or remove dis :D But NPC will do that for scrolls. Example i gave NPC x RefineScrolls and npc will show me list of ring, bracelets which i wearing an when i choose option, will appear next window with avalible stats for refine. Or smth like that.

--
Sorry for mistakes in txt.
I think u can understand what i write here :)
 

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
Must be an error in refiner script somewhere.

As to the other option you don't need to produce a list of rings, etc just get the script to check what is being worn (left ring for instance).

This should get you most of the way :)

[@addstatsmain]
#Say
<Helmet/@upitem4> <Necklace/@upitem3>\
<LeftBracelet/@upitem5> <RightBracelet/@upitem6>\
<LeftRing/@upitem7> <RightRing/@upitem8>\\
<exit/@exit>\

[@upitem4]
#Say
What Attribute of the Helmet do you want to increase?\
<AC/@helm(0)>\
<MR/@helm(1)>\
<DC/@helm(2)>\
<M-ALL/@helm(3)>\\
<Choose Different Item/@addstatsmain>\
<EXIT/@exit>\

[@helm()]
#ACT
mov d8 %arg(1)
goto @inchelm

[@inchelm]
#IF
check gold
check item
#ACT
hlscriptcmd ITEMREMAKEADD 4 %d8 1
#SAY
<return@addstatsmain>\\
<EXIT/@exit>\


[@upitem3]
#Say
What Attribute of Your Necklace do you want to increase?\
<DC/@neck(2)>\
<M-ALL/@neck(3)>\\
<Choose Different Item/@addstatsmain>\
<EXIT/@exit>\

[@neck()]
#ACT
mov d8 %arg(1)
goto @incneck

[@incneck]
#If
Check gold
check item
#ACT
hlscriptcmd ITEMREMAKEADD 3 %d8 1
#SAY
<return/@addstatsmain>\\
<EXIT/@exit>\


[@upitem5]
#Say
What Attribute of Your Left Bracelet do you want to increase?\
<AC/@lbrace(0)>\
<MR/@lbrace(1)>\
<DC/@lbrace(2)>\
<M-ALL/@lbrace(3)>\\
<Return/@addstatsmain>\
<EXIT/@exit>\


[@lbrace()]
#ACT
mov d8 %arg(1)
goto @inclbrace

[@inclbrace]
#IF
check gold
check item
#ACT
hlscriptcmd ITEMREMAKEADD 5 %d8 1
#SAY
<Return/@addstatsmain>\\
<EXIT/@exit>\


[@upitem6]
#Say
What Attribute of Your Right Bracelet do you want to increase?\
<AC/@rbrace(0)>\
<MR/@rbrace(1)>\
<DC/@rbrace(2)>\
<M-ALL/@rbrace(3)>\\
<Return/@addstatsmain>\
<EXIT/@exit>\


[@rbrace()]
#ACT
mov d8 %arg(1)
goto @incrbrace

[@incrbrace]
#IF
check gold
check item
#ACT
hlscriptcmd ITEMREMAKEADD 6 %d8 1
#SAY
<Return/@addstatsmain>\\
<EXIT/@exit>\

[@upitem7]
#Say
What Attribute of Your Left Ring do you want to increase?\
<AC/@lring(0)>\
<MR/@lring(1)>\
<DC/@lring(2)>\
<M-ALL/@lring(3)>\\
<Return/@addstatsmain>\
<EXIT/@exit>\

[@lring()]
#ACT
mov d8 %arg(1)
goto @inclring

[@inclring]
#IF
check gold
check item
#ACT
hlscriptcmd ITEMREMAKEADD 7 %d8 1
#SAY
<Return/@addstatsmain>\\
<EXIT/@exit>\


[@upitem8]
#Say
What Attribute of Your Right Ring do you want to increase?\
<AC/@rring(0)>\
<MR/@rring(1)>\
<DC/@rring(2)>\
<M-ALL/@rring(3)>\\
<Return/@addstatsmain>\
<EXIT/@exit>\

[@rring()]
#ACT
mov d8 %arg(1)
goto @incrring

[@incrring]
#IF
check gold
check item
#ACT
hlscriptcmd ITEMREMAKEADD 8 %d8 1
#SAY
<Return/@addstatsmain>\\
<EXIT/@exit>\
 
Upvote 0

Krige

Dedicated Member
Dedicated Member
Mar 17, 2007
25
0
47
Ok I translated this npc on my language and added function to checkitem which is needed for refine and putted it on right place in my server, and now problem start :/
When I try to use this npc nothing happens and every npc are not responding(when I click on other npc the window are not showing).
 
Upvote 0

Krige

Dedicated Member
Dedicated Member
Mar 17, 2007
25
0
47
Uh sorry :)

[@addstatsmain]
#Say
Witaj dzielny bohaterze, ja zajmuje sie refine biżuterii.\
Aby wykonać jedno refine potrzeba ci 20 sztuk ItemOFUpgrade\
<Hełm/@upitem4> <Neck/@upitem3>\
<LewaBracka/@upitem5> <PrawaBracka/@upitem6>\
<LewyRing/@upitem7> <PrawyRing/@upitem8>\\
<O przepraszam pomylilem cię z kimś innym./@exit>\

[@upitem4]
#Say
Co mam ulepszyc w twoim hełmie?\
<AC/@helm(0)>\
<MR/@helm(1)>\
<DC/@helm(2)>\
<M-ALL/@helm(3)>\\
<Wybierz inny Item/@addstatsmain>\
<Odejdź/@exit>\

[@helm()]
#ACT
mov d8 %arg(1)
goto @inchelm

[@inchelm]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 4 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem3]
#Say
Co mam ulepszyc w twoim necku?\
<DC/@neck(2)>\
<M-ALL/@neck(3)>\\
<Wybierz inny Item/@addstatsmain>\
<Odejdź/@exit>\

[@neck()]
#ACT
mov d8 %arg(1)
goto @incneck

[@incneck]
#If
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 3 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem5]
#Say
Co mam ulepszyc w twojej Lewej Bracce?\
<AC/@lbrace(0)>\
<MR/@lbrace(1)>\
<DC/@lbrace(2)>\
<M-ALL/@lbrace(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\


[@lbrace()]
#ACT
mov d8 %arg(1)
goto @inclbrace

[@inclbrace]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 5 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem6]
#Say
Co mam ulepszyc w twojej Prawej Bracce?\
<AC/@rbrace(0)>\
<MR/@rbrace(1)>\
<DC/@rbrace(2)>\
<M-ALL/@rbrace(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\


[@rbrace()]
#ACT
mov d8 %arg(1)
goto @incrbrace

[@incrbrace]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 6 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\

[@upitem7]
#Say
Co mam ulepszyc w twoim Lewym ringu?\
<AC/@lring(0)>\
<MR/@lring(1)>\
<DC/@lring(2)>\
<M-ALL/@lring(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\

[@lring()]
#ACT
mov d8 %arg(1)
goto @inclring

[@inclring]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 7 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem8]
#Say
Co mam ulepszyc w twoim Prawym Ringu?\
<AC/@rring(0)>\
<MR/@rring(1)>\
<DC/@rring(2)>\
<M-ALL/@rring(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\

[@rring()]
#ACT
mov d8 %arg(1)
goto @incrring

[@incrring]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 8 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
All npc scripts start with [@main]

hence I think you need to change yours slightly

[@main]
#SAY
hello - introduction script
<continue/@addstatsmain>\


[@addstatsmain]
#Say
Witaj dzielny bohaterze, ja zajmuje sie refine biżuterii.\
Aby wykonać jedno refine potrzeba ci 20 sztuk ItemOFUpgrade\
<Hełm/@upitem4> <Neck/@upitem3>\
<LewaBracka/@upitem5> <PrawaBracka/@upitem6>\
<LewyRing/@upitem7> <PrawyRing/@upitem8>\\
<O przepraszam pomylilem cię z kimś innym./@exit>\

[@upitem4]
#Say
Co mam ulepszyc w twoim hełmie?\
<AC/@helm(0)>\
<MR/@helm(1)>\
<DC/@helm(2)>\
<M-ALL/@helm(3)>\\
<Wybierz inny Item/@addstatsmain>\
<Odejdź/@exit>\

[@helm()]
#ACT
mov d8 %arg(1)
goto @inchelm

[@inchelm]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 4 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem3]
#Say
Co mam ulepszyc w twoim necku?\
<DC/@neck(2)>\
<M-ALL/@neck(3)>\\
<Wybierz inny Item/@addstatsmain>\
<Odejdź/@exit>\

[@neck()]
#ACT
mov d8 %arg(1)
goto @incneck

[@incneck]
#If
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 3 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem5]
#Say
Co mam ulepszyc w twojej Lewej Bracce?\
<AC/@lbrace(0)>\
<MR/@lbrace(1)>\
<DC/@lbrace(2)>\
<M-ALL/@lbrace(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\


[@lbrace()]
#ACT
mov d8 %arg(1)
goto @inclbrace

[@inclbrace]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 5 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem6]
#Say
Co mam ulepszyc w twojej Prawej Bracce?\
<AC/@rbrace(0)>\
<MR/@rbrace(1)>\
<DC/@rbrace(2)>\
<M-ALL/@rbrace(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\


[@rbrace()]
#ACT
mov d8 %arg(1)
goto @incrbrace

[@incrbrace]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 6 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\

[@upitem7]
#Say
Co mam ulepszyc w twoim Lewym ringu?\
<AC/@lring(0)>\
<MR/@lring(1)>\
<DC/@lring(2)>\
<M-ALL/@lring(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\

[@lring()]
#ACT
mov d8 %arg(1)
goto @inclring

[@inclring]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 7 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\


[@upitem8]
#Say
Co mam ulepszyc w twoim Prawym Ringu?\
<AC/@rring(0)>\
<MR/@rring(1)>\
<DC/@rring(2)>\
<M-ALL/@rring(3)>\\
<Powrót/@addstatsmain>\
<Odejdź/@exit>\

[@rring()]
#ACT
mov d8 %arg(1)
goto @incrring

[@incrring]
#IF
checkitem ItemOFUpgrade 20
#ACT
hlscriptcmd ITEMREMAKEADD 8 %d8 1
#SAY
<Chcę coś jeszcze ulepszyć/@addstatsmain>\\
<Dziękuję/@exit>\
 
Upvote 0

Krige

Dedicated Member
Dedicated Member
Mar 17, 2007
25
0
47
Ok i need help with this npc which making refine weapon Im using LS server v.3.38 and i dont know where is problem :( There are 4 txt files and i dont know where to seek an error.
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
I got problem with refiner. I got all what i need to do refine but he want take items and it says i dont have all items needed to refine.

If you mean that.....

Have you tried both Samak and Sabuk refiners and neither work?

Have you made sure the attribute you are trying to refine is on the jewellery item you are using?

Have you tried loading up with 500k gold, 5 BIO and 5 Gold rings in your bag to see if it works with those?

Have you tried it with a wooden sword?

Might be stupid question but have you levelled the weapon before trying to refine it? :)
 
Last edited:
Upvote 0

Krige

Dedicated Member
Dedicated Member
Mar 17, 2007
25
0
47
The refiner takes my items to refine(i got all x3 BIO, gold and sword in hand), but NPC says i dont have all items needed to make refine
 
Upvote 0

Krige

Dedicated Member
Dedicated Member
Mar 17, 2007
25
0
47
I got problem with refiner. I got all what i need to do refine but he want take items and it says i dont have all items needed to refine.

If you mean that.....

Have you tried both Samak and Sabuk refiners and neither work?

Have you made sure the attribute you are trying to refine is on the jewellery item you are using?

Have you tried loading up with 500k gold, 5 BIO and 5 Gold rings in your bag to see if it works with those?

Have you tried it with a wooden sword?

Might be stupid question but have you levelled the weapon before trying to refine it? :)


Ok my weapon is levelled :D
I dont try Samak and dont try 5 BIO and dont tryied it with wooden sword :]
Ok ill try all the options and let u know what is status of my investigation :P
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
had u changed inside stress3g.txt the chinese signs for gold to gold ? if yes u must change it inside all npc txt where he say take (chinese signs) to take gold also checkgold

because if u have gold in ur bag but he is checking for (chinese signs) in the script u have not all items u need to refine ( i hope u had understand what i mean*öhm)
 
Upvote 0