Register for your free account! | Forgot your password?

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

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

Advertisement



OpenNos Case Problem.

Discussion on OpenNos Case Problem. within the Nostale forum part of the MMORPGs category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2013
Posts: 39
Received Thanks: 0
OpenNos Case Problem.

I have this Problem :


case 30014:
if (npc != null)

This is the case. Actually, i don't wanna show the code. It's for an NPC that gives an Random Item. (not my source, so i will not shown anything i don't own)

Now i have the Problem, i cannot make the NPC give me that item.

I did put "30014" into Dialog, into Effect, and made a Shop. Nothing works. Can someone explain me how this works?

Thank you haha
oBook is offline  
Old 09/04/2020, 01:23   #2
 
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
If you want to make a pnj work in relation to the id that you put I suggest you put it in n_run 3000 which is dialog 18

Code:
case 3000:
                    switch (packet.Type)
                    {
                        case 0:
                            switch (packet.Value)
                            {
                                    case 2:
                                    switch (packet.NpcId)
                                    {//dialog 18
                                            case 30014:
                                            if (packet.Type >= 0 && Session.Character.Gold >= 500000 * (1 + packet.Type)) 
                                            {
                                                Session.Character.Gold -= 500000 * (1 + packet.Type);
                                                Session.SendPacket(Session.Character.GenerateGold());
                                                int Random = ServerManager.RandomNumber(0, 100);
                                                int rnd = ServerManager.RandomNumber(0, 1000);
                                                if (rnd < 970)
                                                {
                                                    if (Random < 60)
                                                    {
                                                        short[] vnums =
                                                        {

                                                                   1332, 1332, 1333, 1334, 1335, 1336, 1337, 1338, 1339

                                                        };
                                                        byte[] counts =
                                                        {
                                                                    5, 5, 5, 5, 5, 5, 5, 5, 5
                                                        };
                                                        int item = ServerManager.RandomNumber(0, 8);
                                                        Session.Character.GiftAdd(vnums[item], counts[item]);
                                                    }
                                                    else
                                                    {
                                                        short[] vnums =
                                                        {
                                                                    1249, 1286, 1904, 1244, 1218
                                                        };
                                                        byte[] counts =
                                                        {
                                                                    3, 1, 1, 20, 3
                                                        };
                                                        int item = ServerManager.RandomNumber(0, 4);
                                                        Session.Character.GiftAdd(vnums[item], counts[item]);
                                                    }

                                                }
                                                else
                                                {

                                                    short[] vnums =
                                                    {
                                                                 4464, 5432, 5431
                                                    };
                                                    byte[] counts =
                                                    {
                                                                 1, 1, 1
                                                    };
                                                    int item = ServerManager.RandomNumber(0, 2);
                                                    Session.Character.GiftAdd(vnums[item], counts[item]);
                                                    
                                               CommunicationServiceClient.Instance.SendMessageToCharacter(new SCSCharacterMessage
                                                    {
                                                        DestinationCharacterId = null,
                                                        SourceCharacterId = 0,
                                                        SourceWorldId = ServerManager.Instance.WorldId,
                                                        Message = $"Player {Session.Character.Name} Obtain Big Reward!",
                                                        Type = MessageType.Shout
                                                    });
                                                }
                                            }
                                            else
                                            {
                                                Session.SendPacket(Session.Character.GenerateSay(Language.Instance.GetMessageFromKey("NOT_ENOUGH_MONEY"), 10));
                                            }
                                            break;
                                    }
                            }
redbull2905 is offline  
Old 09/04/2020, 07:10   #3
 
elite*gold: 0
Join Date: Mar 2013
Posts: 39
Received Thanks: 0


Dialog 18 gives me "Get quest" and that's it. It's not working so far.

//EDIT

Okay, it's working i changed something

But there is still "Get quest" and not "Get Items" or whatever. Can you tell me how to change that aswell?
oBook is offline  
Old 09/04/2020, 08:28   #4
 
PenguinXD's Avatar
 
elite*gold: 0
Join Date: Oct 2018
Posts: 300
Received Thanks: 218
Quote:
Originally Posted by oBook View Post


Dialog 18 gives me "Get quest" and that's it. It's not working so far.

//EDIT

Okay, it's working i changed something

But there is still "Get quest" and not "Get Items" or whatever. Can you tell me how to change that aswell?
Instead of asking me cause i'm online ehh.

Simple : Clientmodding
PenguinXD is offline  
Old 09/04/2020, 11:58   #5
 
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
Quote:
Originally Posted by oBook View Post


Dialog 18 gives me "Get quest" and that's it. It's not working so far.

//EDIT

Okay, it's working i changed something

But there is still "Get quest" and not "Get Items" or whatever. Can you tell me how to change that aswell?
change Get quest -> Get Item in onex explorer. You open Nslangdata.NOS and you export _code_LANG_npctalk.txt
redbull2905 is offline  
Old 09/04/2020, 15:56   #6
 
XV50's Avatar
 
elite*gold: 100
Join Date: Sep 2019
Posts: 389
Received Thanks: 174
Quote:
Originally Posted by redbull2905 View Post
change Get quest -> Get Item in onex explorer. You open Nslangdata.NOS and you export _code_LANG_npctalk.txt
Yeah sure, a highly recommended example of modern solution.

DO NOT do this.
XV50 is offline  
Old 09/04/2020, 16:26   #7
 
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
Quote:
Originally Posted by XV50 View Post
Yeah sure, a highly recommended example of modern solution.

DO NOT do this.
suggest a solution i want to laugh a little
redbull2905 is offline  
Old 09/04/2020, 17:14   #8
 
Zanouu's Avatar
 
elite*gold: 50
Join Date: Feb 2018
Posts: 151
Received Thanks: 130
1 If ( packet.Type == 0 && packet.Value == 2 && packet.Npc == 30014 ) Instead your USELESS 3 SWITCH ?

your if (packet.Type >= 0 ) Is uselles => you'r checking the Type in the switch ( case 0: )

same here Session.Character.Gold -= 500000 * (1 + packet.Type);

Typical OpenNos tier's trash code
Zanouu is offline  
Thanks
2 Users
Old 09/04/2020, 20:02   #9
 
elite*gold: 0
Join Date: Mar 2013
Posts: 39
Received Thanks: 0
I mean, i'm pretty new into this so i used OpenNos. I used it before so yeah, i like that. It's fun to play via Hamachi with Friends. (The reason i wanted that)

And yeah, i have to ask my little helper to do this for me because i don't know what to Change lol

Quote:
Originally Posted by Zanouu View Post
1 If ( packet.Type == 0 && packet.Value == 2 && packet.Npc == 30014 ) Instead your USELESS 3 SWITCH ?

your if (packet.Type >= 0 ) Is uselles => you'r checking the Type in the switch ( case 0: )

same here Session.Character.Gold -= 500000 * (1 + packet.Type);

Typical OpenNos tier's trash code
Okay, i made it

Code:
case 3005:
                    if (packet.Type == 0 && packet.Value == 2 && packet.NpcId == 30014);
Now it doesn't give me the Item. Before it was fine.
Attached Images
File Type: png Unbenannt.png (1.9 KB, 16 views)
oBook is offline  
Old 09/06/2020, 12:37   #10
 
PenguinXD's Avatar
 
elite*gold: 0
Join Date: Oct 2018
Posts: 300
Received Thanks: 218
Quote:
Originally Posted by redbull2905 View Post
As if you were a developer don't make me laugh you are a random that comes out of nowhere. You don't know more than another. Modding has nothing to do with development Except in some cases like this where you just have to add the nrun but that's it, you are stupid you are a kikoo and you don't have to be a developer to put a nrun. Which proves that you don't know anything about it.
I don't even know why I'm answering you. You're a 15 year old kid.
You talk about development when all your functionalities come from zanou
Unlike you, I admit that there are things that I do not master in development. I don't know everything to show that I am the "strongest". I am not a developer and neither are you. But you insist on showing that you are, except that no one takes you seriously. You're a desperate **** noswings that's probably still a virgin. Your ego prevents you from seeing that you are just a jester.

Noswings **** and it will stay that way.

Please u should be as well quiet. "Speak about virginity but yeah.." What a useless **** going on real life.

You are the most trashtalker here..
PenguinXD is offline  
Old 09/06/2020, 12:43   #11
 
elite*gold: 0
Join Date: Jul 2017
Posts: 397
Received Thanks: 60
Yes I'm a trashtalker against people like that it's normal
redbull2905 is offline  
Old 09/06/2020, 20:11   #12
 
Vain#8420's Avatar
 
elite*gold: 0
Join Date: Aug 2020
Posts: 17
Received Thanks: 15
Bla bla bla...

You guys forgotten he just asked gently how to do X functionality, he's trying to run NosTale in localhost and the poor guy didn't want to bother PenguinXD, as a result he just get lynched, this thread isn't for blaming to each other.

If you just can't give him a real solution just dont write here as an 13 years old kid "Ninini, u trash, u never dev noob, learn ("CHashtag") bla bla bla"

Peace.
Vain#8420 is offline  
Thanks
2 Users
Old 09/06/2020, 21:49   #13
 
elite*gold: 0
Join Date: Mar 2013
Posts: 39
Received Thanks: 0
PenguinXD already explained that to me and we found a solution for this so.. Yeah, can i get a #closerequest ?
oBook is offline  
Old 09/08/2020, 00:03   #14
 
XV50's Avatar
 
elite*gold: 100
Join Date: Sep 2019
Posts: 389
Received Thanks: 174
Quote:
Originally Posted by redbull2905 View Post
As if you were a developer don't make me laugh you are a random that comes out of nowhere. You don't know more than another. Modding has nothing to do with development Except in some cases like this where you just have to add the nrun but that's it, you are stupid you are a kikoo and you don't have to be a developer to put a nrun. Which proves that you don't know anything about it.
I don't even know why I'm answering you. You're a 15 year old kid.
You talk about development when all your functionalities come from zanou
Unlike you, I admit that there are things that I do not master in development. I don't know everything to show that I am the "strongest". I am not a developer and neither are you. But you insist on showing that you are, except that no one takes you seriously. You're a desperate **** noswings that's probably still a virgin. Your ego prevents you from seeing that you are just a jester.

Noswings **** and it will stay that way.
And now everything without Google Translator XD

Well, i AM a Developer. There's no need to proof. Thing is, you claim yourself to be a Developer in private, but in public you are telling people you aint a Dev? Bro, how pathetic and weird is that.

NosWings is the only Server at the moment, who could or i'd rather say will be the same like official. Their team is mixed with the best Devs in this Scene. And compared to them, you are not even dirt under their shoes. Stop hating them just cuz you got trolled and banned for a very given reason.

Greetings,
the Virgin.
XV50 is offline  
Old 09/10/2020, 15:10   #15



 
IceTrailer's Avatar
 
elite*gold: 150
Join Date: Sep 2010
Posts: 2,070
Received Thanks: 821
Learn the board rules or stay away.
/c
IceTrailer is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
OpenNos "The project 'OpenNos.Login' failed to build."
06/19/2019 - Nostale - 11 Replies
Hello! When I put in update-database in Visual Studio I get the 'The project 'OpenNos.Login' failed to build.' error. I already did what was on the troubleshoot before I put it in. I've been at this for hours and I can't figure it out. Can someone help me please?
[OpenNos] The project 'OpenNos.Login' failed to build.
04/09/2019 - Nostale - 5 Replies
Can someone please help me with this? I do everything in the guide but when I put update-database tells me that, I tried everything I saw in the forum to do and nothing works for me.
[OpenNos] ¿How to select the project OpenNos.DAL.EF?
05/04/2018 - Nostale - 4 Replies
Hello, I have a problem with my visual studio 2017, it turns out that to be able to give the update-database command I must have the project OpenNos.DAL.EF But the thing is that in my visual studio there is no option to select the project ... I need help!:D:D
[opennos]The project 'OpenNos.Login' failed to build.
08/03/2017 - Nostale - 9 Replies
Hello I have a problem with the package manager console to run the update- database command to opennos soon as I executes the command, he said: The project ' opennos.login ' failed to build What to do? I made the updates to Microsoft Visual Studio thank you ..
buy aka case hardend knife case hardend and five seven case hardend
06/21/2015 - Counter-Strike Trading - 2 Replies
buy aka case hardend knife case hardend and five seven case hardend offer paypal :) offer me pm or add in steam : Steam Community :: Se|DaN|uT



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


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