
Originally Posted by
PsyChiC
u can make quest several times but i wont tell u
His 'idea' had nothing to do with what i was doing.
It had nothing to do with the quest list (pressing q key)
his idea wouldn't let monsters drop the items when doing quest and not when not doing quest.
he was just suggesting the param send quest....so not usefull in any way
---------------------------------------------------------------------------------
So i guess php or slq query every week is the only way.
if anyone wants to make a quest that you can do over and over again (ie collect heads for random reward) i would suggest the following
To make the quest be able to be completed 10 times a week:
use enough flags to be able to have it switch on and off 10 times
ie
Code:
1000 1 = Quest on
1000 2 = Quest off
1000 3 = Quest on for 2nd attempt
1000 4 = quest off
1000 5 = Quest on for 3rd attempt
1000 6 = quest off
1000 7 = Quest on for 4th attempt
1000 8 = quest off
1000 9 = Quest on for 5th attempt
1000 10 = quest off
1000 11 = Quest on for 6th attempt
1000 12 = quest off
1000 13 = Quest on for 7th attempt
1000 14 = quest off
1000 15 = Quest on for 8th attempt
1000 16 = quest off
1000 17 = Quest on for 9th attempt
1000 18 = quest off
1000 19 = Quest on for 10th attempt
1000 20 = quest off and clear the quest to remove it from quest list
and having a php scrypt that you run every week to reset
any even quest flag to 1000 0 (and reset clear flag to 0 if (clear 1000 20) reached)
and
any odd quest flag to 1000 1
And having the following put in the init monster if needed
in initmonster.txt
Code:
(quest (1000 1 # 1)(1000 3 # 1)(1000 5 # 1)(1000 7 # 1)(1000 9 # 1)(1000 11 # 1)(1000 13 # 1)(1000 15 # 1)(1000 17 # 1)(1000 19 # 1))
in itemgroup.txt
Code:
(group (index #) (item (1000 ? 0 *)))
(itemgroup (index #) (group (1000 #)))
where
# = number for item group
? = Item index
* = amount of item to drop
and in task-e.dat(config.pk)
Code:
( task
( key 1000)
( name "Repeatable Quest")
( desc "This quest can be completed 10 times a week")
( flag
( key 1)
( desc "Your having your 1st attempt at the quest")
( param 265183 262364)
)
( flag
( key 2)
( desc "Congrats on completing the quest. you can complete it 9 more times")
( param 257032 257425)
)
( flag
( key 3)
( desc "Your having your 2nd attempt at the quest")
( param 265183 262364)
)
( flag
( key 4)
( desc "Congrats on completing the quest. you can complete it 8 more times")
( param 257032 257425)
)
( flag
( key 5)
( desc "Your having your 3rd attempt at the quest")
( param 265183 262364)
)
( flag
( key 6)
( desc "Congrats on completing the quest. you can complete it 7 more times")
( param 257032 257425)
)
( flag
( key 7)
( desc "Your having your 4th attempt at the quest")
( param 265183 262364)
)
( flag
( key 8)
( desc "Congrats on completing the quest. you can complete it 6 more times")
( param 257032 257425)
)
( flag
( key 9)
( desc "Your having your 5th attempt at the quest")
( param 265183 262364)
)
( flag
( key 10)
( desc "Congrats on completing the quest. you can complete it 5 more times")
( param 257032 257425)
)
( flag
( key 11)
( desc "Your having your 6th attempt at the quest")
( param 265183 262364)
)
( flag
( key 12)
( desc "Congrats on completing the quest. you can complete it 4 more times")
( param 257032 257425)
)
( flag
( key 13)
( desc "Your having your 7th attempt at the quest")
( param 265183 262364)
)
( flag
( key 14)
( desc "Congrats on completing the quest. you can complete it 3 more times")
( param 257032 257425)
)
( flag
( key 15)
( desc "Your having your 8th attempt at the quest")
( param 265183 262364)
)
( flag
( key 16)
( desc "Congrats on completing the quest. you can complete it 2 more times")
( param 257032 257425)
)
( flag
( key 17)
( desc "Your having your 9th attempt at the quest")
( param 265183 262364)
)
( flag
( key 18)
( desc "Congrats on completing the quest. you can complete it 1 more times")
( param 257032 257425)
)
( flag
( key 19)
( desc "Your having your 10th attempt at the quest")
( param 265183 262364)
)
( flag
( key 20)
( desc "Shouldn't see this as should have used command (clear 1000 20)")
( param 257032 257425)
)
)
I'll leave the php script to some more talented people
Don't forget to change the location of the ( param 257032 257425) to the location of the npc that gives the quest
thats for the red dot to appear on the map
Hope this help someone. and if anyone feels up to making a php script for this example that would be great.