Page 1 of 1
Concerned Note(How to count it ?)
Posted: Wed Sep 11, 2013 9:32 pm
by mikan656386
sorry, I ask
Concerned Note:
http://www.runesdatabase.com/quest/4249 ... erned-note
This task
Get a Positive Response * 10
How to count it into the finished state?
Thks
Re: Concerned Note(How to count it ?)
Posted: Thu Sep 12, 2013 2:52 am
by rock5
You could just check if the quest is complete.
Code: Select all
if getQuestStatus("Concerned Note") == "incomplete" then
... Keep delivering letters
else
... Go back to the npc.
end
If you actually want to know the count you can use my QuestLogClass userfunction.
http://www.solarstrike.net/phpBB3/viewt ... 676#p40676
Eg.
Code: Select all
local quest = questlog:getQuest("Concerned Note")
local PositiveResponses = quest:getKillCount(1)
Then you can do what ever you want with PositiveResponses count.
Re: Concerned Note(How to count it ?)
Posted: Fri Sep 13, 2013 11:15 am
by mikan656386
Thank rock5
The second scheme used to solve the problem!
There is a problem,
There are ways to set the time clock like Nao do certain actions do?
How to do it?
Re: Concerned Note(How to count it ?)
Posted: Fri Sep 13, 2013 11:24 am
by rock5
mikan656386 wrote:There are ways to set the time clock like Nao do certain actions do?
How to do it?
Sorry I didn't understand that, please try again. You want to set the time? You want to do something at a certain time? Who's Nao?
Re: Concerned Note(How to count it ?)
Posted: Fri Sep 13, 2013 3:48 pm
by BlubBlab
mikan656386 wrote:
Nao do
Google say that are animal free shoes from Brazil xD
and nao alone is North Atlantic Ozilation
Okay fun over "nao" is in Portuguese a negation liken none or don't.
What you can do is setup you char with e.g:(logout after 300 Minutes)
1.)
Code: Select all
<option name="LOGOUT_TIME" value="300" />
2.)
or register a function with a timer(In that function you can swap then a global var that will be check somewhere else)
Code: Select all
registerTimer("myfunction", secondsToTimer(10),myfunction);
3.) Haven't figured out yet that would be in pseudo code:
Code: Select all
If time > 6.00 p.m then
make something others
else
make the usually stuff
end
I know time is table I would only need check and change some values
Re: Concerned Note(How to count it ?)
Posted: Fri Sep 13, 2013 11:22 pm
by mikan656386
sorry, this is the Google translation errors.....
My problem, set the time, to do something,
BlubBlab the code
Code: Select all
If time > 6.00 p.m then
make something others
else
make the usually stuff
end
That could work?
Re: Concerned Note(How to count it ?)
Posted: Sat Sep 14, 2013 12:26 am
by rock5
You can use
os.date("*t") to return an actual table of time values. The table returns the following values.
Code: Select all
table.print(os.date("*t"))
min: 18
hour: 15
yday: 257
sec: 21
year: 2013
wday: 7
isdst: false
day: 14
month: 9
So you could use something like
Code: Select all
date= os.date("*t")
if date.hour == 18 and date.min > 30 and 45> date.min then -- time between 6:30 pm and 6:45 pm
do some stuff
else
do some other stuff
end
Re: Concerned Note(How to count it ?)
Posted: Sat Sep 14, 2013 8:22 pm
by mikan656386
How to Set a regular time every day?
Re: Concerned Note(How to count it ?)
Posted: Sat Sep 14, 2013 11:05 pm
by rock5
What do you want to do every day?