Register for your free account! | Forgot your password?

You last visited: Today at 01:31

  • 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 08/01/2013, 23:43   #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 08/02/2013, 08:56   #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 08/02/2013, 16:54   #4
 
elite*gold: 0
Join Date: Jun 2010
Posts: 762
Received Thanks: 84
ne Trinity


Ammonit is offline  
Old 08/02/2013, 18:56   #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 08/02/2013, 22:15   #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 08/02/2013, 23:27   #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



« [Biete] SQL um Vendoren Items zu adden | Fusion CMS? »

Similar Threads
[Request] Edit the Highest Level & Change the Item Level
10/23/2010 - CO2 PServer - Discussions / Questions - 2 Replies
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 level of a Item like from 132 to 135 and from 137 to 140 =) I hope u understand my bad English*
Skil Level Need quest item called 120 NPCs l l P l steel Level NPC Providing Online
09/17/2010 - Metin2 PServer - Discussions / Questions - 1 Replies
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 Events Everything here 120 LeveL ?temi l P Skil Npcsi l LeveL Veren Npc l Çelikli l Yeni Maplar...
Skil Level Need quest item called 120 NPCs l l P l steel Level NPC Providing Online
09/17/2010 - Metin2 PServer - Discussions / Questions - 0 Replies
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 Events Everything here 120 LeveL ?temi l P Skil Npcsi l LeveL Veren Npc l Çelikli l Yeni Maplar...



All times are GMT +2. The time now is 01:31.


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

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