Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 18:42

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

Advertisement



$position command in NosTayle Emulator

Discussion on $position command in NosTayle Emulator within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2016
Posts: 66
Received Thanks: 9
Thumbs up $position command in NosTayle Emulator

Easy command to know the position of any player of the server just put
$(command) (NICK)

Quote:
case X: //Pos command By HarD
{
try
{
if (sender.isGm)
{
Player player = GameServer.GetPlayersManager().GetPlayerByName(val ues[0]);
string message;
message = ("Map: " + player.map.mapId + " X: " + player.x.ToString() + " Y: " + player.y.ToString());
sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
}
}
catch { }
}
break;
HarD_GZ is offline  
Old 11/29/2016, 16:43   #2


 
Liihes's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 2,728
Received Thanks: 934
A better & fancier way, including
  • Accountname
  • Ip
  • Level
  • Gold
  • Connected at (Timestamp)
  • Map, X, Y
  • Channel

Code:
	case n:
    {
		try
        {
			if (sender.GetSession().GetAccount().isGm && values.Length == 1)
			{
				Player player = GameServer.GetPlayersManager().GetPlayerByName(values[0]);
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 10, "============================="));
				string message;
				message = ("Account name: " + player.GetSession().GetAccount().name + " Account ID: " + player.GetSession().GetAccount().id.ToString());
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
				message = ("IP: " + player.GetSession().GetAccount().ip.ToString());
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
				message = ("Level: " + player.level.ToString() + " JobLevel: " + player.jobLevel.ToString());
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
				message = ("Gold: " + player.gold.ToString());
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
				message = ("Connected At: " + player.connectedAt);
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
				message = ("Map: " + player.map.mapId + " X: " + player.x.ToString() + " Y: " + player.y.ToString());
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
				message = ("Channel: " + player.GetSession().GetChannel().id.ToString());
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 6, message));
				sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 10, "============================="));
			}
		}
		catch (Exception e)
                { Console.WriteLine("Error: " + e.Message }
	}
	break;
Liihes is offline  
Thanks
1 User
Old 11/29/2016, 17:48   #3

 
ゆうじ's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 2,766
Received Thanks: 1,776
If you plan on creating new threads for every single command, just make one for all commands, please.
ゆうじ is offline  
Thanks
3 Users
Old 11/29/2016, 18:08   #4
 
elite*gold: 0
Join Date: Jul 2016
Posts: 66
Received Thanks: 9
Quote:
Originally Posted by ゆうじ View Post
If you plan on creating new threads for every single command, just make one for all commands, please.
No, i will not open more threads about
HarD_GZ is offline  
Old 11/29/2016, 19:57   #5


 
Liihes's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 2,728
Received Thanks: 934
Ich erwarte dann "deinen" Release x)

Gesendet von meinem SM-G935F mit Tapatalk
Liihes is offline  
Reply


Similar Threads Similar Threads
[Selling] NosTayle Project / Emulator / CMS
02/17/2017 - Nostale Trading - 4 Replies
The old project: http://www.elitepvpers.com/forum/nostale/4014595- pserver-nostayle-all-informations.html I can sell this project to 1 people. Price of nostayle project: -Game Server without source : €30 -Game Server with source : €50 -Website (use the framework laravel) with multi language support : €15 -Login Server (but not stable) : with all game server.
[EMULATOR]NosTayle - Updated - Under License
06/25/2016 - Nostale - 25 Replies
http://www.zupimages.net/up/14/26/55ui.png NosTayle Emulator it's my project and one person shared my source, it's not really a problem, with my source you can see the server is stable but maybe you can't or you have not the time for develop nostayle. It's not a problem too. The nostayle emulator under license is: My Emulator *-* + this skills: Raid -> OK Talent arena -> Soon Instant battle -> Soon Quest -> Soon



All times are GMT +1. The time now is 18:46.


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.