Check Item

dani_filth

Dedicated Member
Dedicated Member
Feb 26, 2004
53
0
33
Now, im not worried about the rest of the NPC... its mainly as i would like it... ano some of it may be long winded...
But could any one tell me why it isnt doing the Check Item command?
iv told it to check the item, but it doesnt... it just skips it... iv tried having the item, not having the item, having multiple of the item and nothing, tried diff bits in the code.. but cant figure it... any help pls?

Code:
[@main]
#IF
checkpkpoint 2
#SAY
I will never serve such an evil person as you!\ \
<Exit/@exit>\
#ELSEACT
goto @main-1

[@main-1]
#IF
Check [201] 1
#ACT
goto @mis1
#ELSEACT
goto @not

[@mis1]
#IF
Check [202] 0
#SAY
Would you liek a mission? Or do you have what I need?\
<Mission/@new>|-|<Norvans Head/@head>
#ELSEACT
goto @comp

[@new]
One of our clients needs a certain Oma dead.\
His name is Norvan-Olis. Bring me his head and you\
will be rewarded.\
Please. Kill no one but Norvan-Olis.\
Do you accept?\
<Yes/@y>|-|<No/@exit>

[@y]
I will now teleport you to the Oma Village\
<Ok/@tele>

[@tele]
#ACT
#IF
CheckHum R001 1
#ACT
goto @busy
#ELSEACT
MonClear R001
Take TownTeleport 50
Give TownTeleport 1
Mapmove R001 30 60
Param1 R001
Param2 95
Param3 100
Mongen Oma 200 200
Param1 R001
Param2 95
Param3 100
Mongen NorvanOlis 1 0

[@busy]
I'm afraid some one is already trying to kill him.\
<Exit/@exit>

[@not]
You arn't in the Assassins Guild.\
<Exit/@exit>

[@head]
#IF
CheckMonMap R001 200
#ACT
goto @nokill
#ELSEACT
goto @kill

[b][@nokill]
#IF
Check NorvansHead 1
#ACT
goto @nokill1
#ELSEACT
goto @nohead[/b]

[@nokill1]
#ACT
Take NorvansHead 1
#SAY
Thank you for taking care or Norvan-Olis.\
And thank you for not killing any other Oma's.\
You get full fee for that.\
<Fee/@fee1>

[b][@kill]
#IF
Check NorvansHead 1
#ACT
goto @kill1
#ELSEACT
goto @nohead[/b]

[@kill1]
#ACT
Take NorvansHead 1
#SAY
Thank you for taking care or Norvan-Olis.\
Shame you killed those other Oma's.\
You only get half fee for that.\
<Fee/@fee2>

[@comp]
Thank you for Norvans Head.\
<Exit/@exit>

[@nohead]
Yes, I would like it.\
<Exit/@exit>

[@fee1]
#ACT
Set [202] 1
Give Gold 100
goto @main

[@fee2]
#ACT
Set [202] 1
Give Gold 50
goto @main
 

AngelOfDeath

Dedicated Member
Dedicated Member
May 5, 2003
158
0
93
In Hell
try adding item after the check

[ie]
[@kill]
#IF
Checkitem NorvansHead 1
#ACT
goto @kill1
#ELSEACT
goto @nohead
 

dani_filth

Dedicated Member
Dedicated Member
Feb 26, 2004
53
0
33
Works perfectly now... thanks for that...
See i thought it was that.. but iv been using "Solitude's Legend Of Mir 2 : NPC Editor v3" and when i selected check item it gave me "Check itemname ammount".
So i'll have to note down its ment to be "Checkitem name ammount"
Thanks again.