extatus Posted February 1, 2019 Share Posted February 1, 2019 Hello. Ive used configs in the past and they work great. However I've encountered some anomalies & found ways to overcome but i need a cleaner approach to this one. Problem: My task is to ask 5 npcs a same question, however the config value does not change. The value only increases when all 5 are questioned and i go back talking that ive actually questioned all 5 . The quest state is definetly changed, but not in value. This does not happen with any other quest-where is the information stored? Quote Link to comment Share on other sites More sharing options...
Protoprize Posted February 1, 2019 Share Posted February 1, 2019 I mean, wouldn't a simple for/switch loop fix this issue if you're trying to talk to ONLY 5 npc's? for(int x = 0;x<5;x++) { switch(x) { case 0: (talk to first npc) case 1: (talk to 2nd npc) case 2: (etc...) case 3: case 4: } } It eliminates the need to manually increment values and also makes sure that it only loops 5 times and not more Correct me if I'm wrong though, it's the first thing that came to my mind when reading this post Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted February 1, 2019 Share Posted February 1, 2019 Look into Varbits. 1 Quote Link to comment Share on other sites More sharing options...
extatus Posted February 1, 2019 Author Share Posted February 1, 2019 On 2/1/2019 at 11:45 AM, Protoprize said: I mean, wouldn't a simple for/switch loop fix this issue if you're trying to talk to ONLY 5 npc's? for(int x = 0;x<5;x++) { switch(x) { case 0: (talk to first npc) case 1: (talk to 2nd npc) case 2: (etc...) case 3: case 4: } } It eliminates the need to manually increment values and also makes sure that it only loops 5 times and not more Correct me if I'm wrong though, it's the first thing that came to my mind when reading this post Expand I like to confirm quest state before i move on to next task. Like after going through a dialog with some guy in varrock,the config value increases and i can teleport to new region. Otherwise, if it missclicks the npc, or the game lags a bit, it could teleport, move to next npcs and end up stuck later since it didnt ask all 5. It is not a huge deal but a nice addition to scripts reliability. On 2/1/2019 at 12:10 PM, HeyImJamie said: Look into Varbits. Expand i think u got the right idea. thx Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted February 1, 2019 Share Posted February 1, 2019 On 2/1/2019 at 12:20 PM, extatus said: I like to confirm quest state before i move on to next task. Like after going through a dialog with some guy in varrock,the config value increases and i can teleport to new region. Otherwise, if it missclicks the npc, or the game lags a bit, it could teleport, move to next npcs and end up stuck later since it didnt ask all 5. It is not a huge deal but a nice addition to scripts reliability. i think u got the right idea. thx Expand If you let me know what quest it is I can see if I have the Varbits. Quote Link to comment Share on other sites More sharing options...
extatus Posted February 1, 2019 Author Share Posted February 1, 2019 On 2/1/2019 at 12:35 PM, HeyImJamie said: If you let me know what quest it is I can see if I have the Varbits. Expand Fairy Tale Part I Quote Link to comment Share on other sites More sharing options...