Register for your free account! | Forgot your password?

You last visited: Today at 11:25

  • Please register to post and access all features, it's quick, easy and FREE!

 

Level Up Item

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2010
Posts: 762
Received Thanks: 84
Level Up Item

#



Ammonit is offline  
Old   #2
 
elite*gold: 0
Join Date: Feb 2011
Posts: 36
Received Thanks: 10
Code:
function SetPlayerLevel(player)
	player:SetLevel(player:GetPlayerLevel()+1)
end
Meinst du sowas?


artykalamata is offline  
Old   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 150
Received Thanks: 8
Wichtig wäre erstmal der Emulator, aber wegen dem LUA tippe ich auf Arcemu, dann erstell dir ein Script für das Item und nutz artykalamatas Script von oben.
funkybeatz15 is offline  
Old   #4
 
elite*gold: 0
Join Date: Jun 2010
Posts: 762
Received Thanks: 84
ne Trinity


Ammonit is offline  
Old   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 36
Received Thanks: 10
Hab zwar gerade keine Möglichkeit zum testen aber ich glaub nicht, dass ich was vergessen habe.

Code:
class spell_lvlup : public SpellScriptLoader
{
    public:
        spell_lvlup() : SpellScriptLoader("spell_lvlup") {}

        class spell_lvlup_SpellScript : public SpellScript
        {
            PrepareSpellScript(spell_lvlup_SpellScript);

			 void HandleDummy(SpellEffIndex)
			 {
				Player* player = GetCaster()->ToPlayer();
				 
				player->GiveLevel(player->getLevel() + 1);
				player->InitTalentForLevel();

				player->GetSession()->SendNotification(LANG_YOURS_LEVEL_UP, ChatHandler(player).GetNameLink(player).c_str(), newLevel);
				ChatHandler(player).PSendSysMessage(LANG_YOURS_LEVEL_UP, ChatHandler(player).GetNameLink(player).c_str(), newLevel);
			 }

            void Register()
            {
                OnEffectHit += SpellEffectFn(spell_lvlup_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
            }
        };

        SpellScript* GetSpellScript() const
        {
            return new spell_lvlup_SpellScript();
        }
};
artykalamata is offline  
Old   #6
 
elite*gold: 0
Join Date: Jun 2010
Posts: 762
Received Thanks: 84
Quote:
Originally Posted by artykalamata View Post
Code:
function SetPlayerLevel(player)
	player:SetLevel(player:GetPlayerLevel()+1)
end
Meinst du sowas?
scheint nicht zu gehen, brauche es für Elunalua.
Ammonit is offline  
Old   #7
 
elite*gold: 0
Join Date: Feb 2011
Posts: 36
Received Thanks: 10
Quote:
Originally Posted by Ammonit View Post
scheint nicht zu gehen, brauche es für Elunalua.
Du bist Witzig ich kann ja schlecht deine Gedanken lesen.

Code:
function lvlup(event, player, item)
	player:SetLevel(player:GetPlayerLevel()+1)
end

RegisterItemGossipEvent(entry, 1, "lvlup")
So in etwa sollte es gehen. "entry" noch mit der Item ID ersetzen.


artykalamata is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Request] Edit the Highest Level & Change the Item Level
Hello Together , I have a question, how can i change the Highest level Like from 137 to 150. And the Second question how an i change the...
2 Replies - CO2 PServer - Discussions / Questions
Skil Level Need quest item called 120 NPCs l l P l steel Level NPC Providing Online
Skil Level Need quest item called 120 NPCs l l P l steel Level NPC Providing Online l New Maplar l7/24 Yang Royal Vs.Vs 0 .. All items will Editli...
1 Replies - Metin2 PServer - Discussions / Questions
Skil Level Need quest item called 120 NPCs l l P l steel Level NPC Providing Online
Skil Level Need quest item called 120 NPCs l l P l steel Level NPC Providing Online l New Maplar l7/24 Yang Royal Vs.Vs 0 .. All items will Editli...
0 Replies - Metin2 PServer - Discussions / Questions



All times are GMT +2. The time now is 11:25.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.