Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 03:56

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

Advertisement



[RELEASE]Message above MapNpc

Discussion on [RELEASE]Message above MapNpc within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
NosRaible's Avatar
 
elite*gold: 0
Join Date: Jun 2018
Posts: 121
Received Thanks: 42
Arrow [RELEASE]Message above MapNpc

Hello everyone. I saw someone was looking for this on forum. Here you go





First Step Go to the GameObject ---> MapNpc

Add this



And add this

NosRaible is offline  
Thanks
1 User
Old 11/19/2019, 21:48   #2
 
XV50's Avatar
 
elite*gold: 0
Join Date: Sep 2019
Posts: 383
Received Thanks: 171
should've been done using Database Implementation cuz this is just sending straight packets, so if you add 1000x Npcs like OTHER SERVERS, you are ****** if anyone can talk and u dont have a 200€ p/m Server.
XV50 is offline  
Old 11/19/2019, 22:22   #3
 
XV50's Avatar
 
elite*gold: 0
Join Date: Sep 2019
Posts: 383
Received Thanks: 171
Why would u have to add the Messages as Method to the init? Because it's not loaded separately.

Code:
public void Initialize(MapInstance currentMapInstance)
        {
            MapInstance = currentMapInstance; <---
            Initialize(); <---
            Messages(); // ??
        }
oh and actually. Your Method won't work as it's supposed to do.

Code:
private void Messages()
        {
            Observable.Interval(TimeSpan.FromSeconds(5)).Subscribe(onNext: s =>
            {

                if (MapNpcId == 20003)
                {
                    MapInstance.Broadcast($"say 2 {MapNpcId} 0 ");
                    //This won't be spammed every 5 seconds. It will be spammed the whole time so the packet won't stop.
                }
            });
        }
Well, your code isn't bad. Well not that bad. But still it's no method to prefer. U should also don't check with if on MapNpcId == . Just add a simple if to ask for db-content. Example method is to add a second method on sending the packet, and give the MapNpc.cs only the task to send the message.

1. Task > SendPacket + Delay
2. Task > LoadByDb

just 2 rows in the MapNpc DB [NpcSay NpcSayDelay]
XV50 is offline  
Thanks
1 User
Old 11/19/2019, 22:30   #4
 
erixor's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 409
Received Thanks: 1,067
Quote:
Originally Posted by XV50 View Post
Why would u have to add the Messages as Method to the init? Because it's not loaded separately.

Code:
public void Initialize(MapInstance currentMapInstance)
        {
            MapInstance = currentMapInstance; <---
            Initialize(); <---
            Messages(); // ??
        }
oh and actually. Your Method won't work as it's supposed to do.

Code:
private void Messages()
        {
            Observable.Interval(TimeSpan.FromSeconds(5)).Subscribe(onNext: s =>
            {

                if (MapNpcId == 20003)
                {
                    MapInstance.Broadcast($"say 2 {MapNpcId} 0 ");
                    //This won't be spammed every 5 seconds. It will be spammed the whole time so the packet won't stop.
                }
            });
        }
Well, your code isn't bad. Well not that bad. But still it's no method to prefer. U should also don't check with if on MapNpcId == . Just add a simple if to ask for db-content. Example method is to add a second method on sending the packet, and give the MapNpc.cs only the task to send the message.

1. Task > SendPacket + Delay
2. Task > LoadByDb

just 2 rows in the MapNpc DB [NpcSay NpcSayDelay]
You shouldn't call the db at runtime for this kind of operation either. The MapNpc GameObject inherits from the MapNpcDTO, which means if you map it properly, you don't have to call your database
erixor is offline  
Old 11/19/2019, 22:33   #5
 
XV50's Avatar
 
elite*gold: 0
Join Date: Sep 2019
Posts: 383
Received Thanks: 171
Quote:
Originally Posted by erixor View Post
You shouldn't call the db at runtime for this kind of operation either. The MapNpc GameObject inherits from the MapNpcDTO, which means if you map it properly, you don't have to call your database
It was an example.
But yeah, you are right. But if i'd explain the way u said, he would absolutely understand NOTHING.

Greetings
XV50 is offline  
Old 11/20/2019, 18:05   #6



 
IceTrailer's Avatar
 
elite*gold: 150
Join Date: Sep 2010
Posts: 2,070
Received Thanks: 821
Wow. 85 % spam.
I can repeat for some of you who read this:
Please follow the board rules.
IceTrailer is offline  
Reply


Similar Threads Similar Threads
Composing Message Above 50*
09/18/2013 - EO PServer Hosting - 4 Replies
Ok so you know that message that comes up when you compose a pet over 50*? "Such and such and upgraded the quality of their pet to 123*" <-- That guy lol where on earth do i change it? -.-
B> Nin 130(or above)-war 130 (or above)- fire 130 (or above) (Server: leo)
12/27/2009 - Conquer Online 2 Trading - 0 Replies
I'm looking for a nin-war-fire (full 130 or above) with +8 (or above) 2socket and blessed on the server leo! price: we gotta talk about that ;-)
Above Orgrimmar
09/24/2006 - WoW Exploits, Hacks, Tools & Macros - 1 Replies
hatte es schon im media guide gepostet, dachte mir aber irgendwie das es da untergeht, dabei ist es ein verdammt schicker exploit :D der schwierigkeitsgrad ist ganz ok und die aussicht über azshara einzigartig ;) ausserdem ist es der einzige, mir bisher bekannte weg wieder oberhalb von og rumzulaufen, seit sie den standart weg in 1.11 gefixt haben new way above OG von dem punkt aus in dem er in dem video zuletzt steht kann man bequem in die arena springen, sehr geil :D
AH Trick & Above Ogrimmar (-Video-)
04/18/2006 - WoW Exploits, Hacks, Tools & Macros - 16 Replies
German: Ich weiss, es ist absolut veraltet und "fast" jeder kennt es. Es gibt jedoch einige die davon gehört haben und nicht wissen wie es wirklich funktioniert. Die Neugier allerdings ist stärker darum habe ich hier ein kleines Video erstellt was von zwei kleinen aber immer wieder sehenswerten Tricks handelt. Eigentlich wollte ich noch einen weiteren Trick hinzufügen jedoch hat das nicht so geklappt wie ich mir das vorgestellt habe. Vielleicht hauts ja noch hin. Dann werde ich es auch gerne...
Above and beyond Orgrimmar
03/06/2006 - WoW Exploits, Hacks, Tools & Macros - 1 Replies
I am sure everyone knows how to get ontop of orgrimmar using the passage west of the gates. To walk up and get literally ontop of the gates. But once you get there if you go West just a tad bit you will see a tree very high up. North of the Tree is just a vast of nothingness and if you jump into it you will land in orgrimmar. But (works great for hunters) if you fall in a specific spot you will not fall, but land on the sides of orgrimmar. If you are a hunter you can Use eyes of the beat and...



All times are GMT +1. The time now is 03:56.


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.