[2.3] script help with checking purity and amount

SabreMir

Dedicated Member
Dedicated Member
Jul 21, 2012
114
2
45
i have writen a quest script that requires have gold ore and bio all needing to be pur 10+ but aslong u have 1 peice of each Purity 10 + it will give u the item as long as u have 2 more of each under pur 10


script says

#IF
CHECKITEM BlackironOre 3
CHECKITEM GoldOre 3
CHECKDURA GoldOre 10
CHECKDURA BlackironOre 10
#ACT
TAKE BlackironOre 3
TAKE GoldOre 3
Give item
#ELSESAY
you do not have items required!\
Come back when u do.\

<ok.../@exit>

should checkitem and checkdura be reversed?

any ideas ? cheers
 

TravisW

LOMCN Veteran
Veteran
Sep 4, 2007
737
17
125
You can use the script below, it works but is kind of drawn out a bit, also make sure to
tell the noobs if they don't have all the correct ores they will lose what has been taken..:lol

I couldn't figure out how to check dura and amount at same time, maybe someone else will know.

You could also use CHECKDURAEVA to check combined dura totals for each ore
CHECKDURAEVA GoldOre 30
#ACT
takecheckitem


Code:
#IF
CHECKITEM GoldOre 3
CHECKITEM BlackironOre 3
#ACT
goto @start
#ELSEAY
You do not have the required amount of ores..\ \ \
<Close/@exit>
[@start]
#IF
CHECKDURA GoldOre 10
#ACT
takecheckitem
goto @ck1
#ELSEACT
goto @sorry
[@sorry]
You don't have all of the required dura's!\ \ \
<Close/@exit>
[@ck1]
#IF
CHECKDURA GoldOre 10
#ACT
takecheckitem
goto @ck2
#ELSEACT
goto @sorry
[@ck2]
#IF
CHECKDURA GoldOre 10
#ACT
takecheckitem
goto @ck3
#ELSEACT
goto @sorry
[@ck3]
#IF
CHECKDURA BlackironOre 10
#ACT
takecheckitem
goto @ck4
#ELSEACT
goto @sorry
[@ck4]
#IF
CHECKDURA BlackironOre 10
#ACT
takecheckitem
goto @ck5
#ELSEACT
goto @sorry
[@ck5]
#IF
CHECKDURA BlackironOre 10
#ACT
takecheckitem
goto @finish
#ELSEACT
goto @sorry
[@finish]
#ACT
give item
 
  • Like
Reactions: SabreMir
Upvote 0