Angelix 374 Report post Posted May 11, 2017 On 2/4/2017 at 7:14 AM, blazi10 said: Got this error with Daily Quest http://screenshot.sh/m1QsTif8T73Kv can you help me?' its my function NpcState: function NpcState( character, npcid, id ) PRINT( "NpcState:character, npcid, NpcMissionList", character, npcid, id ) if NpcInfoList[id] == nil or NpcInfoList[id].missionlist == nil then PRINT( "unable to obtain NPC script notice!ID = ", id ) LG( "npc_error", "unable to obtain NPC script notice!ID = ", id ) return LUA_FALSE end return MissionState( character, npcid, NpcInfoList[id].missionlist ) end Sorry for taking a long time, but I got around onto looking for a fix for daily and weekly quests and it should now be fixed. Guide has been updated to provide a fix for an error that was preventing from adding daily or weekly quests. The weekly quest fix is now using a workaround for calculating the current week number. The function utilized is from http://lua-users.org/wiki/WeekNumberInYear, although I made some small modifications to it so it can be used properly without providing a lot of user input. Thanks to @Blanquitoh for helping in this small issue by providing the link! 2 Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted August 26, 2017 @Angelix im having a problem making a quest not repeatable ( 1 per char ) im getting this error: Quote Share this post Link to post Share on other sites
Studweiser21 13 Report post Posted September 24, 2017 @Angelix I just want to thank you for the very helpful guide. Between referencing your guide, and working with known quests, I was able to play with some variables and conditions to get where I wanted to. I had an idea though when I was working in a Story quest, and remembered that there are monsters that drop items when you are in a quest, essentially quest items, and with that thought, I wondered if you had explored this and had any insight? The quest I'm referring to is "Food for the Navy". It requires 3 items, but you'll notice that two of the items show up in blue text, and only drop when you have the quest. There are more quests that have this same thing, but I couldn't find the tie between the quest, and the iteminfo and how it decided when a character was on the appropriate mission! Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted September 24, 2017 3 hours ago, Studweiser21 said: @Angelix I just want to thank you for the very helpful guide. Between referencing your guide, and working with known quests, I was able to play with some variables and conditions to get where I wanted to. I had an idea though when I was working in a Story quest, and remembered that there are monsters that drop items when you are in a quest, essentially quest items, and with that thought, I wondered if you had explored this and had any insight? The quest I'm referring to is "Food for the Navy". It requires 3 items, but you'll notice that two of the items show up in blue text, and only drop when you have the quest. There are more quests that have this same thing, but I couldn't find the tie between the quest, and the iteminfo and how it decided when a character was on the appropriate mission! It's not decided on ItemInfo.txt, it's decided on CharacterInfo.txt, it has a special column for quest drops and their rates. Quote Share this post Link to post Share on other sites
Studweiser21 13 Report post Posted September 24, 2017 I know that the items are there separate from normal drops, but what links these two together? It seems to me that there has to be something on the CharacterInfo that tells the game, "only players with this mission can get these drops", but I couldn't find the link. Quote Share this post Link to post Share on other sites
ibrahimelmourchidi 1 Report post Posted November 4, 2017 nice Guid good job i have aquestion i hope some one can help me my question is how to make a quest to give the players IGS crystals as a Prize Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted November 5, 2017 8 hours ago, ibrahimelmourchidi said: nice Guid good job i have aquestion i hope some one can help me my question is how to make a quest to give the players IGS crystals as a Prize You can't by default. You have to modify your GameServer and/or use LuaSQL to update your database and also register a new function onto mission functions. 1 Quote Share this post Link to post Share on other sites
Dan 184 Report post Posted May 5, 2018 This guide is nice, at first I had a bit confusion with the Adding then subtract 1. Otherwise all is well thanks for the guide. Quote Share this post Link to post Share on other sites
ZidSliverr 1 Report post Posted July 3, 2018 At the end the code that is generated, where it has to be pasted or in what files to make it functional in NPC X? Quote Share this post Link to post Share on other sites
Dan 184 Report post Posted July 3, 2018 12 minutes ago, ZidSliverr said: At the end the code that is generated, where it has to be pasted or in what files to make it functional in NPC X? DefineMission( XXXX, "Quest Name", #### ) DefineMission = the Quest script To make an NPC have that quest you can add the function it's calling which is XXXX AddNpcMission (XXXX) This will allow the NPC to have the quest available, you can also add parameters such as lvl requirement etc. 1 Quote Share this post Link to post Share on other sites
ZidSliverr 1 Report post Posted July 3, 2018 20 minutes ago, Joah said: Thank you very much, friend, it works correctly Quote Share this post Link to post Share on other sites
Dan 184 Report post Posted July 3, 2018 Just now, ZidSliverr said: Thank you very much, friend, it works correctly No problem. Quote Share this post Link to post Share on other sites
ZidSliverr 1 Report post Posted July 4, 2018 QUEST MONSTER KILL: 1. The name of the search shows "Unknown search name". 2. When you kill the monster "Sleepy Nail" it is not added to the counter "0/5" 3. I receive the following errors on the screen -TriggerProc: incorrect function notification or trigger does not have any action notice! ID = 54465 -CCharMission :: Killware: the mission management function [TriggerProcc] could not return! DefineMission( 12000, "Atrapando Caracoles", 12001 ) MisBeginTalk( "<t>Ahooy Pirata!, Esos moluscos an sobrepoblado las bordes de Argent City nesesitamos reducir su numero, aunque el Cocinero quiere sus capazones! en fin tu solo matalos!" ) MisBeginCondition(NoMission, 12001) MisBeginAction(AddMission, 12001) MisBeginAction(AddTrigger, 120011, TE_KILL, 71, 5 ) MisCancelAction(ClearMission, 12001) MisNeed(MIS_NEED_KILL, 71, 5, 10, 5) MisResultTalk( "<t>Menos mal que pudiste con eso sabandija, ahora te dare tu recompenza, ... no tendras algo de Ron?") MisHelpTalk( "<t>Estan en las puertas, te digo un secreto? El Gran rey Almeja(Great King Clam) anda cerca Grrrrrrr!.") MisResultCondition(HasMission, 12001) MisResultCondition(HasFlag, 12001, 14 ) MisResultAction(TakeItem, 262, 1 ) MisResultAction(AddExp, 1000, 1000 ) MisResultAction(AddMoney, 100000, 100000 ) MisResultAction(ClearMission, 12001 ) InitTrigger() TriggerCondition(1, IsMonster, 71) TriggerAction(1, AddNextFlag, 12001, 10, 5) RegCurTrigger(120011) Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 22, 2018 On 7/3/2018 at 8:44 PM, ZidSliverr said: QUEST MONSTER KILL: 1. The name of the search shows "Unknown search name". 2. When you kill the monster "Sleepy Nail" it is not added to the counter "0/5" 3. I receive the following errors on the screen -TriggerProc: incorrect function notification or trigger does not have any action notice! ID = 54465 -CCharMission :: Killware: the mission management function [TriggerProcc] could not return! DefineMission( 12000, "Atrapando Caracoles", 12001 ) MisBeginTalk( "<t>Ahooy Pirata!, Esos moluscos an sobrepoblado las bordes de Argent City nesesitamos reducir su numero, aunque el Cocinero quiere sus capazones! en fin tu solo matalos!" ) MisBeginCondition(NoMission, 12001) MisBeginAction(AddMission, 12001) MisBeginAction(AddTrigger, 120011, TE_KILL, 71, 5 ) MisCancelAction(ClearMission, 12001) MisNeed(MIS_NEED_KILL, 71, 5, 10, 5) MisResultTalk( "<t>Menos mal que pudiste con eso sabandija, ahora te dare tu recompenza, ... no tendras algo de Ron?") MisHelpTalk( "<t>Estan en las puertas, te digo un secreto? El Gran rey Almeja(Great King Clam) anda cerca Grrrrrrr!.") MisResultCondition(HasMission, 12001) MisResultCondition(HasFlag, 12001, 14 ) MisResultAction(TakeItem, 262, 1 ) MisResultAction(AddExp, 1000, 1000 ) MisResultAction(AddMoney, 100000, 100000 ) MisResultAction(ClearMission, 12001 ) InitTrigger() TriggerCondition(1, IsMonster, 71) TriggerAction(1, AddNextFlag, 12001, 10, 5) RegCurTrigger(120011) I'm barely going active again, I don't know if you fixed your issue by now, but I believe your issue has to do with the quest ID being too high. Creo que tu problema es porque el ID de tu mision es muy alta, intenta poner una diferente pero mas baja, menos de 6 mil. Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 22, 2018 Updated the guide a bit. Quote Share this post Link to post Share on other sites
BugsBunny 16 Report post Posted November 1, 2018 @Angelix Hello there <3 How can I create a Daily quest just like the Winter one ? Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted November 2, 2018 2 hours ago, BugsBunny said: @Angelix Hello there <3 How can I create a Daily quest just like the Winter one ? Read the guide, “Custom Quest Part IX” mentions how to do it as a daily quest. 1 Quote Share this post Link to post Share on other sites
BugsBunny 16 Report post Posted November 2, 2018 18 hours ago, Angelix said: Read the guide, “Custom Quest Part IX” mentions how to do it as a daily quest. Great, thank you @Angelix ! I never made a quest but question is, do i have to edit "Day-week-year" stuff or this is how they work? Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted November 2, 2018 3 hours ago, BugsBunny said: Great, thank you @Angelix ! I never made a quest but question is, do i have to edit "Day-week-year" stuff or this is how they work? Would you mind reading the guide? Quote MISSION_TYPE: This can only be two choices (they have to be typed as followed, even with quotation marks): "Daily": Quest only repeatable once a day. "Weekly": Quest only repeatable once a week. 1 Quote Share this post Link to post Share on other sites
DarkMesser 0 Report post Posted August 25, 2020 I was reading your guide, very good friend. is there any way for an npc to summon a monster? Obviously meeting certain conditions, I am interested in making an npc of this type. Quote Share this post Link to post Share on other sites
Cleo 2 Report post Posted August 25, 2020 This guide was really helpful! Thank you @Angelix 1 Quote Share this post Link to post Share on other sites
kyleflow 35 Report post Posted March 27, 2022 Why wont the quest appear inside the NPC i chosed. Can anyone clarify what other setting do I need to do for it to appear ? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted March 31, 2022 On 3/27/2022 at 10:02 PM, kyleflow said: Why wont the quest appear inside the NPC i chosed. Can anyone clarify what other setting do I need to do for it to appear ? Are you sure that all the conditions for starting the quest are met (MisBeginCondition)? Also make sure you put the correct quest ID in the NPC script. Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
kyleflow 35 Report post Posted March 31, 2022 6 hours ago, V3ct0r said: Are you sure that all the conditions for starting the quest are met (MisBeginCondition)? Also make sure you put the correct quest ID in the NPC script. I did able to do it and make the quest appear in the said npc but somehow when i kill a mobs for the quest, an error appeared and i did read in this post said that the id is too big and need to be smaller. I did change that but somehow it still fail to work. So i'm stuck. Quote Share this post Link to post Share on other sites
Kawat 2 Report post Posted April 3, 2023 anyone help me, i am having trouble with finishing a quest that i make it was a simple gather 99 wood quest i get the error Quote "ActionProc:Set story record label failed!" i followed the format here and also looking at the default quest scripts it also doesn't remove the quest from the character's quest log Quote Share this post Link to post Share on other sites