Jump to content
metin2dev
Metin2International

Syreldar

Developer
  • Content Count

    680
  • Joined

  • Last visited

  • Days Won

    24

Syreldar last won the day on June 30

Syreldar had the most liked content!

Community Reputation

266 Rampage

About Syreldar

  • Rank
    Chivalric
  • Birthday 12/22/1997

Profile Information

  • Gender
    Male
  • Location
    Italy

Contact Methods

  • Skype
    aresyournightmare

Recent Profile Visitors

4,594 profile views
  1. Syreldar

    open [LUA] Tips Script

    It means someone else has the item and killed a 5126/5156 monster. Also if those monsters are not unique to that specific dungeon, you might want to check for the dungeon on the 'when'. when 5126.kill or 5156.kill with monkey_dungeon.IsInDungeon(pc.get_map_index()) begin
  2. Syreldar

    Fully configurable (by 1 file) Biologist quests.

    Source modifications to load a simple lua file..? You don't need that. Guess the quests are okay for being a free product (Not really a fan of external sayconfig files but w/e)
  3. Syreldar

    open Sura Manashield Bug

    What do you mean?
  4. Syreldar

    open Sura Manashield Bug

    if (IsAffectFlag(AFF_MANASHIELD)) { // POINT_MANASHIELD ´Â ÀÛ¾ÆÁú¼ö·Ï ÁÁ´Ù int iDamageSPPart = dam / 3; int iDamageToSP = iDamageSPPart * GetPoint(POINT_MANASHIELD) / 100; int iSP = GetSP(); // SP°¡ ÀÖÀ¸¸é ¹«Á¶°Ç µ¥¹ÌÁö Àý¹Ý °¨¼Ò if (iDamageToSP <= iSP) { PointChange(POINT_SP, -iDamageToSP); dam -= iDamageSPPart; } else { // Á¤½Å·ÂÀÌ ¸ðÀÚ¶ó¼­ ÇÇ°¡ ´õ ±ï¿©¾ßÇÒ‹š PointChange(POINT_SP, -GetSP()); dam -= iSP * 100 / MAX(GetPoint(POINT_MANASHIELD), 1); } } This is the real formula.
  5. Syreldar

    open Sura Manashield Bug

    You changed the formula didn't you? It's different from usual. What were you trying to do? I can write it for you.
  6. Syreldar

    open reading the MySQL column in lua

    quest ok begin state start begin when info or button begin say("blablabla") if (select("bla si", "bla no") == 1) then local _, query = mysql_direct_query(string.format("SELECT ok FROM account.account WHERE id = %d LIMIT 1;", pc.get_account_id())); say(string.format("value: %d;", query[1].ok)) end -- if end -- when end -- state end -- quest make sure your 'ok' column only accepts "int" as value types.
  7. Syreldar

    open server can't start beacause lag !!

    I'll repeat myself once again.. this is not a memory/host/machine problem. SYSERR: Jul 29 16:44:16.763476 :: Process: FDWATCH: peer null in event: ident 21 This is why your server can't start. The issue is related to the serverfiles.
  8. Syreldar

    open server can't start beacause lag !!

    SYSERR: Jul 29 16:44:16.763476 :: Process: FDWATCH: peer null in event: ident 21 This is why your server can't start.
  9. Syreldar

    [RELEASE] Some new Item-Questfunctions in Lua

    Rewritten, slottypes = { ["armor"] = 90, ["helmet"] = 91, ["shoes"] = 92, ["bracelet"] = 93, ["weapon"] = 94, ["necklace"] = 95, ["earrings"] = 96, ["slot1"] = 97, ["slot2"] = 98, ["shield"] = 100, ["costume_armor"] = 109, ["costume_hair"] = 110, ["costume_weapon"] = 111 }; function string_in_table(s, t) return t[s] ~= nil; end -- function function item.is_worn(itype) if (not string_in_table(itype, slottypes)) then return false; end -- if local itemcell = slottypes[itype]; item.select_cell(itemcell); return item.get_cell() == itemcell; end -- function function item.select_cell_check(itype) if (not string_in_table(itype, slottypes) or not item.is_worn(itype)) then return; end -- if local itemcell = slottypes[itype]; item.select_cell(itemcell); end -- function function item.get_worn_vnum(itype) item.select_cell_check(itype); return item.get_vnum(); end -- function function item.get_worn_wearflag(itype) item.select_cell_check(itype); return item.get_wearflag(); end -- function function item.get_worn_flag(itype) item.select_cell_check(itype); return item.get_flag(); end -- function function item.get_wearflag() return mysql_query(string.format("SELECT wearflag FROM player.item_proto WHERE vnum = %d;", item.get_vnum()))[1]; end -- function function item.get_flag() return mysql_query(string.format("SELECT flag FROM player.item_proto WHERE vnum = %d;", item.get_vnum()))[1]; end -- function
  10. Syreldar

    [RELEASE-LUA] Function for Time Calculation

    --[[ Returns: The time format in years, months, days, hours, minutes and seconds of a 'sec' amount of time (in seconds) to format. Example: get_time_format(52165786) => returns "1 year, 7 months, 25 days, 11 hours, 17 minutes and 34 seconds". ]] get_time_format = function(sec) local sec = tonumber(sec); local final_str = ""; local string_type = ""; local epoch = {["hour"] = 1, ["day"] = 1, ["month"] = 1, ["year"] = 1970}; local time_formats = { {["date"] = tonumber(os.date('%S', sec)), ["plural"] = "seconds", ["singular"] = "second"}, {["date"] = tonumber(os.date('%M', sec)), ["plural"] = "minutes", ["singular"] = "minute"}, {["date"] = tonumber(os.date('%H', sec))-epoch["hour"], ["plural"] = "hours", ["singular"] = "hour"}, {["date"] = tonumber(os.date('%d', sec))-epoch["day"], ["plural"] = "days", ["singular"] = "day"}, {["date"] = tonumber(os.date('%m', sec))-epoch["month"], ["plural"] = "months", ["singular"] = "month"}, {["date"] = tonumber(os.date('%Y', sec))-epoch["year"], ["plural"] = "years", ["singular"] = "year"} }; for strings, data in time_formats do if (data["date"] > 0) then if (strings > 1) then final_str = string.format(" %s", final_str); end -- if if (data["date"] > 1) then string_type = data["plural"]; else string_type = data["singular"]; end -- if/else final_str = string.format("%d %s%s", data["date"], string_type, final_str); end -- if end -- for return final_str; end -- function
  11. Syreldar

    open Quest count problem

    when kill begin local sel = pc.getqf("select") if sel == 0 then sel = 1 end local lev = pc.getqf("current") if lev != 0 and npc.race == (special.levelup_quest[lev][sel*2-1]) and pc.getqf("buttonstate") == -1 then local remain = pc.getqf("remain") - 1 if remain <= 0 then pc.setqf("remain", 0) q.set_counter_value(0) setskin(NOWINDOW) makequestbutton(locale.level..lev..' '..locale.quest_word..' - '..locale.complete) pc.setqf("buttonstate", 3) else pc.setqf("remain", remain) q.set_counter_value(remain) end end end This is the kill, but i see no problem here, probably you've touched the kill trigger inside your sources causing it to bug out.
  12. Syreldar

    Attack speed with shaman BUG

    When a shaman has 140+ attack speed one attack on his combo doesn't hit the target. That's what he was talking about.
  13. Syreldar

    open [BUG] Core

    show us the Item::RemoveFromCharacter function
×