Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 06:35

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

Advertisement



NPC packet

Discussion on NPC packet within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2010
Posts: 514
Received Thanks: 65
NPC packet

Hello guys . I have one question . Does someone know packet for spawning npc ? Or do i need to spawn them in any other way ?
szymek111 is offline  
Old 03/22/2014, 19:03   #2
 
elite*gold: 5
Join Date: Dec 2013
Posts: 683
Received Thanks: 56
mh
Login on Official Nostale(with packetlogger) and you have the packets
Guiso90 is offline  
Thanks
1 User
Old 03/22/2014, 19:25   #3
 
elite*gold: 43
Join Date: Oct 2013
Posts: 281
Received Thanks: 92
in 2 310 5118597 79 5 5 50 50 0 0 0 -1 1 0 -1 - 0 -1 0 0 0 0 0 0 0 0

This is the packet

vnum

coordinates


direction

Hp

falling from sky 1 = no 2 = yes
Paint3r is offline  
Thanks
2 Users
Old 03/22/2014, 19:38   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 514
Received Thanks: 65
And what is this ? 5118597
szymek111 is offline  
Old 03/22/2014, 19:45   #5
 
elite*gold: 43
Join Date: Oct 2013
Posts: 281
Received Thanks: 92
Quote:
Originally Posted by szymek111 View Post
And what is this ? 5118597
The id if u spawn 5118597 and u want a second npc then use 5118598 and forward this
Paint3r is offline  
Thanks
1 User
Old 03/23/2014, 13:12   #6
 
elite*gold: 0
Join Date: Oct 2010
Posts: 514
Received Thanks: 65
I dont know what's wrong in this code . It's like mob spawn in nosfun files .

Code:
int spawnnpc(SOCKET *accetta, std::string n_npc, std::string hp, int client, int numeronemici){
	numeronemici += 1;
	npcstruct[numeronemici].x_npc = pstruct[client].x, npcstruct[numeronemici].y_npc = pstruct[client].y, npcstruct[numeronemici].ingame = true, npcstruct[numeronemici].hp_npc = hp, npcstruct[numeronemici].id_npc = intostr(numeronemici + 1500), npcstruct[numeronemici].n_npc = n_npc, npcstruct[numeronemici].maxhp_npc = hp, npcstruct[numeronemici].map_npc = pstruct[client].map;
	std::string spawnnpc = EncryptGamePacket("in 2" + npcstruct[numeronemici].n_npc + " " + npcstruct[numeronemici].id_npc + " " + npcstruct[numeronemici].x_npc + " " + npcstruct[numeronemici].y_npc + " 5 " + npcstruct[numeronemici].hp_npc + " 50 0 0 0 -1 1 0 -1 - 0 -1 0 0 0 0 0 0 0 0");
	for (int i = 0; i <= utenti; i++) if (npcstruct[numeronemici].map_npc == pstruct[i].map) send(accetta[i], spawnnpc.c_str(), spawnnpc.size(), 0);
	std::cout << numeronemici << std::endl;
	std::cout << npcstruct[numeronemici].id_npc << std::endl;
	return numeronemici;
}
szymek111 is offline  
Old 03/24/2014, 02:04   #7
 
elite*gold: 0
Join Date: Dec 2011
Posts: 367
Received Thanks: 199
Quote:
Originally Posted by Paint3r View Post
in 2 310 5118597 79 5 5 50 50 0 0 0 -1 1 0 -1 - 0 -1 0 0 0 0 0 0 0 0

This is the packet

vnum

coordinates


direction

Hp

falling from sky 1 = no 2 = yes
There is also another packet first of it, shop and something if i remember ^^
Kingrap is offline  
Old 04/02/2014, 16:46   #8
 
elite*gold: 43
Join Date: Oct 2013
Posts: 281
Received Thanks: 92
Quote:
Originally Posted by Kingrap View Post
There is also another packet first of it, shop and something if i remember ^^
Nah shop is a new packet

shop 2 8737 1 0 45 NosBasar
Paint3r is offline  
Reply




All times are GMT +1. The time now is 06:37.


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.