Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 15:36

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


[QUESTION]Level reset

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2013
Posts: 37
Received Thanks: 2
[QUESTION]Level reset

Hi all,

Will somebody help me with one idea?
I want to have 1 item that will reset level:
1. Player have to be level 99.
2. Use item and it will reset his level to 1 and give him +1 Hero level + some golds...


Is it possible?
How to do it on my P-server please?

Thanks for every help!
Raimen.



TheRaimenLP is offline  
Old 01/16/2018, 12:27   #2
 
elite*gold: 0
Join Date: Aug 2010
Posts: 28
Received Thanks: 0
Maybe get own ideas. It's stolen from Elitenos. But it's very simple and if u can't do this alone you should stop thinking about hosting a server


McDetLeF is offline  
Old 01/16/2018, 12:52   #3
 
elite*gold: 0
Join Date: Dec 2017
Posts: 27
Received Thanks: 0
I can only say:
Opennos.GameObject -> Item -> SpecialItem
then simple edit in database.

if you don't know how to do this...just stop creating server
*Kyosha* is offline  
Old 01/16/2018, 13:04   #4
 
elite*gold: 0
Join Date: Dec 2013
Posts: 37
Received Thanks: 2
Thank you for your help! :-)


TheRaimenLP is offline  
Old 01/16/2018, 13:05   #5
 
elite*gold: 0
Join Date: Feb 2013
Posts: 53
Received Thanks: 0
Quote:
Originally Posted by McDetLeF View Post
Maybe get own ideas. It's stolen from Elitenos. But it's very simple and if u can't do this alone you should stop thinking about hosting a server
Hmm How long this idea on Elitenos? I have this idea 4 month back. When did I start actively doing on my server.
Goblousek is offline  
Old 01/16/2018, 13:14   #6
 
elite*gold: 0
Join Date: Dec 2013
Posts: 37
Received Thanks: 2
Ok i find it in SpecialItem.cs but i dont know if i can do it because maybe i dont know how to write code
that when somebody get level 99 and click on some item
it will change his level to 1 and add +1 level to Hero Lvl

Can somebody help me with code please?
TheRaimenLP is offline  
Old 01/16/2018, 14:17   #7
 
elite*gold: 0
Join Date: Dec 2017
Posts: 27
Received Thanks: 0
Quote:
Originally Posted by TheRaimenLP View Post
Ok i find it in SpecialItem.cs but i dont know if i can do it because maybe i dont know how to write code
that when somebody get level 99 and click on some item
it will change his level to 1 and add +1 level to Hero Lvl

Can somebody help me with code please?
If you don't know how to write really simple function just leave your project. Is it simple?

I would recommend c# in the nutshell. It will learn you how to code
*Kyosha* is offline  
Old 01/16/2018, 14:30   #8
 
elite*gold: 0
Join Date: Sep 2016
Posts: 21
Received Thanks: 10
Talking

OpenNos.GameObject - SpecialItem.cs

Create a new case

example

case 9000:

insert the code in the case

case 9000:
session.Character.Level = 1;
session.Character.HeroLevel = 1;

add a break comment

case 9000:
session.Character.Level = 1;
session.Character.HeroLevel = 1;
break;


You can also add a Notice, to know what u just did

//Reset Item
case 9000:
session.Character.Level = 1;
session.Character.HeroLevel = 1;
break;

You can maybe add a message, that {player_name} used the item etc.

//Reset Item
case 9000:
session.Character.Level = 1;
session.Character.HeroLevel = 1;
session.SendPacket(UserInterfaceHelper.Instance.Ge nerateModal($"{session.Character.Name}, INSERT_MESSAGE_HERE", 1));
break;

then you need a item, wich u wanna use. For example a key (this will erase SpecialItem.cs and you need to add it at NoFunctionItem)

OpenNos.GameObject.NoFunctionItem.cs

parse the code

search for the item in the Database

and use the case id at Effect in the Database

ITEMID - EFFECT - EFFECT VALUE
1 9000 - You dont need that ^^

done. ^^


RualFX is offline  
Thanks
1 User
Reply



« Muschel Stats | [QUESTION] Rewards for Level UP »

Similar Threads
In der Z8games mall für crossfire gibt es 2 items '(K/D reset und W/L reset)
11/10/2012 - CrossFire - 13 Replies
was bringt das ?:confused:



All times are GMT +2. The time now is 15:36.


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.