Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 22:48

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

Advertisement



[Question] SkillCode and ItemCheck

Discussion on [Question] SkillCode and ItemCheck within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2017
Posts: 81
Received Thanks: 33
Talking [Question] SkillCode and ItemCheck

Hey folks,
normally im not the guy to ask for help. Usually i help others but now im stuck in a circle.

Since 3 Month now i try'na figure out how to implement a code into a Skill. For example: The Skill from the Berseker "Life and Death, Buff" is not working. I thought about implementing a code using a case (Which would be AddBuff(ID)) but i cannot find either the section or the right spot. So this would be my first question. Although knowing this is kinda good because u can modify skills with it, which i find really cool and intresting!

The other question is, how can i check if the Character has the ITEM XY with the AMOUNT XY? For example: Theres a Ice Flower Quest you can do every day, but you need to give at least 5 Ice Flowers. How can i do a check like that?
If Character has 5 Ice Flowers then give BONUS XY.

EDIT: The Quest itself works for me because i implemented a quest system myself but i need to add a check for that. (Doing this is easy and you can use the NRunHandler for it)

I really would appreciate logically and fluent answers, and hope to get some nice ones.

Greetings, ImTheReal!
ImTheReal is offline  
Old 08/01/2018, 09:40   #2
 
elite*gold: 0
Join Date: Oct 2010
Posts: 514
Received Thanks: 65
I don't know how opennos is structured since i never used it but you could iterate through item array and check if any of those items have a ice flower vnum if it has then check if amount is the same.
szymek111 is offline  
Old 08/01/2018, 10:28   #3

 
Blowa's Avatar
 
elite*gold: 98
Join Date: Jan 2010
Posts: 631
Received Thanks: 1,726
Quote:
Originally Posted by ImTheReal View Post
Hey folks,
normally im not the guy to ask for help. Usually i help others but now im stuck in a circle.

Since 3 Month now i try'na figure out how to implement a code into a Skill. For example: The Skill from the Berseker "Life and Death, Buff" is not working. I thought about implementing a code using a case (Which would be AddBuff(ID)) but i cannot find either the section or the right spot. So this would be my first question. Although knowing this is kinda good because u can modify skills with it, which i find really cool and intresting!

The other question is, how can i check if the Character has the ITEM XY with the AMOUNT XY? For example: Theres a Ice Flower Quest you can do every day, but you need to give at least 5 Ice Flowers. How can i do a check like that?
If Character has 5 Ice Flowers then give BONUS XY.

EDIT: The Quest itself works for me because i implemented a quest system myself but i need to add a check for that. (Doing this is easy and you can use the NRunHandler for it)

I really would appreciate logically and fluent answers, and hope to get some nice ones.

Greetings, ImTheReal!
The solution : Learn how to program.



Funny part, you said you "implemented a quest system yourself" but you are not able to simply check into a Container of ItemInstances ? cmon


Code:
if (myItemInstancesContainer.Count(s => s.Vnum == floweritemvnum) < 5)
{
   // error not enough flowers
   return;
}
Blowa is offline  
Thanks
2 Users
Old 08/01/2018, 14:20   #4
 
elite*gold: 0
Join Date: Nov 2017
Posts: 81
Received Thanks: 33
Quote:
Originally Posted by val77 View Post
The solution : Learn how to program.



Funny part, you said you "implemented a quest system yourself" but you are not able to simply check into a Container of ItemInstances ? cmon


Code:
if (myItemInstancesContainer.Count(s => s.Vnum == floweritemvnum) < 5)
{
   // error not enough flowers
   return;
}
Thank you for your answer! Ye, i know how to code but i didnt figure that out yet.
ImTheReal is offline  
Old 08/01/2018, 19:39   #5
 
elite*gold: 0
Join Date: Nov 2017
Posts: 81
Received Thanks: 33
Talking

The Question about the ItemCheck has been answered by @

The question how to implement a code inside a skill (Via case or something i really dunno) is still opened
ImTheReal is offline  
Old 08/01/2018, 19:49   #6

 
Blowa's Avatar
 
elite*gold: 98
Join Date: Jan 2010
Posts: 631
Received Thanks: 1,726
Quote:
Originally Posted by ImTheReal View Post
The Question about the ItemCheck has been answered by @

The question how to implement a code inside a skill (Via case or something i really dunno) is still opened
BCards
Blowa is offline  
Thanks
1 User
Old 08/01/2018, 20:32   #7
 
Zanouu's Avatar
 
elite*gold: 0
Join Date: Feb 2018
Posts: 138
Received Thanks: 112
Life and death does not have Bcards ,
but you can added buff in BattleHandler

Code:
                            if (ski.Skill.SkillVNum == 909)
                            {
                                // ur code
                            }
Ski = CharacterSkill = xxxx ;
Or directly in your Database

Subtype = 1
Type = 25
FirsData = YourProbality
SecondData = YourBuffVnum
SkillVnum = YourSKill

Etc Etc .

You have Write , '' i know how to code "

But you dont know added one " if statement " ?
Zanouu is offline  
Thanks
1 User
Old 08/02/2018, 00:54   #8
 
elite*gold: 0
Join Date: Nov 2017
Posts: 81
Received Thanks: 33
Quote:
Originally Posted by Zanouu View Post
Life and death does not have Bcards ,
but you can added buff in BattleHandler

Code:
                            if (ski.Skill.SkillVNum == 909)
                            {
                                // ur code
                            }
Ski = CharacterSkill = xxxx ;
Or directly in your Database

Subtype = 1
Type = 25
FirsData = YourProbality
SecondData = YourBuffVnum
SkillVnum = YourSKill

Etc Etc .

You have Write , '' i know how to code "

But you dont know added one " if statement " ?
First of all: thanks alot m8 but why are u that unfriendly? I just wanted to know one thing. Calm tf down
ImTheReal is offline  
Reply


Similar Threads Similar Threads
[Question/Need] Need ItemLock.cs fixed and the question
02/07/2010 - CO2 Private Server - 4 Replies
Question : i got ricardo 5165 source i put OldCODB in C:/ i did config.ini so.. i enter in ricardo update /bin/debug/NewestCOServer.exe so it dont start i mean the cmd window appear and close with no exception or something.. can some1 help me ? Need: ItemLock.cs can some1 post it ? pls :mofo:
skillcode prob
10/03/2009 - Metin2 Private Server - 0 Replies
hi leute hab mir heute nen ninja gemacht is lvl99 alle befehle gehen nur die skillcodes net kann mir wer sagen wieso ich tipp die korrekt ein aber er sagt nichts und es wird auch nix verstellt kann mir einer sagen why ?



All times are GMT +2. The time now is 22:48.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.