HisaoShou
-
Posts
70 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by HisaoShou
-
-
Hello everyone.
I'd like to know how to decrease player's level with a quest.
I have tried something like "pc.give_exp2(-9999999999)" but it didn't work
Can someone help me please?
(I had another idea to use "command" function but it works only for GM. If it had worked with players too but only via quest that would've be awesome for my problem)
-
-
-
Good evening everyone.
I'd like to know how to change these buttons from the quest window
I want to replace them with another images
-
Acum 6 ore, Anyone a spus:
Change 999 with MapIndex of war map. if ((GetEmpire() != pkVictim->GetEmpire()) && (ch->GetMapIndex() != 999))
Thank you.
Solved.
- 1
-
Acum 1 oră, Anyone a spus:
Yes.
Just add check of map index
I have no ideea how to do this in C++
something like:
if (GetEmpire() != pkVictim->GetEmpire()) { ChatPacket(CHAT_TYPE_INFO,LC_TEXT("You can't attack player %s because is from another kingdom!"),pkVictim->GetName()); return false; if HowToCheckMap() == mapId('MapNumber') { return true; } }
?
-
Acum 23 ore, Anyone a spus:
if (GetEmpire() != pkVictim->GetEmpire()) { ChatPacket(CHAT_TYPE_INFO,LC_TEXT("You can't attack player %s because is from another kingdom!"),pkVictim->GetName()); return false; }
I have a question....
Won't this block attacks from empire war too?
-
La 6/23/2017 la 23:01, Mandi a spus:
You are english? If you are, it's much more simple for you to do that, because it's about logic.. and it's in english language. For the people who doesn't know english it's much more harder.
Take a look https://metin2.download/picture/4877xpvT85q4mt4M47PqNXuL05v7rd28/.png
I know english and I also know some C# and javascript, but not C++
Yes, they are alike, but I don't know how to write C++ code for server.
And that code from the image should be put in... char.cpp , right?
-
Acum 4 ore, Mandi a spus:
Open char_battle.cpp and search: CHARACTER::Attack and in this bool function you can put a condition for what do you want.
It's so simple, just try harder! This is for your own good. As you see no one doesn't give a sheet for what you want.
This doesn't mean that I should simply give up.
I don't know what to edit from there, I need more clues or something.
-
-
Acum 4 ore, Galet a spus:
You can find sources, db file and game file, you just have to replace the game and db (and tweak your game like adding the stuff you cant in CONFIG and editing Sql Tables) then it'll be done
It would be really useful if there would be an tutorial doing all this.
Like adding stuff in CONFIG and Sql Tables
-
Acum 5 ore, Vanilla a spus:
and everything I mentioned in this thread. There ar lots of source changes, some minor and some major. It has a unique system, new quest triggers, a mysql class for quests, new quest functions and is fully customizable, not only via CONFIG and txt's but also via source since it's fully open source.
You can use very client compatible with r34k and above. No need to adapt anything, vanilla core is a drop-in replacement for your game and db file being backward-compatible with official server setups.
So... this is NOT a serverfile, but a core? Like... those cores from Ch1, Ch2, and so on...?
And this works on any serverfile over 2010?
How do I install this?
And why the download link is not working (v2.4.1) ? - nvm. I looked on the wrong topic
-
What are the features of this core? Like... pet system, mounts, so on...
And what client do I need for this to run with full actual features?
-
Thanks everyone for your support, its been really useful for me.
Solved.
-
Acum 17 minute, Syreldar a spus:
not properly compiled, doesn't reach the kill trigger, there are errors.
What errors?
How should I compile it?
Edit: I have NO IDEA why it is not working. The quest seems fine to me.
-
Acum 6 minute, Syreldar a spus:
Means the quest is not properly compiled.
Right now I compiled it again, and still nothing.
And yes, after this I reloaded them again
-
Reloaded.
Still nothing.
-
Acum 18 minute, Syreldar a spus:
/reload lul
I reloaded. Still nothing.
When I try to use the item, nothing happens. No quest appears or something
(I need to know if is my serverfile to fault or my quest)
-
Acum 2 minute, Syreldar a spus:
yes
It doesn't work.
Here is my quest:
quest Quester begin state start begin when 30089.use begin set_state(information) end end state information begin when letter begin send_letter("Quest de test") end when info or button begin say("Quest de test") say("lalalal it is only a text") say("lalalalalala") say(""") say_reward("hahahahahhaaah") pc.setqf("state", 22) q.set_counter("Lupusor", 22) end when 102.kill begin local count = pc.getqf("state") - 1 if count <= 22 then pc.setqf("state", count) q.set_counter("Lupusor", count) end if count == 0 then say_title("Quest de test") say("Ai finalizat cu succes misiunea!") say("Recompensa:") say_reward("Rahatt") say_reward("Alte informatii:") say_reward("") say_reward("Alte informatii:") say_reward("Ai primit Yang") say_reward("Ai primit experienta") pc.change_money() pc.give_exp2() pc.give_item2(1, Rahatt) horse.set_level("") clear_letter() set_state(__COMPLETE__) end end end state __COMPLETE__ begin end end
Here is my item:
-
Acum 2 minute, Syreldar a spus:
18
Will it work even if i modify an existent item (like Yety fur+) ?
-
Chiar acum, Syreldar a spus:
A trigger for that doesn't exist, you need at least to login.
What kind of item type do I need for the "when ITEM.use begin" to work?
-
Chiar acum, Tasho a spus:
when 20092.chat."Test" with pc.count_item(50602) begin
You can.
Won't that happen only when I talk with a npc?
I need it without talking with npc or something, the item to activate the quest
-
Acum 27 minute, Tasho a spus:
if pc.count_item(50602) then -- Check if exist a item in inventory (MIN 1) if pc.count_item(50602) >= value then -- Check if exist a item in inventory (MIN 1 | MAX: value)
Can't you make it like "when pc.count_item(50602) begin" ?
-
How can I check if a player has an item in inventory?
Something like:
when 40002.inventory begin quest_happens end
Decrease Player's Level Quest
in Community Support - Questions & Answers
Posted
Thank you, it worked.
Though I had to add pc.set_level in quest functions