Jump to content

Necro

Premium
  • Posts

    236
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Everything posted by Necro

  1. server_timer("tombola", 10, ..pc.get_account_id()) when tombola.server_timer begin I did like that
  2. I need timer for every player izolate and my first idea was do like that but if you know better solution?
  3. I trew: function name() local jmeno = mysql_query("SELECT name from player_test.player WHERE name='"..pc.get_name().."' LIMIT 1") end when [test_quest.name(jmeno[1])].server_timer begin and that: when (mysql_query("SELECT name from player_test.player WHERE name='"..pc.get_name().."' LIMIT 1")).server_timer begin but result is the same: name must be give :/
  4. But i need that name = pc.get_name Your case wil be onlny named name so pc.get_name = TestPlayer but name = name
  5. Hi, how can i do that: local name = pc.get_name() server_timer(name) when name.server_time begin Because this: when name.server_time begin dont working. Thanks anyway
  6. Ok thanks, because in client 34k load objects and texture inside but 40k load things on my hard disk
  7. Hi, where i can set that client use own files and dont files from my hard disk D: thanks a lot
  8. Hi guys, i have this problem when i start the server: syserr write nothing and run only DB after all process --> sh .start.sh Where can be problem?
  9. Hi, do you know, where can be problem? SYSERR: May 6 15:18:57 :: RunState: LUA_ERROR: locale/france/quest/object/state/lua_drop:1: attempt to index field `?' (a nil value) SYSERR: May 6 15:18:57 :: WriteRunningStateToSyserr: LUA_ERROR: quest lua_drop.start click locale/france/quest/object/state/lua_drop: lua_drop={["start"]=0,drop= function (self)if dropList [ self ] . typ == "drop" then local chance , count table . foreach ( dropList [ self ] . dropps , function ( i ) if dropList [ self ] . dropps [ i ] [ 3 ] ~= nil then chance = dropList [ self ] . dropps [ i ] [ 3 ] else chance = 100 end if dropList [ self ] . dropps [ i ] [ 2 ] ~= nil then count = dropList [ self ] . dropps [ i ] [ 2 ] else count = 1 end if math . random ( 1 , 100 ) < chance then game . drop_item_with_ownership ( dropList [ self ] . dropps [ i ] [ 1 ] , count ) end end ) elseif dropList [ self ] . typ == "limit" then if dropList [ self ] . min_level == nil or dropList [ self ] . max_level == nil then return end if dropList [ self ] . min_level > pc . level or dropList [ self ] . max_level < pc . level then return end local chance , count table . foreach ( dropList [ self ] . dropps , function ( i ) if dropList [ self ] . dropps [ i ] [ 3 ] ~= nil then chance = dropList [ self ] . dropps [ i ] [ 3 ] else chance = 100 end if dropList [ self ] . dropps [ i ] [ 2 ] ~= nil then count = dropList [ self ] . dropps [ i ] [ 2 ] else count = 1 end if math . random ( 1 , 100 ) < chance then game . drop_item_with_ownership ( dropList [ self ] . dropps [ i ] [ 1 ] , count ) end end ) else return end end } normal quest: quest lua_drop begin state start begin when login begin dropList = { [8008] = { typ = "limit", -- type min_level = 35, -- mindestlevel max_level = 45, -- maxlevel dropps = { {50513, 1, 15}, -- dropeintrag (vnum, count, chance) {27992, 1, 1}, {27993, 1, 1}, {27994, 1, 1}, {50034, 1, 100}, {70005, 1, 5}, {70024, 1, 5}, {70102, 1, 5}, {71084, 1, 35}, {71085, 1, 35}, } }, -- Vrchní ork [691] = { typ = "limit", -- type min_level = 10, -- mindestlevel max_level = 55, -- maxlevel dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50070, 1, 100}, } }, -- Král démonů [1091] = { typ = "limit", -- type min_level = 10, -- mindestlevel max_level = 55, -- maxlevel dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50081, 1, 100}, } }, -- Královna pavouků [2091] = { typ = "drop", -- type dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50073, 1, 100}, } }, -- Želva [2191] = { typ = "drop", -- type dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50076, 1, 100}, } }, -- Devítiocas [1901] = { typ = "drop", -- type dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50077, 1, 100}, } }, -- Žlutý tygr [1304] = { typ = "drop", -- type dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50078, 1, 100}, } }, -- Král plamenů [2206] = { typ = "drop", -- type dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50079, 1, 100}, } }, -- Tmavý vůdce duchů [792] = { typ = "drop", -- type dropps = { {50006, 1, 100}, -- dropeintrag (vnum, count, chance) {50008, 1, 100}, {50007, 1, 100}, {50009, 1, 100}, {50072, 1, 100}, } }, } end function drop(self) if dropList[self].typ == "drop" then local chance,count table.foreach(dropList[self].dropps, function(i) if dropList[self].dropps[3] ~= nil then chance = dropList[self].dropps[3] else chance = 100 end if dropList[self].dropps[2] ~= nil then count = dropList[self].dropps[2] else count = 1 end if math.random(1, 100) < chance then game.drop_item_with_ownership(dropList[self].dropps[1], count) end end) elseif dropList[self].typ == "limit" then if dropList[self].min_level == nil or dropList[self].max_level == nil then return end if dropList[self].min_level > pc.level or dropList[self].max_level < pc.level then return end local chance,count table.foreach(dropList[self].dropps, function(i) if dropList[self].dropps[3] ~= nil then chance = dropList[self].dropps[3] else chance = 100 end if dropList[self].dropps[2] ~= nil then count = dropList[self].dropps[2] else count = 1 end if math.random(1, 100) < chance then game.drop_item_with_ownership(dropList[self].dropps[1], count) end end) else return end end when kill with not npc.is_pc() begin lua_drop.drop(npc.get_race()) end end end
  10. Hello, as Topic title say, i have problem with item shop that if i buy item with time limit, in IS mall i see him with 0 sec and after 1-2sec he is disappear. Exist any trick or something for that? Thank you.
  11. Hi, i would like make a quest which give player more then 200items. So do you know someone how write it? Because when i use pc.give_item, system give only 200 items. and i cant write quest like that: pc.give_item("27001", 200) pc.give_item("27001", 200) pc.give_item("27001", 200) pc.give_item("27001", 200) Because i need give 10.000 items. Thanks anyway
  12. M2 Download Center Download Here ( Internal ) Here is over 200 icons of belts. Enjoy Screen: Download: [Hidden Content]
  13. Hi, i would like buy the enigma protector but i have question. I used to have a MoleBox but part of players has problem in pack binary, which was detected like virus, is that same problem with enigma?
  14. Hi guys, i have problem in my sysser: number_ex: number(): first argument is bigger than second argument 120000 -> 90000, char_battle.cpp 686 Any idea how to fix it? Thank you very much.
  15. I try it but i have little problem, might be someone will knoe answer. What i must modify in game src I have already done: affect.h add : AFF_VIP, and char.cpp modify like that: m_afAffectFlag.Set(AFF_YMIR); m_afAffectFlag.Set(AFF_VIP); m_bPKMode = PK_MODE_PROTECT; but ingame i still dont see new effect of VIP. Are any thing to edit in game src?
  16. I am not sure about this. I think that in src is only index of effect. Only in client is declared gm.mse -> -> playersettingmodule.py chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+0, "Bip01", locale.FN_GM_MARK) -> locale.py FN_GM_MARK = "%s/effect/gm.mse" % app.GetLocalePath() so the best way is find in src this -> chrmgr.EFFECT_AFFECT+0 and modify or copy.
  17. Hi, about your problem i am not sure, but the best way for tree is using SpeedTree
×
×
  • 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.