Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 17:00

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

Advertisement



[Tutorial] Item for +20 Buff

Discussion on [Tutorial] Item for +20 Buff within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
InnoTx's Avatar
 
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
[Tutorial] Item for +20 Buff

Hi, since i've helped some people with the +20 Item ...
i just want to make clear i didn't fix the buff or something im just telling how the item works... just copy the effect of the buff from Onyx and do it by your self idk...

First of all go to XV50 his Tutorial and do it first :


and now do this for the Item:

go to SpecialItem.cs and add this code:

Code:
case 20000:
                    if (byte.TryParse(packetsplit[9], out byte islot))
                    {
                        ItemInstance wearInstance = session.Character.Inventory.LoadBySlotAndType(islot, InventoryType.Equipment);
                        if(wearInstance != null && (wearInstance.Item.ItemType == ItemType.Specialist) && wearInstance.Plus20Buff == 0)
                        {
                            switch (EffectValue)
                            {
                                case 1: // Fire Dragon Gem
                                    wearInstance.Plus20Buff = 1;
                                    session.SendPacket(session.Character.GenerateSay($"Your SP has now a new Buff!", 12));
                                    session.Character.Inventory.RemoveItemFromInventory(inv.Id);
                                    break;

                                case 2: // Ice Dragon Gem
                                    wearInstance.Plus20Buff = 2;
                                    session.SendPacket(session.Character.GenerateSay("Your SP has now a new Buff!", 12));
                                    session.Character.Inventory.RemoveItemFromInventory(inv.Id);
                                    break;

                                case 3: // Moon Dragon Gem
                                    wearInstance.Plus20Buff = 3;
                                    session.SendPacket(session.Character.GenerateSay("Your SP has now a new Buff!", 12));
                                    session.Character.Inventory.RemoveItemFromInventory(inv.Id);
                                    break;

                                case 4: // Sky Dragon Gem
                                    wearInstance.Plus20Buff = 4;
                                    session.SendPacket(session.Character.GenerateSay("Your SP has now a new Buff!", 12));
                                    session.Character.Inventory.RemoveItemFromInventory(inv.Id);
                                    break;

                                default:
                                    break;

                            }

                        }
                    }
                    break;
then open NaviCat go to dbo.Item:

CTRL+F the name of the item or the Vnum idk which it was

go to Effect do it by all 4 Item on 20000
then go to EffectType do

1 = Fire Buff
2 = Ice Buff
3 = Moon Buff
4 = Sky Buff

and to remove the Item Buff when its in Card holder go to BoxItem.cs

Search for:
Code:
specialist.SlDamage = box.SlDamage;
go down and add:
Code:
specialist.Plus20Buff = 0;
thats for the next people who will add and ask for help i don't have that much time in the last days ... and dont want to spend my free time to sit behind the PC and for the buff just try copy it from Onyx or idk find other solution xD





InnoTx is offline  
Thanks
1 User
Old 06/11/2022, 19:25   #2
 
elite*gold: 0
Join Date: Oct 2018
Posts: 257
Received Thanks: 207
Am I missing something for the use of a switch statement instead of just

Code:
// + add condition for EffectValue > 0 && EffectValue < 4 if needed to replace the "default" case
wearInstance.Plus20Buff = EffectValue;
session.SendPacket(session.Character.GenerateSay($"Your SP has now a new Buff!", 12));
session.Character.Inventory.RemoveItemFromInventory(inv.Id);
?
Apourtartt is offline  
Thanks
3 Users
Old 06/11/2022, 20:45   #3
 
InnoTx's Avatar
 
elite*gold: 100
Join Date: Dec 2016
Posts: 342
Received Thanks: 82
Quote:
Originally Posted by Apourtartt View Post
Am I missing something for the use of a switch statement instead of just

Code:
// + add condition for EffectValue > 0 && EffectValue < 4 if needed to replace the "default" case
wearInstance.Plus20Buff = EffectValue;
session.SendPacket(session.Character.GenerateSay($"Your SP has now a new Buff!", 12));
session.Character.Inventory.RemoveItemFromInventory(inv.Id);
?
lol how dumb am i to realize it now xDD thanks btw.
InnoTx is offline  
Thanks
1 User
Reply

Tags
nostale, opennos


Similar Threads Similar Threads
Mosha 70er Krieger 3 G's Und 54 Buff 2x M10 Buff + EQ
09/10/2011 - Metin2 Trading - 0 Replies
Da ich eh schon seit einiger Zeit kein Metin mehr spiele verkaufe ich den Account und den ganzen Plunder.. Moegeliche Zahlung ist Ueberweisung: Der/Die Accounts und das Equip muessen nicht zusammengekauft werden... Ihr sucht euch aus was ihr haben wollt macht mir einen Preisvorschlag und schauen ob wir uns einigen. Am liebsten wuerde ich aber alles zusammen verkaufen. Erstmal der Koeper Krieger: Lvl 70 25% Aura G7 Kampfrausch G1 Schwertwirbel G1 Sausen M7 noch 2 fbs oder so bis M8
Suche Torkas Buff geben Sertain Buff
07/16/2011 - Metin2 Trading - 0 Replies
Suche ein Buff sollte lvl 35 sein Krit Segen M haben Gebe S15 Buff lvl 43 K Segen m2 24,9% und krit m1 24,4% Reflekt 3 7,6%
[B]Lv 34 Buff auf S9 Legroia [S]Buff auf Metin2.SG
04/04/2011 - Metin2 Trading - 2 Replies
Hey, wie der Titel bereits sagt biete ich meine Drachenschami Lv 34. Skills: HDD M1, Rest auf Segen. Sie hat Goldohrringe+6 und full Int. Bei Interesse hier in den Thread schreiben.
Kaufe Buff Shamane Metin2.us Free Kingdom [WTB] Buff Shaman Metin2.us Free Kingdom
02/23/2011 - Metin2 Trading - 0 Replies
Hello ;) I buy any buff shaman in metin2.us free kindom but it should be having g - p buffs ( enchant and shield) thanks ;) Ich kauf ne buffi auf metin2.us free kingdom, sie sollte p - g haben ( also hdd und segen) danke ;) Paying with paysafecard! Zahle mit Paysafecard!
[TUTORIAL] Starter friendly tutorial to searching for Nuke casting time [TUTORIAL]
02/09/2011 - 9Dragons - 12 Replies
If you already have Cheat Engine and know how to use it, skip to part 4 of the tutorial. 1. Introduction This forum has helped me quite a bit, so I decided to give something back :) Now I've noticed there are quite a few who ask for nuke casting time hacks / address', and I've also noticed, that there are quite a few who are REALLY annoyed with these questions, so I decided to write this so both sides can benefit from it. 2. Getting started First off, you need to have Cheat Engine...



All times are GMT +1. The time now is 17:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.