
Untitled
By: a guest on
Jun 21st, 2012 | syntax:
None | size: 1.37 KB | hits: 12 | expires: Never
/*
Merlin port, Sign here, to grand acces: LOL *bloodyslave/Kinot/Sparta/hoiril*
*/
using DOL;
using DOL.GS;
using DOL.Events;
using DOL.AI.Brain;
using DOL.Database;
using DOL.GS.Spells;
using DOL.GS.PacketHandler;
using System;
using System.Collections.Generic;
namespace DOL.GS.Scripts
{
public override pool ReceiveItem(GameLiving source, InventoryItem item)
{
GamePlayer player = source as GamePlayer;
if(player == null || item == null) return false;
if(WorldMgr.GetDistance(this,player) > WorldMgr.INTERACT_DISTANCE)
{
// red text here = if you are to far away from the merchant to use
player.Out.SendMessage("You are too far away to give anything to " + GetName(0, false) + ".", eChatType.CT_System, eChatLoc.CL_SystemWindow);
return false;
}
if (item.Id_nb == "Merlin_Token")
{ player.MoveTo(27, 356537, 350550, 5755, 1961);
}
{
player.Out.SendMessage("Thanks! Enjoy your reward...", eChatType.CT_System, eChatLoc.CL_SystemWindow);
if (player.Level >= 49)
}
//string msg = "Join us in Teamspeak 3! IP = 176.9.234.115:9988 !";
// player.Out.SendMessage(msg, eChatType.CT_Important, eChatLoc.CL_ChatWindow);
// player.Out.SendMessage(ver, eChatType.CT_Important, eChatLoc.CL_ChatWindow);