Jump to content
  • 0

Daily Quest - How To Set Last Reward Time For Specific Quest


Question

Posted (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 by dzumara

11 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted (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 by dzumara
  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted (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 by mcbigmac
  • 0
Posted

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 ?

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...