npc help please

Join Discord

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
can some please explain how i make a npc check if you have.. example
4 bits of gold ore and them 4 bits adding up to over 40purity.. so realy they can all be purity minimum of 10 each..

#IF
CHECKITEM GoldOre 4
CHECKDURA GoldOre 40
#ACT
... then how do i make it take the 4 bits over purity 40+ with out taking other gold ores from bag that are not needed ?? please

i have searched and tested many of commands pretty much most of this morning, now i need your help please :)

thanks guys =]
 

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
Try this:

Code:
#IF
CHECKITEM GoldOre 4
CHECKDURAEVA GoldOre 40
#ACT
TAKECHECKITEM

I'm not sure if the TAKECHECKITEM will work as desired but give it a go.

p
 
Upvote 0

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
#IF
CHECKITEM GoldOre 4
CHECKDURA GoldOre 40
#ACT
TAKECHECKITEM
#ELSESAY
Bring the correct ores please.

with 4 bits of gold ore in bag all P 10 ..
dont take nothing

dont work with CHECKDURAEVA either
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
#IF
CHECKITEM GoldOre 4
CHECKDURA GoldOre 40
#ACT
TAKECHECKITEM GoldOre
#ELSESAY
Bring the correct ores please.

Try this ? Might need you to specify which checked item you want to take.
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
Code:
#IF
CHECKITEM GoldOre 4
CHECKDURA GoldOre 40
#ACT
TAKECHECKITEM
#ELSESAY

The above woun't work as you want it to, it will check that the player has 4 pieces of GoldOre and then check that one of them in above Dura40. The code below checks that the player has 4 pieces of GoldOre and that the combined Dura of all the Ore in the players bag is above 40. Not perfect but it's the only way you can do it.


Code:
#IF
CHECKITEM GoldOre 4
CHECKDURAEVA GoldOre 40
#ACT
TAKE GoldOre 4

There is no way (to my knowledge) that you can take specific items from a bag, you'll just have to use a warnning message on the page before they get taken.

p
 
Upvote 0

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
sos for double post, but i got it to take the ores, but it dont take the one's its checked for.
in bag i could have 6 bits of gold re in order in bag ....
P8 P10 P10 P10 P9 P10
it will take in P8 10 10 10 when it should be take the 4x 10's ?
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
sos for double post, but i got it to take the ores, but it dont take the one's its checked for.

ρяєα¢нєя;727239 said:
There is no way (to my knowledge) that you can take specific items from a bag, you'll just have to use a warnning message on the page before they get taken.

Give a warnning message and take everything (TAKE GoldOre 99).

p
 
Upvote 0

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
yes i have the warning message but it wont take the ores with

#IF
CHECKITEM GoldOre 4
CHECKDURAEVA GoldOre 40
#ACT
TAKE GoldOre 99

now i cant get it to check and take... even if it only needs to take 4

neither does this work

#IF
CHECKITEM GoldOre 4
CHECKDURAEVA GoldOre 40
#ACT
TAKE GoldOre 4
 
Upvote 0

Dany97

LOMCN Veteran
Veteran
Aug 28, 2009
650
4
105
Timisoara
try this ...
#IF
Checkitem GoldOre 4
Checkduraeva GoldOre 40
#ACT
TAKECHECKITEM



Try this and tell me if it works - it should take only the items that are checked with #IF
 
Upvote 0