Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 1.37 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*
  2. Merlin port, Sign here, to grand acces: LOL  *bloodyslave/Kinot/Sparta/hoiril*
  3. */
  4.  
  5. using DOL;
  6. using DOL.GS;
  7. using DOL.Events;
  8. using DOL.AI.Brain;
  9. using DOL.Database;
  10. using DOL.GS.Spells;
  11. using DOL.GS.PacketHandler;
  12.  
  13. using System;
  14. using System.Collections.Generic;
  15.  
  16.  
  17. namespace DOL.GS.Scripts
  18.  
  19. {
  20.    public override pool ReceiveItem(GameLiving source, InventoryItem item)
  21.                 {
  22.                         GamePlayer player = source as GamePlayer;
  23.                         if(player == null || item == null) return false;
  24.                         if(WorldMgr.GetDistance(this,player) > WorldMgr.INTERACT_DISTANCE)
  25.                         {
  26.                                   // red text here = if you are to far away from the merchant to use
  27.                                 player.Out.SendMessage("You are too far away to give anything to " + GetName(0, false) + ".", eChatType.CT_System, eChatLoc.CL_SystemWindow);
  28.                                 return false;
  29.                         }
  30.  
  31.             if (item.Id_nb == "Merlin_Token")
  32.             { player.MoveTo(27, 356537, 350550, 5755, 1961);
  33. }
  34. {
  35.                 player.Out.SendMessage("Thanks! Enjoy your reward...", eChatType.CT_System, eChatLoc.CL_SystemWindow);
  36.                 if (player.Level >= 49)
  37.             }
  38.  
  39.                         //string msg = "Join us in Teamspeak 3! IP = 176.9.234.115:9988 !";
  40.           //  player.Out.SendMessage(msg, eChatType.CT_Important, eChatLoc.CL_ChatWindow);
  41.           //  player.Out.SendMessage(ver, eChatType.CT_Important, eChatLoc.CL_ChatWindow);