Re: Custom quest support
Posted: Wed Jun 05, 2019 2:39 am
I'm sorry that I'm asking for help so often but I'm having a problem with the painting quest . It just doesn't show up no matter how many times I press the "Get Quest" button (I made it a non-member quest at the fighters guild for the sake of testing) and sometimes I will get messages along the lines of "Yah, I had work, but the situation resolved itself, thanks anyway" or stuff like that which I guess it's where my quest was supposed to show up but something in the code is preventing it from being used?
Here's the code:
Here's the code:
Code: Select all
Quest: QUEST3
DisplayName: Ye olde switcheroo
-- Message panels
QRC:
QuestorOffer: [1000]
<ce> _richdude_, some rich fellow, has just gotten
<ce> himself an expensive painting that would sell
<ce> for a really juicy price in the black market.
<ce> Do you want to help us get it? There's
<ce> =reward_ gold in it for you if you accept.
RefuseQuest: [1001]
<ce> I could've sworn you were smarter than this.
<ce> It was such easy money...
AcceptQuest: [1002]
<ce> Very well, listen, %pcf. We don't want
<ce> _richdude_ to notice his precious painting is missing.
<ce> I have commissioned _painter_ over at
<ce> ___house2_ to create a copy.
<ce> I will give you =timer_ days to pick up
<ce> the copy and come back to %cn to
<ce> swap it with the original over at
<ce> _house1_. Once you have swapped
<ce> the paintings, bring the original to me.
QuestFail: [1003]
<ce>
QuestComplete: [1004]
<ce> Beautiful, isn't it?
<ce> Here´s your =reward_ gold.
Message: 1030
%qdt:
The Thieves Guild of
___questgiver_ has sent me to
steal a painting from _richdude_
at _house1_.
First I have to pick up a falsified copy
from _painter_ at ___house2_.
Then I should come back to
___questgiver_ and swap the original
with the copy.
I should get back to the guild
in =timer_ days with the original painting.
Message: 1020
<ce> You're %pcf, right? Here is the painting
<ce> that_questgiver_ commissioned.
Message: 1021
<ce> You put the fake painting in place.
QBN:
Item _reward_ gold
Item _fake_ painting
Item _real_ painting
Person _questgiver_ group Questor male
Person _richdude_ group Noble male
Person _painter_ group Resident1 male
Place _house1_ local house1
Place _house2_ remote house1
Clock _timer_ 00:00 0 flag 17 range 0 2
-- Quest start-up:
start timer _timer_
log 1030 step 0
place npc _richdude_ at _house1_
place npc _painter_ at _house2_
have _fake_ set _havefake_
have _real_ set _havereal_
_havefake_ task:
_havereal_ task:
_dropitem_ task:
dropped _fake_ at _house1_
say 1021
_painterclicked_ task:
clicked npc _painter_
say 1020
get item _fake_
_qgclicked_ task:
clicked npc _questgiver_
_victory_ task:
when _dropitem_
when _qgclicked_ and _havereal_
give pc _reward_
end quest
_timer_ task:
end quest
_clearclick_ task:
when _qgclicked_ and not _havereal_
clear _qgclicked_ _clearclick_