Jump to content

Invictus

Inactive Member
  • Posts

    191
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Invictus

  1. Hey, download all the quests files to a folder on your PC. Open up Notepadd ++, press shift, ctrl + F. in the directory tab click on the "..." and locate the folder you downloaded the quests to. in the "Find what:" box type the information you're looking for, either the mission name, or some of the text within the quest itself. After this just press "Find All" and it'll search all the files and show you a list of the ones it found it in.
  2. Hey, the following quest is supposed to give the players M skills at level 25 and the quest is supposed to stay there until they reach level 55. for some profound reason it comes up as soon as the user creates the player until that player reaches 55 upon which it ceases to come up ( when the g skill quest is supposed to come up of which it does) I'm new to quest writing, but i can't see any flaw in the code. Any help is appreciated! quest skills begin state start begin when login or levelup or enter with pc.getqf("m_skill") == 0 begin if pc.get_level() >=25 then set_state(Mskills) end if pc.get_level() <55 then pc.setqf("m_skill", 1) end end end state Mskills begin when letter begin send_letter("Master Skills!") end when button or info begin say("Congratulations , you have reached level 25") say("And..we would like to help you out giving you...") say("The Master skills!.") pc.setqf("g_skill", 1) pc.set_skill_level(1,20) pc.set_skill_level(2,20) pc.set_skill_level(3,20) pc.set_skill_level(4,20) pc.set_skill_level(5,20) pc.set_skill_level(6,20) pc.set_skill_level(16,20) pc.set_skill_level(17,20) pc.set_skill_level(18,20) pc.set_skill_level(19,20) pc.set_skill_level(20,20) pc.set_skill_level(21,20) pc.set_skill_level(31,20) pc.set_skill_level(32,20) pc.set_skill_level(33,20) pc.set_skill_level(34,20) pc.set_skill_level(35,20) pc.set_skill_level(36,20) pc.set_skill_level(46,20) pc.set_skill_level(47,20) pc.set_skill_level(48,20) pc.set_skill_level(49,20) pc.set_skill_level(50,20) pc.set_skill_level(51,20) pc.set_skill_level(76,20) pc.set_skill_level(77,20) pc.set_skill_level(78,20) pc.set_skill_level(79,20) pc.set_skill_level(80,20) pc.set_skill_level(81,20) pc.set_skill_level(61,20) pc.set_skill_level(62,20) pc.set_skill_level(63,20) pc.set_skill_level(64,20) pc.set_skill_level(65,20) pc.set_skill_level(66,20) pc.set_skill_level(91,20) pc.set_skill_level(92,20) pc.set_skill_level(93,20) pc.set_skill_level(94,20) pc.set_skill_level(95,20) pc.set_skill_level(96,20) pc.set_skill_level(106,20) pc.set_skill_level(107,20) pc.set_skill_level(108,20) pc.set_skill_level(109,20) pc.set_skill_level(110,20) pc.set_skill_level(111,20) end end state ende begin end end
  3. Hey, mail me your skype ID and i'll come on via teamviewer and take a look.
  4. indeed I do Stark, I've found a copy of the quest now I just need the maps.
  5. Hey guys, I was wondering does anyone know of any working battle arenas? if so it'd be greatly appreciated if you could upload the files or direct me to location where they've been released. Regards Invictus
  6. Invictus

    Trade Map

    Map looks really good, i was looking for something like this rather than the typical trade map, i'll probably implement it. Thanks
  7. Hey guys, I'm working on the code so that my mount seals can give the bonus stated without needing the ride the mount, it needs to detect the item is in the inventory, give the bonus and if the item is taken from the inventory the bonus is removed. Currently I've got it detecting, giving a bonus and removing it if the item is removed from the inventory, but I've got several bugs Item is giving 2x amount it should ( there's no duplicate quest) & when the item is removed it only removes what the actual bonus should give. (example: item is meant to give 5,000 hp. HP without item 5,000, hp with item 15,000 & item is removed, re-log hp = 10,000 and not the initial 5,000) When you ride the mount and then get off, it removes the bonus entirely Any help is appreciated! Mount Bonus Quest - (Gives 5,000 hp for testing) quest mountbonus begin state start begin when login or enter with pc.getqf("mount_bonus") != 1 begin if pc.count_item(52001)>=1 then pc.mount_bonus(1, 5000, 60*60*24*365) pc.setqf("mount_bonus", 1) end end when logout or disconnect with pc.getqf("mount_bonus") == 1 begin pc.setqf("mount_bonus", 0) end end end Mount Ride Quest ------------------------------------------------ -- Autor: Terenzo. ([Hidden Content]) -- Zakaz publikowania i sprzedawania! ------------------------------------------------ quest mount begin state start begin when 71114.use or 71165.use or 71166.use or 71115.use or 71116.use or 71117.use or 71118.use or 71119.use or 71120.use or 71121.use or 71124.use or 71125.use or 71126.use or 71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 52001.use or 52002.use or 52003.use or 52004.use or 52005.use or 52006.use or 52007.use or 52008.use or 52009.use or 52010.use or 52011.use or 52012.use or 52013.use or 52014.use or 52015.use or 52016.use or 52017.use or 52018.use or 52019.use or 52020.use or 52021.use or 52022.use or 52023.use or 52024.use or 52025.use or 52026.use or 52027.use or 52028.use or 52029.use or 52030.use or 52031.use or 52032.use or 52033.use or 52034.use or 52035.use or 52036.use or 52037.use or 52038.use or 52039.use or 52040.use or 52041.use or 52042.use or 52043.use or 52044.use or 52045.use or 52046.use or 52047.use or 52048.use or 52049.use or 52050.use or 52051.use or 52052.use or 52053.use or 52054.use or 52055.use or 52056.use or 52057.use or 52058.use or 52059.use or 52060.use or 52061.use or 52062.use or 52063.use or 52064.use or 52065.use or 52066.use or 52067.use or 52068.use or 52069.use or 52070.use or 52071.use or 52072.use or 52073.use or 52074.use or 52075.use or 52076.use or 52077.use or 52078.use or 52079.use or 52080.use or 52081.use or 52082.use or 52083.use or 52084.use or 52085.use or 52086.use or 52087.use or 52088.use or 52089.use or 52090.use with not pc.is_polymorphed() begin mount.ride(item.get_vnum()) end when login begin if item.select_cell(97) then if 71114 <= item.vnum and item.vnum <= 71142 then pc.unmount() mount.ride(item.vnum) end end if item.select_cell(98) then if 71114 <= item.vnum and item.vnum <= 71142 then pc.unmount() mount.ride(item.vnum) end end end function ride(vnum) if pc.is_mount() then pc.unmount() return end local time = mount.info(vnum, 8) local bon1id = mount.info(vnum, 2) bon1val = mount.info(vnum, 3) local bon2id = mount.info(vnum, 4) bon2val = mount.info(vnum, 5) local bon3id = mount.info(vnum, 6) bon3val = mount.info(vnum, 7) if pc.get_armor() == 11901 or pc.get_armor() == 11902 then say("") say_title(pc.get_name().."...") say("Zdejmij swoj¹ sukniê i ponownie za³o¿ pieczêæ!") return elseif pc.get_armor() == 11903 or pc.get_armor() == 11904 then say("") say_title(pc.get_name().."...") say("Zdejmij swój garnitur i ponownie za³o¿ pieczêæ!") return end time = time*60 pc.mount(mount.info(vnum, 1), time) if bon1id !=0 and bon1val !=0 then pc.mount_bonus(bon1id, bon1val, time) end if bon2id !=0 and bon2val !=0 then pc.mount_bonus(bon2id, bon2val, time) end if bon3id !=0 and bon3val !=0 then pc.mount_bonus(bon3id, bon3val, time) end end function info(vnum, index) mount_list={ -- mount bon1 bon2 bon3 czas (min.) [52001] = {20223, 0, 0, 0, 0, 0, 0, 60*24*7}, [52002] = {20224, 0, 0, 0, 0, 0, 0, 60*24*7}, [52003] = {20225, 0, 0, 0, 0, 0, 0, 60*24*7}, [52004] = {20226, 0, 0, 0, 0, 0, 0, 60*24*7}, [52005] = {20227, 0, 0, 0, 0, 0, 0, 60*24*7}, [52006] = {20228, 0, 0, 0, 0, 0, 0, 60*24*7}, [52007] = {20229, 0, 0, 0, 0, 0, 0, 60*24*7}, [52008] = {20204, 0, 0, 0, 0, 0, 0, 60*24*7}, [52009] = {20205, 0, 0, 0, 0, 0, 0, 60*24*7}, [52010] = {20206, 0, 0, 0, 0, 0, 0, 60*24*7}, [52011] = {20207, 0, 0, 0, 0, 0, 0, 60*24*7}, [52012] = {20208, 0, 0, 0, 0, 0, 0, 60*24*7}, [52013] = {20209, 0, 0, 0, 0, 0, 0, 60*24*7}, [52014] = {20210, 0, 0, 0, 0, 0, 0, 60*24*7}, [52015] = {20211, 0, 0, 0, 0, 0, 0, 60*24*7}, [52016] = {20212, 0, 0, 0, 0, 0, 0, 60*24*7}, [52017] = {20213, 0, 0, 0, 0, 0, 0, 60*24*7}, [52018] = {20214, 0, 0, 0, 0, 0, 0, 60*24*7}, [52019] = {20215, 0, 0, 0, 0, 0, 0, 60*24*7}, [52020] = {20216, 0, 0, 0, 0, 0, 0, 60*24*7}, [52021] = {20217, 0, 0, 0, 0, 0, 0, 60*24*7}, [52022] = {20218, 0, 0, 0, 0, 0, 0, 60*24*7}, [52023] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52024] = {20111, 0, 0, 0, 0, 0, 0, 60*24*7}, [52025] = {20112, 0, 0, 0, 0, 0, 0, 60*24*7}, [52026] = {20113, 0, 0, 0, 0, 0, 0, 60*24*7}, [52027] = {20114, 0, 0, 0, 0, 0, 0, 60*24*7}, [52028] = {20115, 0, 0, 0, 0, 0, 0, 60*24*7}, [52029] = {20116, 0, 0, 0, 0, 0, 0, 60*24*7}, [52030] = {20117, 0, 0, 0, 0, 0, 0, 60*24*7}, [52031] = {20118, 0, 0, 0, 0, 0, 0, 60*24*7}, [52032] = {20119, 0, 0, 0, 0, 0, 0, 60*24*7}, [52033] = {20120, 0, 0, 0, 0, 0, 0, 60*24*7}, [52034] = {20121, 0, 0, 0, 0, 0, 0, 60*24*7}, [52035] = {20122, 0, 0, 0, 0, 0, 0, 60*24*7}, [52036] = {20123, 0, 0, 0, 0, 0, 0, 60*24*7}, [52037] = {20124, 0, 0, 0, 0, 0, 0, 60*24*7}, [52038] = {20125, 0, 0, 0, 0, 0, 0, 60*24*7}, [52039] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52040] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52041] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52042] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52043] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52044] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52045] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52046] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52047] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52048] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52049] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52050] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52051] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52052] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52053] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52054] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52055] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52056] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52057] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52058] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52059] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52060] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52061] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52062] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52063] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52064] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52065] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52066] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52067] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52068] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52069] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52070] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52071] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52072] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52073] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52074] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52075] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52076] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52077] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52078] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52079] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52080] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52081] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52082] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52083] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52084] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52085] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52086] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52087] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52088] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52089] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [52090] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [71114] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [71115] = {20110, 0, 0, 0, 0, 0, 0, 60*24*7}, [71116] = {20111, 0, 0, 0, 0, 0, 0, 60*24*7}, [71117] = {20111, 0, 0, 0, 0, 0, 0, 60*24*7}, [71118] = {20112, 0, 0, 0, 0, 0, 0, 60*24*7}, [71119] = {20112, 0, 0, 0, 0, 0, 0, 60*24*7}, [71120] = {20113, 0, 0, 0, 0, 0, 0, 60*24*7}, [71121] = {20113, 0, 0, 0, 0, 0, 0, 60*24*7}, [71124] = {20114, 0, 0, 0, 0, 0, 0, 60*24*7}, [71125] = {20115, 0, 0, 0, 0, 0, 0, 60*24*7}, [71126] = {20116, 0, 0, 0, 0, 0, 0, 60*24*7}, [71127] = {20117, 0, 0, 0, 0, 0, 0, 60*24*7}, [71128] = {20118, 0, 0, 0, 0, 0, 0, 60*24*7}, [71137] = {20120, 0, 0, 0, 0, 0, 0, 60*24*7}, [71138] = {20121, 0, 0, 0, 0, 0, 0, 60*24*7}, [71139] = {20122, 0, 0, 0, 0, 0, 0, 60*24*7}, [71140] = {20123, 0, 0, 0, 0, 0, 0, 60*24*7}, [71141] = {20124, 0, 0, 0, 0, 0, 0, 60*24*7}, [71142] = {20125, 0, 0, 0, 0, 0, 0, 60*24*7}, [71165] = {20221, 0, 0, 0, 0, 0, 0, 60*24*7}, [71166] = {20222, 0, 0, 0, 0, 0, 0, 60*24*7}, } return mount_list[vnum][index] end end end
  8. Hey, as you can see from the image below for some reason my NPC is showing duplicate titles EDIT - SOLVED. quest verwaltung begin state start begin when 9003.chat."Trade Vendor" begin npc.open_shop(3) say("The Trade Vendor shop was opened!") end when 9003.chat."Spirt Stones" begin npc.open_shop(27) say("The Spirt stone shop was opened!") end when 9003.chat."Special Items" begin npc.open_shop(11) say("The shop was opened!") end when 9003.chat."Horse Level 21" begin horse.set_level(21) horse.ride() pc.give_item2(50053) pc.set_skill_level(131,59) say("Your horse is now level 21!") end when 9003.chat."Blessing Marbles" begin pc.give_item2(70024) pc.give_item2(70024) pc.give_item2(70024) pc.give_item2(70024) pc.give_item2(70024) say("You now have 5 blessing marbles") end when 9003.chat."Rules" begin say("Hacking isn't prohibitied and if caught will face permanent ban") say(" ") say("Keep your account information to yourself, if your items are") say("stole, you'll need to provide proof of ownership") say("") say("If you've got any other problems, please contact a GameMaster") say_reward("[GOD]Invictus") say_reward("[SGA]Triaica") end end end
  9. Hey, thanks for this but it's not what i'm looking for, this is for riding and getting a bonus at that time, I need one to work when it's just in your inventory, although i'm going to use the pc.mount_bonus to see if that'll work instead of apply affect. I'm currently the point that i can add the bonus and remove it, but for some reason when its in the inventory it's giving 10,000 hp and not 5,000. also when you ride the mount and unride it it resets hp to default, but i guess this can be fixed by altering the if statement to check if it's also riding etc quest mountbonus begin state start begin when login or enter with pc.getqf("mount_bonus") != 1 begin if pc.count_item(52001)>=1 then pc.mount_bonus(1, 5000, 60*60*24*365) pc.setqf("mount_bonus", 1) end end when logout or disconnect with pc.getqf("mount_bonus") == 1 begin pc.setqf("mount_bonus", 0) end end end
  10. Hey, Maybe I'm missing something as I haven't had to do it before. i implemented a quest and decided to remove it completely, but for some reason it still comes up. how does one go about completely removing a quest from the server files so it no longer comes up ingame etc. Thanks Invictus
  11. bump - does anyone know any other methods of items giving bonus via the inventory? as the ones listed and the ones ive tried havent worked, it all revolves around the time i need a function that does it without using the time :/
  12. [Hidden Content] - Game99 Config [Hidden Content] - Channel 1 config [Hidden Content] - DB Config [Hidden Content] - Auth Config They're all the same, other than Auth config pw i cross checked with my working server and that worked fine. I'm doing this on a VPS if that makes any difference? also the user i made called "metin2" as instructed by the 34k clean instructions to all of the passwords seen in the config, none worked all caused the same error
  13. Hey, just implementing the 34k untouched files but for some reason i'm getting the below error and not entirely sure what to do about it. PUBLIC_IP: 188.165.186.201 interface em0 mysql_real_connect: Access denied for user 'metin2'@'localhost' (using password: YES) cannot open direct sql connection to host: localhost user: metin2 db: common cannot start server while no common sql connected HOSTNAME: Game99
  14. I tried something similar earlier to remove the affect after log out but for some reason it won't remove it at all even using your way :/ possibly because it's putting the time left into - and not on 0 causing it to bug?
  15. It's fixed now, but that would have worked, i did some the same thing.
  16. yeah, i wrote it that way so i could add multiple if statements for the other mounts rather than creating new quest files for each one was trying to figure out the add.effect command aswell edit - figured it out! here's the code if you wanted it. this gives 5,000 hp to the player. second edit, it bugs and the user keeps the HP even if the item is removed from invent and player relogs. ill update it when i find a fix Edit again - below is a bad way to do it, need to find a way to do it without a timer. will likely need to write a new function for it quest mountdmg begin state start begin when login or enter begin if pc.count_item(52001)>=1 then affect.add(1, 5000, 5*60) // only gives for five mins :/ end end end end
  17. Nope, didn't work. Added the quest name to the list, complied it, reloaded the quest but still only gives the bonus whilst you're riding the mount. quest mountdmg begin state start begin when login or enter begin if pc.count_item(52001)>=1 then pc.52001.use end end end end
  18. Hey guys, been implementing bonuses onto my mounts, but unfortunately they only give the bonus whilst you're actively riding the mount. does anyone know a method for making them give the bonus while you're not actively using but but when they're in your inventory?
  19. you was being a douche in the manner you chose to explain the correct terminology. "I'm attempting to repair the Metin2 community's bad behaviour in calling things something they aren't." misuse of terminology is not "bad behavior". I assume you expect everyone to be an expert in this field, when in actuality you were at our level once and you almost certainly made mistakes with terminology. you respond to help, not to lecture us on misuse of terminology. if individuals make a mistake in the terminology they're using then state that but don't write a condescending paragraph when there's no need for it. If you want everyone to have perfect terminology write an extensive thread then sticky it so everyone can see it.
  20. Hi, I'm new to configuring the SSH tunnel so that i can connect into the DB via SSH. It was all configured by a friend and working perfectly, then strangely the SSHD_config deleted itself o.O after replacing it and configuring it to the best of my knowledge to regain access to the root directory the SSH is no longer working in navicat. [Hidden Content] I'm not sure what information i need to provide in order to get this fixed, but any help is appreciated! Edit - Fixed
  21. *vps root directory. better? don't be such a douche. I can use the console provided by the host to access the vps but when attempting to access the sshd_config to fix the error via using the following commands cd /etc/ssh vi sshd_config [Hidden Content] I get the following output So all i need to do is find a way to edit it via the console in order to correct the error. Edit: for some reason the sshd_config managed to delete itself o.O
  22. Hey guys, managed to lock myself out of my vps root. i did this by altering something in attempt to fix my SSH tunneling, i read that i should change my listening address to "public address" in the SSHD_config it had no affect so i put my vps address which locked me out. i attempted to alter the sshd_config via the console but for some reason when i go into the file using the VI command it comes up with this: [Hidden Content] does anyone know another way i can alter my listening address back to 0:0:0:0? thanks
  23. You really need to debug yourself, the people who spend the time to fix all the bugs in servers have no intention of releasing the files for free, and the majority will either sell them or open a server. You can get alot of help on this forum, so just get cracking on fixing the bugs, shouldn't take more than a couple weeks to make it completely clean. Good Luck
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.