dzumara Posted July 19, 2014 Posted July 19, 2014 (edited) So as i said in the title, how to save time of last reward for specific quest? What would be the best way? I need something like this (this is for global cooldown for all the quests) talker.quest_last_reward_time = myself::GetCurrentTick(); Or is it possible to make item that would disappear after xx hours after you buy it? Edited July 19, 2014 by dzumara Quote
0 mcbigmac Posted July 20, 2014 Posted July 20, 2014 I don't understand what your trying to do at all. A system for saving data related to Quests does not exist in AdvExt\Vangath or Native c4. Hence it's impossible with direct usage. Altho you could technicly have 2 Memo's running constantly - 1 for the quest itself and 1 for storing the currenttick time for that quest. Youd eventually run outa Memospace rather fast with many quests like this. Quote
0 ericvini Posted July 19, 2014 Posted July 19, 2014 Or is it possible to make item that would disappear after xx hours after you buy it? Check the parameters from item 13752. It has a period on it: period=43200 Quote
0 dzumara Posted July 19, 2014 Author Posted July 19, 2014 thats probably shadow item on interlude, i forgot to mention im using C4.. Quote
0 dzumara Posted July 20, 2014 Author Posted July 20, 2014 Does anyone knows where is quest one time flag written? It should be l2world.quest but i dont see it there Quote
0 dzumara Posted July 20, 2014 Author Posted July 20, 2014 (edited) how it doesn't exist when u have setOneTImeQuestFlag funciton? that has to be written somewhere doesn't it? what im trying to is to make daily quest = quest u can do only once in 24h. Edited July 20, 2014 by dzumara Quote
0 mcbigmac Posted July 20, 2014 Posted July 20, 2014 And wtf do you think it does? It sets a flag bool - and that's it. and it doesnt exist because IT DOES NOT EXIST IN C4. How hard is that to comprehend? If you can't read - your hopeless. Directions to a possible albeit expensive memo way was given. Quote
0 dzumara Posted July 20, 2014 Author Posted July 20, 2014 Cant you read for the love of god? When you do the quest which is not repeatable it set that flag to 1, it has to be saved somewhere why the hell i see it everywhere in AI if it doesn't work? Obviously your English isn't that good as you think. Read again what i wrote and what did i ask. Memo is out of the question btw its not your hopeless, its you're (you are), big difference Quote
0 mcbigmac Posted July 20, 2014 Posted July 20, 2014 (edited) Wtf will a bool flag help you more than a MemoState which atleast accepts Int? Are you that stupid? Do you think quest_last_reward_time == onetimequest? Onetimequest is a flag set to avoid people re-taking a quest once completed. How is that hard to understand? How stupid are you when you for some reason can't understand since memo contains data (up to 3 ints) - it could be used to store data beyond l2server memory restarting? You are the typical idiot for apparently seeing some term you think means something without actually asking what it means or clearly explaining what it is you want. Nor actually researching "HEEEY how is this var\term used in AI ?". If your not stupid you can create a storage method via time functions + MemoState to emulate a check for a specific day. Edited July 20, 2014 by mcbigmac Quote
0 dzumara Posted July 20, 2014 Author Posted July 20, 2014 Your English is terrible man, i can barely read what you write. I was asking about flag because it get stored somewhere, so i thought to make cronjob which would trigger once per day and start sql procedure which would delete lines from db which contains specified quest id. Do you understand now why im so interested in that bool? I'm not here to argue i just wanted some assistance/advice, why are you so impatient ? Quote
0 mcbigmac Posted July 21, 2014 Posted July 21, 2014 This is not L2J. Database is not live memory - and changes are not instant. First rule of l2off. Quote
0 dzumara Posted July 21, 2014 Author Posted July 21, 2014 Ok i thought so. I did it with memo states, it has its limitations but ill have to fit into it Quote
Question
dzumara
So as i said in the title, how to save time of last reward for specific quest? What would be the best way?
I need something like this (this is for global cooldown for all the quests)
Or is it possible to make item that would disappear after xx hours after you buy it?
Edited by dzumara11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.