|
You last visited: Today at 11:46
Advertisement
WinArena in NosTayle Emu (GIFT)
Discussion on WinArena in NosTayle Emu (GIFT) within the Nostale forum part of the MMORPGs category.
11/28/2016, 18:22
|
#1
|
elite*gold: 0
Join Date: Jul 2016
Posts: 66
Received Thanks: 9
|
WinArena in NosTayle Emu (GIFT)
The WinArena is already added, so i did a command where you can use it ^^
(Works in any NosTayle emulator)
Quote:
case X: //Winarena by HarD
if (sender.isGm)
{
if (!sender.winArena)
{
sender.winArena = true;
sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 12, GameServer.GetLanguage(sender.languagePack, "arenawinmode.activate")));
}
else
{
sender.winArena = false;
sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 11, GameServer.GetLanguage(sender.languagePack, "arenawinmode.disabled")));
}
sender.map.SendMap(sender.GmPacket());
}
break;
|
Just copy/paste and add in your list commands, Must Be Game Master to use it, you can change
|
|
|
11/28/2016, 19:12
|
#2
|
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,019
|
this should work too
Quote:
if (sender.isGm)
{
sender.winArena =!sender.winArena
sender.SendPacket(GlobalMessage.MakeMessage(0, 0, 11+!sender.winArena?1:0, GameServer.GetLanguage(sender.languagePack, !sender.winArena?"arenawinmode.disabled":"arenawin mode.activate")));
sender.map.SendMap(sender.GmPacket());
}
|
|
|
|
11/29/2016, 01:44
|
#3
|
elite*gold: 0
Join Date: Dec 2012
Posts: 2,728
Received Thanks: 934
|
You've to reload the c_info paket, otherwise it'll only appear optical after the next map change.
Should be sender.SendCharacterInfo();
or just teleport the sender to his position (mapreload)
EXAMPLE (just used the ****** teleport version)
Code:
if (values.Length == 1 && sender.isGm)
{
Player player = GameServer.GetPlayersManager().GetPlayerByName(values[0]);
if (!player.winArena)
{
player.winArena = true;
player.SendPacket(GlobalMessage.MakeMessage(0, 0, 12, GameServer.GetLanguage(sender.languagePack, "arenawinmode.activate")));
}
else
{
player.winArena = false;
player.SendPacket(GlobalMessage.MakeMessage(0, 0, 11, GameServer.GetLanguage(sender.languagePack, "arenawinmode.disabled")));
}
player.map.SendMap(player.GmPacket());
player.map.ChangeMapRequest(player, player.map, player.x, player.y);
}
break;
|
|
|
|
Similar Threads
|
[NosTayle] I help
08/27/2016 - Nostale - 7 Replies
NOT FREE
NOT FREE
Hi, i want some € so I write this post with this offer:
I can help you with your NosTayle server, i can put raids, sp skills, and something which is in your brain. MP me to info,
NOT FREE
NOT FREE
NOT FREE
NOT FREE
|
Help nostayle
08/11/2016 - Nostale - 0 Replies
Somebody help me put a few items in nostayle emulator? I have some doubts
To talk to me send a private message
Sorry my english.
|
Help me nostayle
08/02/2016 - Nostale - 11 Replies
Hi I have the game server of nostayle and db , but not a launcher will be created to play, someone could help me put it on ? :S
|
NOSTAYLE
07/03/2016 - Nostale - 23 Replies
Can someone help with a table db in nostayle? or functionality for additem? gold and drop monsters? thx for your time
|
Nostayle
06/25/2016 - Nostale - 8 Replies
Hello guys, Can someone to help me some tip or something? i have the nostayle source and if someone want to help me? with my problem please -.- if you can give me a tip or tell me your skype and help me with drop in monsters dont working and gold -.- will be very nice everyone can comment anything
|
All times are GMT +2. The time now is 11:46.
|
|