-
Posts
236 -
Joined
-
Last visited
-
Days Won
3 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Necro
-
server_timer("tombola", 10, ..pc.get_account_id()) when tombola.server_timer begin I did like that
-
DB Crash after that
-
I need timer for every player izolate and my first idea was do like that but if you know better solution?
-
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 :/
-
But i need that name = pc.get_name Your case wil be onlny named name so pc.get_name = TestPlayer but name = name
-
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
-
Question about C++ and D:\
Necro replied to Necro's topic in Community Support - Questions & Answers
Ok thanks, because in client 34k load objects and texture inside but 40k load things on my hard disk -
Hi, where i can set that client use own files and dont files from my hard disk D: thanks a lot
-
Problem with starting server
Necro replied to Necro's topic in Community Support - Questions & Answers
Thank you (Dík moc chlape!) -
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?
-
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
-
Question about pc.give_item
Necro replied to Necro's topic in Community Support - Questions & Answers
Thank you! -
Question about pc.give_item
Necro replied to Necro's topic in Community Support - Questions & Answers
Thanks for your very helpfull information. -
Question about pc.give_item
Necro replied to Necro's topic in Community Support - Questions & Answers
r34k in use. -
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
-
M2 Download Center Download Here ( Internal ) Here is over 200 icons of belts. Enjoy Screen: Download: [Hidden Content]
- 5 replies
-
- 54
-
Thank you man!
-
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.
-
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?
-
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.
-
Make more light a object in 3DS max
Necro replied to tmoitoi's topic in Community Support - Questions & Answers
Hi, about your problem i am not sure, but the best way for tree is using SpeedTree -
Little help with python syntax
Necro replied to Necro's topic in Community Support - Questions & Answers
Thanks, and different way isnt?