Npc require item and can access forever

Sotomayor

Well-Known Member
Joined
Jan 28, 2012
Messages
35
Best answers
0
Reaction score
0
Hello all i want some help on my ot server 8.6 tfs 0.4 _dev i want a npc required item to access X place and item deleted after u give to NPC, and you can access forever but not required the item anymore hope can help me please :)
 

athenso

Average Coder
Joined
May 31, 2011
Messages
123
Best answers
1
Reaction score
12
should be simple. NPC checks player storage. Use item get storage. Boom done
 
OP
Sotomayor

Sotomayor

Well-Known Member
Joined
Jan 28, 2012
Messages
35
Best answers
0
Reaction score
0
I dont know how to do that, please help me :(
 

athenso

Average Coder
Joined
May 31, 2011
Messages
123
Best answers
1
Reaction score
12
use the search feature and find an npc that reads storage. and then do another search for an item that sets storage.

Seeing as I cant edit my post; I went ahead and searched the harder of the 2 issues you were asking about.

Need storage to trade with NPC

Now just set the storage with the item, player uses the item, the item gets removed and they can talk to the npc
 
Last edited by a moderator:
OP
Sotomayor

Sotomayor

Well-Known Member
Joined
Jan 28, 2012
Messages
35
Best answers
0
Reaction score
0
Sorry dude i dont know how much to edit php im new with that the storages please help me
 

athenso

Average Coder
Joined
May 31, 2011
Messages
123
Best answers
1
Reaction score
12
its no php. NPC is XML and Actions are lua.
 

athenso

Average Coder
Joined
May 31, 2011
Messages
123
Best answers
1
Reaction score
12
Not trying to be like "That guy" but what your asking for I have pretty much given you all the information needed. If you cant put the pieces together for something like this, you probably need to spend more time studying code.

Like i said of the two pieces of information needed to do what your asking, i found the harder of the two and gave you a link to it. You just have to put the two codes together
 
Last edited by a moderator:
Top