Npc not working

smoochy boys on tour

DarkSpectrum

Dedicated Member
Dedicated Member
Mar 2, 2006
150
0
63
If You Find Out, Let Me Know
for sum reason, i get all the items in my bag try to create gem...i have spelt all item names right but

it wont give me gem and says u dont have correct items

the part of the npc code that isnt working is


[@Soul66]
#IF
check CraftPotions 5
check CraftAmulets 3
checkgold 100000
check PlatinumOre
#ACT
take CraftPotions 5
take CraftAmulets 3
takegold 1000000
take PlatinumOre 1
give SoulGemN
#Say
Gem Created Sucsessfully
#ELSESAY
You Dont have the correct Items
<Back/@CG1>\


dunno y tho..looks k to me for a 1.9
 

gandy

Dedicated Member
Dedicated Member
May 13, 2003
94
0
102
Code:
Check PlatinumOre 1

?

Also your checking for 100k in gold but taking 1mil
 
Upvote 0

Onuris

LOMCN Veteran
Veteran
May 23, 2006
468
0
63
Romania, Timisoara
[@Soul66]
#IF
check CraftPotions 5
check CraftAmulets 3
checkgold 100000
check PlatinumOre 1 <- 1 must be here
#ACT
take CraftPotions 5
take CraftAmulets 3
takegold 100000 <- here was 1mil
take PlatinumOre 1
give SoulGemN
#Say
Gem Created Sucsessfully
#ELSESAY
You Dont have the correct Items
<Back/@CG1>\

should work now ;)
 
Upvote 0

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
125
Stoke, England
Code:
[@Soul66]
#IF
check CraftPotions 5
check CraftAmulets 3
checkgold 100000
check PlatinumOre 1
#ACT
take CraftPotions 5
take CraftAmulets 3
takegold 100000
take PlatinumOre 1
give SoulGemN 1
#Say
Gem Created Sucsessfully
#ELSESAY
You Dont have the correct Items
<Back/@CG1>\
 
Upvote 0

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
125
Actually, I believe stans right,

checkitem <item> <amount>

i.e checkitem CraftPotions 5

and so on....
 
Upvote 0

MentaL

Mir 1.4
VIP
Mar 3, 2004
3,667
371
375
Cardiff
[@check]
#IF
checkitem ITEMNAME amount
#ACT
take ITEMNAME amount
goto @whatever
#ELSEACT
sendmsg 6 "Error"
close
 
Upvote 0