Jump to content

Cripplez

Member
  • Posts

    118
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Cripplez

  1. This works for normal item like weapon, armor, etc.. I would like to do this for ACCE items, instead of absorbing bonus I want to add normal bonus too
  2. No, i made a try adding the bonus only in item_proto server (APPLY_MAX_HP 5000) but when i equip the item I don't receive the bonus
  3. Hi, I'd like to add bonus to the Sash items, like HP, Strong Sura, Strong War, etc.. I tried to add them in the item_proto like i would do with a weapon or armor, but it doesn't work when i equip the sash. Has anyone already done this before?
  4. 0827 11:38:19693 :: File "ui.py", line 1506, in OnMove 0827 11:38:19693 :: File "ui.py", line 88, in __call__ 0827 11:38:19693 :: File "ui.py", line 70, in __call__ 0827 11:38:19693 :: File "ui.py", line 2495, in OnMove 0827 11:38:19693 :: File "ui.py", line 88, in __call__ 0827 11:38:19693 :: File "ui.py", line 70, in __call__ 0827 11:38:19693 :: File "ui.py", line 720, in __OnScroll 0827 11:38:19693 :: ReferenceError 0827 11:38:19693 :: : 0827 11:38:19693 :: weakly-referenced object no longer exists 0827 11:38:19693 :: Line 1506 ui.py: def OnMove(self): if self.callbackEnable: self.eventMove() Line 88 ui.py: def __call__(self, *arg): return self.call(*arg) Line 70 ui.py: def __call__(self, *arg): return self.func(self.obj) Line 2495 ui.py: self.eventScroll() Line 720 ui.py: def __OnScroll(self): self.SetBasePos(int(self.scrollBar.GetPos()*self.__GetScrollLen()), FALSE)
  5. Hi, I have implemented the Target Info System, everything is fine, I have only this annoying visual bug. If I open the info with a monster with no drop, it is all okay, but if I open a monster with 5/6 items that has the "scroll down thing" and then i click again on a monster with no drop I have this visual bug. Anyone know how I can fix it? Thank you
  6. quest test_dungeon_floor begin state start begin --** FUNCTION - SETTINGS function test_dungeon(arg) local setting = { ["MAP_INDEX"] = 216, ["LIMIT_TIME"] = 3, ["WAITING_TIME"] = 1, ["LEVEL_PLAYER"] = 80, ["BOSS_CHARON"] = 2597, ["BOSS_AZRAEL"] = 2598, ["BOSS_TARTAROS"] = 2591, ["METIN"] = 8035, ["key cristal"] = 30315, ["totem"] = 30312, ['item_map'] = 30322, ['item_metin'] = 30321, ['x'] = 3072, ['y'] = 12032, } return rawget(setting, arg) end function test_dungeon_index(int1) local DUNGEON_INDEX = test_dungeon_floor.test_dungeon("MAP_INDEX") return int1 >= (DUNGEON_INDEX * 10000) and pc.in_dungeon() and int1 < (DUNGEON_INDEX + 1) * 10000 end --** END FUNCTION --** LOGIN / LOGOUT when login with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin pc.set_warp_location (65, 5908, 1112) local CONTROL_LEVEL = test_dungeon_floor.test_dungeon("LEVEL_PLAYER") if d.getf ("test_load_regen") == 0 then d.set_regen_file("data/dungeon/test/floor_3_test.txt") d.setf ("test_load_regen", 1) elseif pc.get_level() < CONTROL_LEVEL then warp_to_village() end chat ( "chat chat" ) chat ( "chat chat" ) timer ("time_test_dungeon_floor", 30*60) end when logout with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin local WAITING_TIME = test_dungeon_floor.test_dungeon("WAITING_TIME") pc.setqf ( "waiting_time_test_dungeon_floor", get_global_time() + (WAITING_TIME * 60)) end --** END LOGIN / LOGOUT when 20351.chat."quest test" begin local RESULT_WAITING, PLAYER_LEVEL = math.floor ((pc.getqf ( "waiting_time_test_dungeon_floor" ) - get_global_time())/60), test_dungeon_floor.test_dungeon("LEVEL_PLAYER") say_title("quest test") if pc.get_level() < PLAYER_LEVEL then say("cant join, level too low") return end if pc.getqf ( "waiting_time_test_dungeon_floor" ) > get_global_time() then say ( "wait time, cant join again yet" ) say_reward ( "time to wait: "..RESULT_WAITING.." minuti" ) return end if pc.count_item(test_dungeon_floor.test_dungeon('item_map')) == 0 then return end say("chat chat") say("chat chat") local s = select("yes, warp to map","No") if s == 2 then return end pc.warp(315500,1210200) end when 30101.take with item.get_vnum() == test_dungeon_floor.test_dungeon('key_cristal') and pc.get_map_index() == test_dungeon_floor.test_dungeon('MAP_INDEX') begin local ENTRY_KEY, PLAYER_LEVEL, LIMIT_TIME, MAP_INDEX = test_dungeon_floor.test_dungeon("key_cristal"), test_dungeon_floor.test_dungeon("LEVEL_PLAYER"), test_dungeon_floor.test_dungeon("LIMIT_TIME"), test_dungeon_floor.test_dungeon("MAP_INDEX") say_title(mob_name(30101)) say ( "chat" ) wait() say_title ( "information" ) say_reward ( "chat chat" ) say_reward ( "chat chat" ) if select ( "yes start dungeon", "No, not ready" ) == 2 then return end if not party.is_party() then --**pc.remove_item (ENTRY_KEY) d.join (MAP_INDEX) return elseif not party.is_leader() then return end --**pc.remove_item (ENTRY_KEY) d.new_jump_party (MAP_INDEX, 4411, 12282) end --**END NPC Entrata Dungeon Azrael --** TIMER when time_test_dungeon_floor.timer with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin d.exit_all() end --**END TIMER --** 3 Floor when 30322.use with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin item.remove() timer("enter_floor_5", 3) end --** 5 Floor when enter_floor_5.timer with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin d.jump_all(test_dungeon_floor.test_dungeon('x')+845, test_dungeon_floor.test_dungeon('y')+900) d.clear_regen() d.kill_all() d.regen_file("data/dungeon/test/floor_5_test.txt") end when 30102.take with item.get_vnum() == test_dungeon_floor.test_dungeon('totem') begin pc.remove_item(item.get_vnum(), 1) timer("enter_floor_6", 3) end --** 6 Floor when enter_floor_6.timer with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin d.jump_all(test_dungeon_floor.test_dungeon('x')+1300, test_dungeon_floor.test_dungeon('y')+700) d.clear_regen() d.kill_all() d.regen_file("data/dungeon/test/floor_6_test.txt") end --** 7 Floor when enter_floor_7.timer with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin d.jump_all(test_dungeon_floor.test_dungeon('x')+75, test_dungeon_floor.test_dungeon('y')+1155) d.clear_regen() d.kill_all() d.regen_file("data/dungeon/test/floor_7_test.txt") end --** KILL when kill with test_dungeon_floor.test_dungeon_index(pc.get_map_index()) begin local VNUM_CHARON, VNUM_AZRAEL, VNUM_TARTAROS, VNUM_METIN = test_dungeon_floor.test_dungeon("BOSS_CHARON"), test_dungeon_floor.test_dungeon("BOSS_AZRAEL"), test_dungeon_floor.test_dungeon("BOSS_TARTAROS"), test_dungeon_floor.test_dungeon("METIN") if npc.get_race() == VNUM_CHARON then timer("enter_floor_7", 5) elseif npc.get_race() == VNUM_AZRAEL then d.kill_all() timer ( "test_dungeon_floor_exit", 30 ) elseif npc.get_race() == VNUM_TARTAROS then game.drop_item_with_ownership(test_dungeon_floor.test_dungeon('totem'), 1) elseif npc.get_race() == VNUM_METIN then game.drop_item_with_ownership(test_dungeon_floor.test_dungeon('item_metin'), 1) end end --** END KILL when test_dungeon_floor_exit.timer begin d.exit_all() end end end
  7. Yes this is what I'm doing now, but if i have a dungeon that i don't want to start at the coordinates of Town.txt i need another solution I tried this but didn't work, the syser from core says map index 0, I think because the quest makes the index * 10000 +1, so it is a temporary index and the command d.new_jump can't find it? quest test_dungeon_1 begin state start begin function test_dungeon(arg) local setting = { ["MAP_INDEX"] = 217, } return rawget(setting, arg) end function test_dungeon_index(int1) local DUNGEON_INDEX = test_dungeon_1.test_dungeon("MAP_INDEX") return int1 >= (DUNGEON_INDEX * 10000) and pc.in_dungeon() and int1 < (DUNGEON_INDEX + 1) * 10000 end
  8. Hello, I'm trying to write a quest for a dungeon and I want that you can do it alone or with party. when npc.click begin etc etc if not party.is_party() then d.join (MAP_INDEX) return elseif not party.is_leader() then say ( "Only party leader can start dungeon" ) return end d.new_jump_party (MAP_INDEX, 8437, 10666) end Is this the only way to do it? Or I could do something better? with d.new_jump_party i can choose the index map and coords x y, but with d.join I can only select map index and it will teleport me at the town.txt of the map index. Is there a way to select the coords for d.join too?
  9. Thank you very much, it is great and works There is just a small problem, the race warrior can use all the items, the race sura can use 3 items, assassin 2 items and shaman 1 items I think the problem is here local id_to_job = {[52101] = 0, [52102] = 1, [52103] = 2, [52104] = 3} if pc.get_job() > id_to_job[item.get_vnum()] then say_title (item.get_name()) -- just print book's name say("") say("This book isn't for your race") say("") return end I should change it to this if pc.get_job() ~= id_to_job[item.get_vnum()] then
  10. Hello, This is a quest to upgrade your skill, from M1 to M2, M3, M4 ecc till G1. The quest itself works well with no problem, but it's just a terrible code, so long and ugly. How this could be made shorter and nicer, but that works at the same way? I have the same script to upgrade the skill from G1 to G2,G3 ecc till P
  11. I just did "pkg install -y gmake", when it finished i retried the command "make config-recursive" but again i have the same error
  12. Hello, do you know how i can resolve this? I followed every step of the guide but now i can't go on it's the command at 7:50 of your video
  13. Hi Does anyone have the Orc Maze Map? I'd need both client and server side, thank you
×
×
  • 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.