Hello everyone!
Just got a small request, tried the search option but unfortunately didn't manage to find anything that I'm looking for, perhaps I've overlooked something and it is available here on otland already in that case if it is I'd be very grateful for directions to a topic that could help me out!
Anyways, back to the request...
Request:
- Quest NPC that gives a mission in which you have to bring back X amount of X item to the NPC to complete it
- On speaking with the NPC and using the keyword "mission", NPC says e.g. "bring me back X amount of X, are you up for the challenge?", on player response "yes" etc. player is given the mission to complete
- On returning to NPC and using keyword "mission" NPC says e.g. "Did you get what I asked for?", on player response "yes" etc. NPC responds "___" and gives player access to certain area
Edit: Also possible to have multiple items?
From what I know so far and have learnt, I presume that on completion of the mission the NPC will grant the player a storage value which will grant the player access to e.g. a certain teleport, tile etc.
Second part of request:
Now obviously I imagine an actions script is required. So for example, teleport/tile etc with actionid xxxx will check if the player has the storage value from the mission, if they do it will allow them to pass, if not they will not be allowed to pass.
I will go through different quests and their code to see if I could edit anything like this myself but if anybody is up for the challenge and fancies writing a little bit of code for me I'd be greatly thankful for their effort!
Thanks!!
EDIT:
TFS 1.2
Just got a small request, tried the search option but unfortunately didn't manage to find anything that I'm looking for, perhaps I've overlooked something and it is available here on otland already in that case if it is I'd be very grateful for directions to a topic that could help me out!
Anyways, back to the request...
Request:
- Quest NPC that gives a mission in which you have to bring back X amount of X item to the NPC to complete it
- On speaking with the NPC and using the keyword "mission", NPC says e.g. "bring me back X amount of X, are you up for the challenge?", on player response "yes" etc. player is given the mission to complete
- On returning to NPC and using keyword "mission" NPC says e.g. "Did you get what I asked for?", on player response "yes" etc. NPC responds "___" and gives player access to certain area
Edit: Also possible to have multiple items?
From what I know so far and have learnt, I presume that on completion of the mission the NPC will grant the player a storage value which will grant the player access to e.g. a certain teleport, tile etc.
Second part of request:
Now obviously I imagine an actions script is required. So for example, teleport/tile etc with actionid xxxx will check if the player has the storage value from the mission, if they do it will allow them to pass, if not they will not be allowed to pass.
I will go through different quests and their code to see if I could edit anything like this myself but if anybody is up for the challenge and fancies writing a little bit of code for me I'd be greatly thankful for their effort!
Thanks!!
EDIT:
TFS 1.2
Last edited: