-
Posts
236 -
Joined
-
Last visited
-
Days Won
3 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Necro
-
-
DB Crash after that
-
Why you need the player name to be the name for your server timer? Do you want to use it? Or what?
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
-
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
-
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 beginwhen login begindropList = {[8008] = {typ = "limit", -- typemin_level = 35, -- mindestlevelmax_level = 45, -- maxleveldropps = {{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", -- typemin_level = 10, -- mindestlevelmax_level = 55, -- maxleveldropps = {{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", -- typemin_level = 10, -- mindestlevelmax_level = 55, -- maxleveldropps = {{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", -- typedropps = {{50006, 1, 100}, -- dropeintrag (vnum, count, chance){50008, 1, 100},{50007, 1, 100},{50009, 1, 100},{50073, 1, 100},}},-- Želva[2191] = {typ = "drop", -- typedropps = {{50006, 1, 100}, -- dropeintrag (vnum, count, chance){50008, 1, 100},{50007, 1, 100},{50009, 1, 100},{50076, 1, 100},}},-- Devítiocas[1901] = {typ = "drop", -- typedropps = {{50006, 1, 100}, -- dropeintrag (vnum, count, chance){50008, 1, 100},{50007, 1, 100},{50009, 1, 100},{50077, 1, 100},}},-- Žlutý tygr[1304] = {typ = "drop", -- typedropps = {{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", -- typedropps = {{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", -- typedropps = {{50006, 1, 100}, -- dropeintrag (vnum, count, chance){50008, 1, 100},{50007, 1, 100},{50009, 1, 100},{50072, 1, 100},}},}endfunction drop(self)if dropList[self].typ == "drop" thenlocal chance,counttable.foreach(dropList[self].dropps, function(i)if dropList[self].dropps[3] ~= nil thenchance = dropList[self].dropps[3]elsechance = 100endif dropList[self].dropps[2] ~= nil thencount = dropList[self].dropps[2]elsecount = 1endif math.random(1, 100) < chance thengame.drop_item_with_ownership(dropList[self].dropps[1], count)endend)elseif dropList[self].typ == "limit" thenif dropList[self].min_level == nil or dropList[self].max_level == nil then return endif dropList[self].min_level > pc.level or dropList[self].max_level < pc.level then return endlocal chance,counttable.foreach(dropList[self].dropps, function(i)if dropList[self].dropps[3] ~= nil thenchance = dropList[self].dropps[3]elsechance = 100endif dropList[self].dropps[2] ~= nil thencount = dropList[self].dropps[2]elsecount = 1endif math.random(1, 100) < chance thengame.drop_item_with_ownership(dropList[self].dropps[1], count)endend)elsereturnendendwhen kill with not npc.is_pc() beginlua_drop.drop(npc.get_race())endendend -
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.
-
It's give you 10k (50*200) item, if you have 50 empty slot in inventory! (theoretically
)Thank you!
-
Your sign say you are a lua dev and you don't know that ? xD Just make a loop
Thanks for your very helpfull information.
-
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
-
-
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?
-
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?
-
Thank you
-
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.
- 1
-
Hi, about your problem i am not sure, but the best way for tree is using SpeedTree
-
Thanks, and different way isnt?
[Q] Server_timer
in Community Support - Questions & Answers
Posted
I did like that