19-12-2006, 04:28 AM
Okay I'm currently working on my npc chat system and I was wondering how would I make an npc give you an item ONLY once.
:: Pando
:: Pando
NPC - Item .
|
19-12-2006, 04:28 AM
Okay I'm currently working on my npc chat system and I was wondering how would I make an npc give you an item ONLY once.
:: Pando
19-12-2006, 04:37 AM
you can set a variable when you get the item and then next time have it check if that variable is set to whatever or not
you could also have it send it to the server and save it but I guess you would have to have it saved on your character file then... cause if on npc file then no one else would be able to get it...
19-12-2006, 04:47 AM
Quote:you can set a variable when you get the item and then next time have it check if that variable is set to whatever or not How would I set a variable and check if its set or not? Then I would have to save it would I not? :: Pando
19-12-2006, 04:50 AM
hmm yeah I guess you would have to save it to the character file... cause as soon as they logged off the variable would be reset.
If its for a quest like system I guess just fields like [QUESTS] Quest1:1 Quest2:0 1 for completed or something. Then have it load all that with the character info and when the npc menu or whatever is brought up have it check that variable.
19-12-2006, 04:51 AM
Hmm I'm pretty sure someone has a better way. Hopefully that is.
Anyone? .___. :: Pando
19-12-2006, 04:56 AM
Theres a quest system posted on here I was gonna say look how thats done... I looked and he pretty much does what I said except he has his own file for the "flags". Your going to have to save it to something only related to the player so that it only affects them.
|
« Next Oldest | Next Newest »
|