-
Posts
1298 -
Joined
-
Last visited
-
Days Won
38 -
Feedback
100%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Syreldar
-
1031 22:43:34983 :: inconsistent use of tabs and spaces in indentation Check the indentation in your root files.
-
Sash System \ just a little problem
Syreldar replied to iRazer's topic in Community Support - Questions & Answers
..XD -
If you bought this system, contact @VegaS, he will surely be able to help you, since he's the owner.
-
Yes, but specifying the key when you already check for the column to be a determined one in the query is rather useless, LIMIT 1 also does the job (and i prefer it over the [1] after the mysql.query). Three ways of doing the same thing are: .["duration"][1] (I dislike it.) [1] after the mysql.function (since you already select a column, in this case duration, and you just want one result) LIMIT 1 at the end of the query.
-
there is a difference between inserting that var in the quest and inserting it inside the function. XD by inserting it inside the function and naming it the same as the function arg you make a mistake since you override it, by inserting it inside the quest you save the item id inside a local variable which you can use for the quest, and you can do it. no you don't have to put item_id inside the function since the function already takes an argument named item_id. This is basic programing, i shouldn't be there teaching you what does that mean cause understanding how variables work is simple, almost like doing 1+1. local LOL = item.get_id() -> GetDuration(LOL) -> mysql.query(string.format("SELECT duration FROM %s.new_petsystem WHERE id = %d LIMIT 1;", player, LOL)) get it?
-
Hi. First of all, what the hell is that ".duration[1]" at the end of the mysql.query function? 2. By calling a function named item_id, you are overriding the function arg which is also a var named item_id. Which means that regardless of what you insert inside the function arg, it will return a static value, item.get_id() which is what you put inside "local item_id". Check the function i've just written: [Hidden Content] This is for you; [Hidden Content]
-
Yes that's correct, but the item_desc already supports it by using the | command! No need to modify the py's.
-
Glad to help!
-
by putting a space between | and the letters.
-
help Unknown packet header: 109, last: 3 3
Syreldar replied to MORTE's topic in Community Support - Questions & Answers
Why would you open a lib? -
Sash System \ just a little problem
Syreldar replied to iRazer's topic in Community Support - Questions & Answers
Programing is like math, if it doesn't work you are the one doing something wrong, not the client or the server, and i just gave you the solution for the problem, if it doesn't work, again you are doing something wrong. -
debug it with VisualStudio.
-
Sash System \ just a little problem
Syreldar replied to iRazer's topic in Community Support - Questions & Answers
I am confident on the fact you do not know how to add new bonuses in your client, cause yeah, you are not the only one who had to get through this problem to add sash system, yet everyone knows this problem is a basic level problem. If you know how bonuses work you should be aware about the fact you can't simply randomly add the bonus in the affect array in uitooltip.py, but you also have to define it on a specific line, in your case, the line number 97 of the affect array, the bonuses are indexed automatically. -
Sash System \ just a little problem
Syreldar replied to iRazer's topic in Community Support - Questions & Answers
No you didn't, The client can't read a bonus which has Type number 97. Add it in uitooltip.py and locale_game.py. -
problem with weapon costume shaman
Syreldar replied to bumxd's topic in Community Support - Questions & Answers
Why would you change combo indexes to make a weapon costume work? -
help Unknown packet header: 109, last: 3 3
Syreldar replied to MORTE's topic in Community Support - Questions & Answers
open VisualStudio and debug it. -
uiCharacter.py(line:405) __LoadWindow This is the error, whoever says it's in ui.py is not able to read the syserr properly.
-
Dump_proto skilltype49
Syreldar replied to Baltazar's topic in Community Support - Questions & Answers
That has nothing to do with the item_proto. Your skill_table.txt in locale / your playersettingmodule.py in root are missing the skill number 49. -
channel 1 syserr error
Syreldar replied to servan12's topic in Community Support - Questions & Answers
QUEST_REWARD_LOG -> design_table -> 5 -> length -> increase till the error disappears.