[2.3] Giving Items out?!?!

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
I made a script so that a NPC gives a item out for example say a goldbar i also made a txt files to store the names of people that have already took the items etc but for some reason if you click the npc fast or just some times it just lets you through the check, i have no idea why the script is perfect but i think i need a extract defence in place to stop it, so if anyone has any idea's to stop this would be great.

script im using:

[@Main]
<I Want My Reward/@reward>\

[@reward]
#IF
CHECKNAMELIST reward.txt
#SAY
You Have Already Took Your Reward Come Back Next Time.\
#ELSEACT
ADDNAMELIST reward.txt
GIVE Goldbar 1
CLOSE

this is the same thing im using and ive checked mine for errors spelling error the lot and as i said before, sometimes it stops u and say the measage but sometimes lets you through lol. if you got and scripts i could use to fix this problem then hit me up with them pls. Thanks
 

Kiddo1994

Dedicated Member
Dedicated Member
Jul 16, 2011
12
2
30
Nottingham,United Kingdom
[@quest1]
#IF
Checknamelist WoomaTauruskill.txt
#ACT
goto @Exit
break
#IF
CHECKITEM WoomaTaurusBrain 1
#SAY
I see you have the items I require.\\
<GetReward/@reward1>\
#ELSESAY
Sorry you don't have the item.\

This might help you
 
  • Like
Reactions: Tai
Upvote 0