Jump to content

Dori

Members
  • Posts

    332
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dori

  1. I need help to modify this script. After you talk to the npc and once you have accepted the quest, I don't want the npc to repeat everything from the beginning when you talk to it again. Currently, even after you have accepted the quest the npc will repeat everything from the beginning and make you select the options again (Hold on: Yes). Everything is working fine, but it is just unprofessional/annoying when the Npc repeats from the beginning although you have the quest accepted/or have the items. How I want this script to be: Once the quest is accepted and when the player talks to the npc, I want the npc to be like "Have you brought the items yet?" [option] Yes or No. If it's yes the npc will check if all the items are there and complete the quest and if not, the npc will give the list of items again and tell the player to hurry up and bring them. Here is the script: function script patienceTest { setarray .@pt_4096[0], 606,100, 914,50; // Job_Baby_Rune setarray .@pt_4097[0], 606,100, 914,50; // Job_Baby_Warlock setarray .@pt_4098[0], 606,100, 914,50; // Job_Baby_Ranger setarray .@pt_4099[0], 606,100, 914,50; // Job_Baby_Bishop setarray .@pt_4100[0], 606,100, 914,50; // Job_Baby_Mechanic setarray .@pt_4101[0], 606,100, 914,50; // Job_Baby_Cross setarray .@pt_4102[0], 606,100, 914,50; // Job_Baby_Guard setarray .@pt_4103[0], 606,100, 914,50; // Job_Baby_Sorcerer setarray .@pt_4104[0], 606,100, 914,50; // Job_Baby_Minstrel setarray .@pt_4105[0], 606,100, 914,50; // Job_Baby_Wanderer setarray .@pt_4106[0], 606,100, 914,50; // Job_Baby_Sura setarray .@pt_4107[0], 606,100, 914,50; // Job_Baby_Genetic setarray .@pt_4108[0], 606,100, 914,50; // Job_Baby_Chaser set .@jobID, getarg(0); set .@npc$, getarg(1); set .@qID, (25000+.@jobID-4030); if(Class != .@jobID || checkquest(.@qID) == 2) return; mes .@npc$; mes "Good. We will start with the ^0042FFPatience Test^000000."; mes "You are still very young, which is why you must complete this task in order to prove me that you got what it takes to become one of us."; next; mes .@npc$; mes "Shall we begin then?"; next; if(select("Hold on:Yes!") == 1) { mes .@npc$; mes "You must complete the ^0042FFPatience Test^000000 in order to change your job."; mes "Let me know when you are ready."; close; } mes .@npc$; set .@j3, roclass(eaclass()|EAJL_THIRD); if (checkquest(.@qID) == 1) { set .@invalid, 0; for(set .@i,0; .@i < getarraysize(getd(".@pt_"+ .@j3)); set .@i,.@i+2) { if(countitem(getd(".@pt_"+ .@j3 +"["+ .@i +"]")) < getd(".@pt_"+ .@j3 +"["+ (.@i+1) +"]")) { mes "- "+ getd(".@pt_"+ .@j3 +"["+ (.@i+1) +"]") +" "+ getitemname(getd(".@pt_"+ .@j3 +"["+ .@i +"]")); set .@invalid, 1; } } if(.@invalid) { mes "You are missing some items. Please come again when you have all the items I asked you to bring."; close; } mes "Congratulations~! You have completed the ^0042FFPatience Test^000000!"; mes "Now we can get started."; for(set .@i,0; .@i < getarraysize(getd(".@pt_"+ .@j3)); set .@i,.@i+2) delitem getd(".@pt_"+ .@j3 +"["+ .@i +"]"), getd(".@pt_"+ .@j3 +"["+ (.@i+1) +"]"); completequest .@qID; next; } else if (checkquest(.@qID) < 1) { mes "Your ^0042FFPatience Test^000000 is to bring me the following items:"; for(set .@i,0; .@i < getarraysize(getd(".@pt_"+ .@j3)); set .@i,.@i+2) mes "- "+ getd(".@pt_"+ .@j3 +"["+ (.@i+1) +"]") +" "+ getitemname(getd(".@pt_"+ .@j3 +"["+ .@i +"]")); setquest .@qID; close; } return; } Any help would be greatly appreciated~ Thank you!
  2. Anyone? ;_; I really need this...
  3. I need to extend the npc ID limit. I think currently the limit is 10049. I increased this from src, by editing npc.h, but now I need to edit the client side of this. For this I need some one to hex the client for me. Is there anyone who is willing to help me with this? This is one of the topics I found from eathena regarding this issue, but it's quite old. But maybe this will come in of some use. http://www.eathena.ws/board/lofiversion/index.php/t259669.html
  4. Has this stable client been released yet?
  5. I want to enable the navigation system in my custom town. I edited the towninfo.lua and placed the icons for kafra, guide, weapon shop..etc. But when I click on them nothing is happening. I know I have to edit some luas for this, but im not sure which ones to. Is anyone able to help me figure this out? Thanks
  6. I was able to get more IDs by editing this line in npc.h #define MAX_NPC_CLASS2_END 10049I made mine to#define MAX_NPC_CLASS2_END 11000now when I @disguise my custom npc works but comes up as a poring.
  7. The client is diffed with "Load lua before lub" option. the lua files are being read. I know this because I have added custom headgear sprites before I tried this whole custom npc thing. And also, I replaced one of the official npcs in jobname.lua and npcidentity.lua with my custom npc. And that worked out well.
  8. I'm not using a grf atm. my client is reading the data folder first. and yes the lua folder is in this format data/luafiles514/lua files/ and my client is 2012-04-10
  9. all those IDs are taken by official npcs now. btw do I only have to edit the 2 lua files or do I also have to edit the db/const.txt?
  10. that's what i'm also trying to figure out. I don't know where to start the IDs or which ones I'm able to use. I tried many but nothing works.
  11. I'm trying to add a new npc sprite. I did everything I possibly can to get this to work but the npc does not appear in-game. name of my npc is 4_drunk_man I added to jobname.lua [jobtbl.JT_4_DRUNK_MAN] = "4_DRUNK_MAN"I added to npcidentity.lua["JT_4_DRUNK_MAN"] = 126,Server side I added to db/const.txt4_DRUNK_MAN 126When I go @disguise 126 in-game nothing happens. What am I doing wrong?
  12. It worked o.o! but what does the langtype do? atm I set mine to 1.
  13. Not that either. I don't know if it's a lua file or the exe it self. Does anyone else have this issue?
  14. When I removed the lines, /h or won't completely work...
  15. Any solution to this issue? I am having the same problem.
  16. My lua files are updated. I am using the lua files Shakto provided. The error is coming from SaveData\OptionInfo.lua And everytime I open the client this error would come and resets the SaveData\OptionInfo.lua When I researched about this error, i found a few topics that said to uncheck "Read Data Folder First". I tried that too. And I still get the error with SaveData\OptionInfo.lua
  17. How can I fix this error? SaveData\OptionInfo --------------------------- [string "buf"]:1: attempt to index global 'CmdOnOffList' (a nil value)
  18. Do all of the 2013 clients read iteminfo.lua only? Or do they still read the idnum2itemdesctable, idnum2itemdisplaynametable, idnum2itemresnametable ..etc? And which one of the 2013 clients is the most stable one? Currently I am using 2012-04-10 and it is pretty stable. But I want to get 2013 to stay updated with the latest stuff. I see people reporting so much of bugs and no one seems to be satisfied :/ So please give me your advice. Thanks.
  19. You were right. It was an extension. Thanks Brian!
×
×
  • Create New...