Jump to content

HisaoShou

Inactive Member
  • Posts

    70
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by HisaoShou

  1. 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)

  2. 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;
       }
    }
    

    ?

     

  3. 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?

  4. 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. 

  5. 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 :D

     

     

    It would be really useful if there would be an tutorial doing all this. 

    Like adding stuff in CONFIG and Sql Tables

  6. 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

  7. 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:

    1498048986789.jpg.92cfe963f3d232c8732bbc3f2368c581.jpg

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.