-
Posts
29 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by jKing
-
-
So as I said above, make shure you put your immune flags in correct order
-
Show your game.py file.
This error typically occurs when you try to get element in square bracket from variable that contains None value, for example:my_list = None print(my_list[0]) # Raises 'NoneType' object has no attribute '__getitem__' error
-
I don't really understand your question. If you want to change the skill point from GM command, just type:
/setsk SKILL_ID SKILL_POINT
For example if you want to make Aura of Sword to P level just type:
/setsk 4 40
or other skill point you want
-
Check
bool CHARACTER::IsImmune(DWORD dwImmuneFlag)
in char_resist.cpp
Also make shure to put immune_flags in correct order in setImmuneFlag in mob_proto. For example if you have enum:
IMMUNE_STUN = (1 << 0), IMMUNE_SLOW = (1 << 1), IMMUNE_FALL = (1 << 2), IMMUNE_CURSE = (1 << 3), IMMUNE_POISON = (1 << 4), IMMUNE_TERROR = (1 << 5), IMMUNE_REFLECT = (1 << 6),
then immune_stun should be firsst, next slow etc. It cannot be like
IMMUNE_POISON | IMMUNE_CURSE | IMMUNE_TERROR
-
check
entity_view.cpp
-
You just missing BLEND_IDX_START in your python script
-
Isn't this because you have totally disabled fog?
-
To unmount player after teleport you can just simply do something like this in input_login.cpp, Entergame function:
if (ch->GetMapIndex() == INDEX) { ch->UnMount(true); }
For disable moving item into slot, the method
bool CHARACTER::MoveItem
in char_item.cpp is what you are looking for
-
Put your translations into locale_game.txt (in locale folder) and use it like localeInfo.YOUR_STRING -> use localeInfo inside root scripts (remember about import)
If you want text in uiscript (ui_jack_kingdom in your case) use locale_interface.txt, import uiScriptLocale and use it like. uiScriptLocale.YOUR_STRING
Example:
locale_interface.txt
MY_TEXT[TAB]There goes your translation in polish
In your script:import uiScriptLocale (...) { "name" : "text_kingdom_01_01", "type" : "text", "x" : 223 / 2 + 22, "y" : 155+18*0, "text_horizontal_align" : "center", "fontname" : "Tahoma:13", "color" : 0xffCECECE, "text" : uiScriptLocale.MY_TEXT, }, (...)
-
-
Hi, how to add a border like this (on the python side):
to this image:
Thanks for help.
-
update global time on server
-
46 minut temu, Sirio napisał:
In char_skill.cpp, under:
bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster) { if (false == CanUseSkill(dwVnum)) return false;
paste:
int iArrayIndexSkill[] = {94, 95, 96, 109, 110, 111}; // skill index for (int iBuffSkill = 0; iBuffSkill < _countof(iArrayIndexSkill); iBuffSkill++) { if (iArrayIndexSkill[iBuffSkill] == dwVnum && pkVictim->GetMapIndex() == 26) // map index { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Say something.")); pkVictim = this; } }
Not my code, but i forgot who it is.
Thank you! It works fine, but its a one little problem. When i buff myself on specify map LC_TEXT is showing. Is there a option to showing LC_TEXT only when im trying to buff other player?
-
Hello devs, i have one question.
I want to set flag "SELFONLY" on shaman skills buffs on specfiy map, is that real to do in source? If yes please give me some tips.
Regards.
-
-
I'm sorry, repaired.
-
Hello devs! I have a little problem with notice_all command.
I hope anybody knows how to fix that, or how to remove that border on top screen.
Thanks for help, greetings jking.
-
Hello devs, i have a problem with new weapon shining by Kirige. As you can see on this video
Full Moon Sword is "green" but on my server its look like
Why its white? Did i something wrong?
-
Hello guys, i used this theard:
all works fine, but i have 2 problems:
1) When i change channel, its works, but under minimap is still CH1 (when im on ch2 for example)
2) The information: "You're already in the selected channel!" works only on CH1, for example, im on CH1, trying to change channel to CH1, information works, but when im on CH2 and trying change to CH1 there is that information and i cant change channel.
I know its hard to understand me, but i hope u will help me, sorry for bad english guys
-
-
Hi guys, can you tell me how to make toggle items like autopotions?
Im trying to make Pet Toggle, but it's not working. I tryed to make it like autopotion function (IsActive) but still not working.
Sry for bad English
-
so pet_system.cpp in source?
-
How should I edit that quest to don't unsummon pet after teleport?
-- # --------------------------------------------- #
-- # Questfile from Metin2SF by Terenzo #
-- # --------------------------------------------- #quest pet_system begin
state start begin
function get_pet_info(itemVnum)
pet_info_map = {
[53001] = {34001, "- Ognisty Feniks", 0},
[53002] = {34002, "- Reniferek", 0},
[53003] = {34003, "- Lodowy Feniks", 0},
[53005] = {34004, "- Azraeluś ", 1},
[53006] = {34027, "- Smoczek ", 1},
[53007] = {34010, " - Bambi", 0},
[53008] = {34011, "- Knuud", 0},
[53009] = {34012, "- Bao Bao", 0},
[53010] = {34008, "- Lwiątko", 0},
[53011] = {34007, "- Tygrysek", 0},
[53012] = {34005, "- Świnka ", 0},
[53013] = {34006, "- Piesek", 0},
}
itemVnum = tonumber(itemVnum)
return pet_info_map[itemVnum]
end
function get_spawn_effect_file(idx)
effect_table = {
[0] = nil,
[1] = "d:\\\\ymir work\\\\effect\\\\etc\\\\appear_die\\\\npc2_appear.mse",
}
return effect_table [idx]
end
when 53001.use or 53002.use or 53003.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use or 53010.use or 53011.use or 53012.use or 53013.use begin
local pet_info = pet_system.get_pet_info(item.vnum)
if null != pet_info then
local mobVnum = pet_info[1]
local petName = pet_info[2]
local spawn_effect_file_name = pet_system.get_spawn_effect_file(pet_info[3])
if true == pet.is_summon(mobVnum) then
if spawn_effect_file_name != nil then
pet.spawn_effect (mobVnum, spawn_effect_file_name)
end
pet.unsummon(mobVnum)
else
if pet.count_summoned() < 1 or pc.is_gm() then
pet.summon(mobVnum, " ".. petName, false)
else
syschat("Nie możesz przywołać kilku zwierzaków.")
end
if spawn_effect_file_name != nil then
pet.spawn_effect(mobVnum, spawn_effect_file_name)
end
end
end
end
end
end -
repaired it, close
ImmuneFlag not work
in Community Support - Questions & Answers
Posted
Try to change also resist_poison column in mob_proto - set it to 100