Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.40 KB | None | 0 0
  1. -- Players cannot throw items on teleports if set to true
  2. local blockTeleportTrashing = true
  3.  
  4. function Player:onBrowseField(position)
  5. return true
  6. end
  7.  
  8. function Player:onLook(thing, position, distance)
  9. local description = 'You see '
  10. if thing:isItem() then
  11. if thing.actionid == 5640 then
  12. description = description .. 'a honeyflower patch.'
  13. elseif thing.actionid == 5641 then
  14. description = description .. 'a banana palm.'
  15. else
  16. description = description .. thing:getDescription(distance)
  17. end
  18. else
  19. description = description .. thing:getDescription(distance)
  20. end
  21.  
  22.  
  23.  
  24. -- KD look
  25. if thing:isCreature() and thing:isPlayer() then
  26. description = string.format("%s\n [PVP Kills: %d] \n [PVP Deaths: %d] \n",
  27. description, math.max(0, thing:getStorageValue(167912)), math.max(0, thing:getStorageValue(167913)))
  28. end
  29.  
  30. -- MARRY
  31. if LOOK_MARRIAGE_DESCR and thing:isCreature() then
  32. if thing:isPlayer() then
  33. description = description .. self:getMarriageDescription(thing)
  34. end
  35. end
  36.  
  37. if self:getGroup():getAccess() then
  38. if thing:isItem() then
  39. description = string.format('%s\nItem ID: %d', description, thing.itemid)
  40.  
  41. local actionId = thing.actionid
  42. if actionId ~= 0 then
  43. description = string.format('%s, Action ID: %d', description, actionId)
  44. end
  45.  
  46. local uniqueId = thing:getAttribute(ITEM_ATTRIBUTE_UNIQUEID)
  47. if uniqueId > 0 and uniqueId < 65536 then
  48. description = string.format('%s, Unique ID: %d', description, uniqueId)
  49. end
  50.  
  51. description = description .. '.'
  52. local itemType = thing:getType()
  53.  
  54. local transformEquipId = itemType:getTransformEquipId()
  55. local transformDeEquipId = itemType:getTransformDeEquipId()
  56. if transformEquipId ~= 0 then
  57. description = string.format('%s\nTransforms to: %d (onEquip)', description, transformEquipId)
  58. elseif transformDeEquipId ~= 0 then
  59. description = string.format('%s\nTransforms to: %d (onDeEquip)', description, transformDeEquipId)
  60. end
  61.  
  62. local decayId = itemType:getDecayId()
  63. if decayId ~= -1 then
  64. description = string.format('%s\nDecays to: %d', description, decayId)
  65. end
  66. elseif thing:isCreature() then
  67. local str = '%s\nHealth: %d / %d'
  68. if thing:getMaxMana() > 0 then
  69. str = string.format('%s, Mana: %d / %d', str, thing:getMana(), thing:getMaxMana())
  70. end
  71. description = string.format(str, description, thing:getHealth(), thing:getMaxHealth()) .. '.'
  72. end
  73.  
  74. local position = thing:getPosition()
  75. description = string.format(
  76. '%s\nPosition: %d, %d, %d',
  77. description, position.x, position.y, position.z
  78. )
  79.  
  80. if thing:isCreature() and thing:isPlayer() then
  81. description = string.format('%s\nIP: %s.', description, Game.convertIpToString(thing:getIp()))
  82. end
  83. end
  84. self:sendTextMessage(MESSAGE_INFO_DESCR, description)
  85. end
  86.  
  87. function Player:onLookInBattleList(creature, distance)
  88. local description = 'You see ' .. creature:getDescription(distance)
  89. if self:getGroup():getAccess() then
  90. local str = '%s\nHealth: %d / %d'
  91. if creature:getMaxMana() > 0 then
  92. str = string.format('%s, Mana: %d / %d', str, creature:getMana(), creature:getMaxMana())
  93. end
  94. description = string.format(str, description, creature:getHealth(), creature:getMaxHealth()) .. '.'
  95.  
  96.  
  97.  
  98. local position = creature:getPosition()
  99. description = string.format(
  100. '%s\nPosition: %d, %d, %d',
  101. description, position.x, position.y, position.z
  102. )
  103.  
  104. if creature:isPlayer() then
  105. description = string.format('%s\nIP: %s.', description, Game.convertIpToString(creature:getIp()))
  106. end
  107. end
  108.  
  109.  
  110. -- KD look
  111. if creature:isPlayer() and creature:isCreature() then
  112. description = string.format("%s\n [PVP Kills: %d] \n [PVP Deaths: %d] \n",
  113. description, math.max(0, creature:getStorageValue(167912)), math.max(0, creature:getStorageValue(167913)))
  114. end
  115.  
  116. -- MARRY
  117. if LOOK_MARRIAGE_DESCR and creature:isCreature() then
  118. if creature:isPlayer() then
  119. description = description .. self:getMarriageDescription(creature)
  120. end
  121. end
  122.  
  123. self:sendTextMessage(MESSAGE_INFO_DESCR, description)
  124. end
  125.  
  126. function Player:onLookInTrade(partner, item, distance)
  127. self:sendTextMessage(MESSAGE_INFO_DESCR, 'You see ' .. item:getDescription(distance))
  128. end
  129.  
  130. function Player:onLookInShop(itemType, count)
  131. return true
  132. end
  133.  
  134. function Player:onMoveCreature(creature, fromPosition, toPosition)
  135. return true
  136. end
  137.  
  138. function Player:onTurn(direction)
  139. if self:getGroup():getAccess() and self:getDirection() == direction then
  140. local nextPosition = self:getPosition()
  141. nextPosition:getNextPosition(direction)
  142.  
  143. self:teleportTo(nextPosition, true)
  144. end
  145.  
  146. return true
  147. end
  148.  
  149. function Player:onTradeRequest(target, item)
  150. if isInArray({1738, 1740, 1747, 1748, 1749, 8766}, item.itemid) and item.actionid > 0 or item.actionid == 5640 then
  151. self:sendCancelMessage('Sorry, not possible.')
  152. return false
  153. end
  154. return true
  155. end
  156.  
  157. function Player:onTradeAccept(target, item, targetItem)
  158. return true
  159. end
  160.  
  161. local soulCondition = Condition(CONDITION_SOUL, CONDITIONID_DEFAULT)
  162. soulCondition:setTicks(4 * 60 * 1000)
  163. soulCondition:setParameter(CONDITION_PARAM_SOULGAIN, 1)
  164.  
  165. local function useStamina(player)
  166. local staminaMinutes = player:getStamina()
  167. if staminaMinutes == 0 then
  168. return
  169. end
  170.  
  171. local playerId = player:getId()
  172. local currentTime = os.time()
  173. local timePassed = currentTime - nextUseStaminaTime[playerId]
  174. if timePassed <= 0 then
  175. return
  176. end
  177.  
  178. if timePassed > 60 then
  179. if staminaMinutes > 2 then
  180. staminaMinutes = staminaMinutes - 2
  181. else
  182. staminaMinutes = 0
  183. end
  184. nextUseStaminaTime[playerId] = currentTime + 120
  185. else
  186. staminaMinutes = staminaMinutes - 1
  187. nextUseStaminaTime[playerId] = currentTime + 60
  188. end
  189. player:setStamina(staminaMinutes)
  190. end
  191.  
  192.  
  193. -- exp card
  194. local BONUS_EXP_STORAGE = 61398
  195. local BONUS_EXP_MULT = 1.3
  196. -- exp card
  197.  
  198.  
  199.  
  200. function Player:onGainExperience(source, exp, rawExp)
  201. if not source or source:isPlayer() then
  202. return exp
  203. end
  204.  
  205. -- Soul regeneration
  206. local vocation = self:getVocation()
  207. if self:getSoul() < vocation:getMaxSoul() and exp >= self:getLevel() then
  208. soulCondition:setParameter(CONDITION_PARAM_SOULTICKS, vocation:getSoulGainTicks() * 1000)
  209. self:addCondition(soulCondition)
  210. end
  211.  
  212. -- Apply experience stage multiplier
  213. exp = exp * Game.getExperienceStage(self:getLevel())
  214.  
  215. -- Stamina modifier
  216. if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then
  217. useStamina(self)
  218.  
  219. local staminaMinutes = self:getStamina()
  220. if staminaMinutes > 2400 and self:isPremium() then
  221. exp = exp * 1.5
  222. elseif staminaMinutes <= 840 then
  223. exp = exp * 0.5
  224. end
  225. end
  226.  
  227.  
  228. -- exp card
  229. if self:getStorageValue(BONUS_EXP_STORAGE) - os.time() > 0 then
  230. exp = exp * BONUS_EXP_MULT
  231. end
  232. -- exp card
  233.  
  234. return exp
  235. end
  236.  
  237. function Player:onLoseExperience(exp)
  238. return exp
  239. end
  240.  
  241. function Player:onGainSkillTries(skill, tries)
  242. if APPLY_SKILL_MULTIPLIER == false then
  243. return tries
  244. end
  245.  
  246. if skill == SKILL_MAGLEVEL then
  247. return tries * configManager.getNumber(configKeys.RATE_MAGIC)
  248. end
  249. return tries * configManager.getNumber(configKeys.RATE_SKILL)
  250. end
  251.  
  252. local exhaust = { } -- SSA exhaust
  253. function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder)
  254.  
  255. if toPosition.x == CONTAINER_POSITION and toCylinder and toCylinder:getId() == 26052 then
  256. self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
  257. return false
  258. end
  259.  
  260. --- LIONS ROCK START
  261.  
  262. if self:getStorageValue(lionrock.storages.playerCanDoTasks) - os.time() < 0 then
  263. local p, i = lionrock.positions, lionrock.items
  264. local checkPr = false
  265. if item:getId() == lionrock.items.ruby and toPosition.x == p.ruby.x
  266. and toPosition.y == p.ruby.y and toPosition.z == p.ruby.z then
  267. -- Ruby
  268. self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You place the ruby on the small socket. A red flame begins to burn.")
  269. checkPr = true
  270. if lionrock.taskactive.ruby ~= true then
  271. lionrock.taskactive.ruby = true
  272. end
  273.  
  274. local tile = Tile(p.ruby)
  275. if tile:getItemCountById(i.redflame) < 1 then
  276. Game.createItem(i.redflame, 1, p.ruby)
  277. end
  278. end
  279.  
  280. if item:getId() == lionrock.items.sapphire and toPosition.x == p.sapphire.x
  281. and toPosition.y == p.sapphire.y and toPosition.z == p.sapphire.z then
  282. -- Sapphire
  283. self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You place the sapphire on the small socket. A blue flame begins to burn.")
  284. checkPr = true
  285. if lionrock.taskactive.sapphire ~= true then
  286. lionrock.taskactive.sapphire = true
  287. end
  288.  
  289. local tile = Tile(p.sapphire)
  290. if tile:getItemCountById(i.blueflame) < 1 then
  291. Game.createItem(i.blueflame, 1, p.sapphire)
  292. end
  293. end
  294.  
  295. if item:getId() == lionrock.items.amethyst and toPosition.x == p.amethyst.x
  296. and toPosition.y == p.amethyst.y and toPosition.z == p.amethyst.z then
  297. -- Amethyst
  298. self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You place the topaz on the small socket. A yellow flame begins to burn.")
  299. checkPr = true
  300. if lionrock.taskactive.amethyst ~= true then
  301. lionrock.taskactive.amethyst = true
  302. end
  303.  
  304. local tile = Tile(p.amethyst)
  305. if tile:getItemCountById(i.yellowflame) < 1 then
  306. Game.createItem(i.yellowflame, 1, p.amethyst)
  307. end
  308. end
  309.  
  310. if item:getId() == lionrock.items.topaz and toPosition.x == p.topaz.x
  311. and toPosition.y == p.topaz.y and toPosition.z == p.topaz.z then
  312. -- Topaz
  313. self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You place the amethyst on the small socket. A violet flame begins to burn.")
  314. checkPr = true
  315. if lionrock.taskactive.topaz ~= true then
  316. lionrock.taskactive.topaz = true
  317. end
  318.  
  319. local tile = Tile(p.topaz)
  320. if tile:getItemCountById(i.violetflame) < 1 then
  321. Game.createItem(i.violetflame, 1, p.topaz)
  322. end
  323. end
  324.  
  325. if checkPr == true then
  326. -- Adding the Fountain which gives present
  327. if lionrock.taskactive.ruby == true and lionrock.taskactive.sapphire == true
  328. and lionrock.taskactive.amethyst == true and lionrock.taskactive.topaz == true then
  329.  
  330. local fountain = Game.createItem(i.rewardfountain, 1, { x=33073, y=32300, z=9})
  331. fountain:setActionId(41357)
  332. local stone = Tile({ x=33073, y=32300, z=9}):getItemById(3608)
  333. if stone ~= nil then
  334. stone:remove()
  335. end
  336. self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Something happens at the centre of the room ...");
  337. end
  338.  
  339. -- Removing Item
  340. item:remove(1)
  341. end
  342. end
  343.  
  344. ---- LIONS ROCK END
  345.  
  346.  
  347. if toPosition.x == CONTAINER_POSITION and toPosition.y == CONST_SLOT_NECKLACE and item:getId() == 2197 then
  348. local pid = self:getId()
  349. if exhaust[pid] then
  350. self:sendCancelMessage(RETURNVALUE_YOUAREEXHAUSTED)
  351. return false
  352. else
  353. exhaust[pid] = true
  354. addEvent(function() exhaust[pid] = false end, 2000, pid)
  355. return true
  356. end
  357. end
  358.  
  359. if toPosition.x == CONTAINER_POSITION then
  360. local cid = toPosition.y - 64 -- container id
  361. local container = self:getContainerById(cid)
  362. if not container then
  363. return true
  364. end
  365.  
  366. -- Do not let the player insert items into either the Reward Container or the Reward Chest
  367. local itemId = container:getId()
  368. if itemId == ITEM_REWARD_CONTAINER or itemId == ITEM_REWARD_CHEST then
  369. self:sendCancelMessage('Sorry, not possible.')
  370. return false
  371. end
  372.  
  373. -- store shop
  374. --local itemId = container:getId()
  375. if itemId == 26052 then
  376. self:sendCancelMessage('Sorry, not possible.')
  377. return false
  378. end
  379.  
  380.  
  381. -- The player also shouldn't be able to insert items into the boss corpse
  382. local tile = Tile(container:getPosition())
  383. for _, item in ipairs(tile:getItems() or { }) do
  384. if item:getAttribute(ITEM_ATTRIBUTE_CORPSEOWNER) == 2^31 - 1 and item:getName() == container:getName() then
  385. self:sendCancelMessage('Sorry, not possible.')
  386. return false
  387. end
  388. end
  389. end
  390.  
  391. -- se o de cima não funfar, testar esse debaixo
  392. local tile = Tile(toPosition)
  393. if tile and tile:getItemCount() > 26 then
  394. self:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
  395. return false
  396.  
  397. end
  398.  
  399. -- MOVER PRO TP
  400. if blockTeleportTrashing and toPosition.x ~= CONTAINER_POSITION then
  401. local thing = Tile(toPosition):getItemByType(ITEM_TYPE_TELEPORT)
  402. if thing then
  403. self:sendCancelMessage('Sorry, not possible.')
  404. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  405. return false
  406. end
  407. end
  408.  
  409. -- MOVER PARCEL
  410. if item:getWeight() > 90000 and item:getId() == 2595 then
  411. self:sendCancelMessage('YOU CANNOT MOVE PARCELS TOO HEAVY.')
  412. return false
  413. end
  414.  
  415. --local tile = Tile(toPosition)
  416. if tile and tile:getItemById(21584) then
  417. self:sendCancelMessage('Sorry, not possible.')
  418. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  419. return false
  420. end
  421.  
  422. if item:getId() == 7466 then
  423. self:sendCancelMessage('Sorry, not possible.')
  424. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  425. return false
  426. end
  427.  
  428. --[[if tile and tile:getItemById(370) then
  429. self:sendCancelMessage('Sorry, not possible.')
  430. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  431. return false
  432. end
  433.  
  434. if tile and tile:getItemById(408) then
  435. self:sendCancelMessage('Sorry, not possible.')
  436. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  437. return false
  438. end
  439.  
  440. if tile and tile:getItemById(409) then
  441. self:sendCancelMessage('Sorry, not possible.')
  442. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  443. return false
  444. end
  445.  
  446. if tile and tile:getItemById(410) then
  447. self:sendCancelMessage('Sorry, you can not put items there.')
  448. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  449. return false
  450. end
  451.  
  452. if tile and tile:getItemById(411) then
  453. self:sendCancelMessage('Sorry, not possible.')
  454. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  455. return false
  456. end
  457.  
  458. if tile and tile:getItemById(423) then
  459. self:sendCancelMessage('Sorry, not possible.')
  460. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  461. return false
  462. end
  463.  
  464. if tile and tile:getItemById(427) then
  465. self:sendCancelMessage('Sorry, not possible.')
  466. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  467. return false
  468. end
  469.  
  470. if tile and tile:getItemById(428) then
  471. self:sendCancelMessage('Sorry, not possible.')
  472. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  473. return false
  474. end
  475.  
  476. if tile and tile:getItemById(429) then
  477. self:sendCancelMessage('Sorry, not possible.')
  478. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  479. return false
  480. end
  481.  
  482. if tile and tile:getItemById(432) then
  483. self:sendCancelMessage('Sorry, not possible.')
  484. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  485. return false
  486. end
  487.  
  488. if tile and tile:getItemById(433) then
  489. self:sendCancelMessage('Sorry, not possible.')
  490. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  491. return false
  492. end
  493.  
  494. if tile and tile:getItemById(3135) then
  495. self:sendCancelMessage('Sorry, not possible.')
  496. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  497. return false
  498. end
  499.  
  500. if tile and tile:getItemById(3136) then
  501. self:sendCancelMessage('Sorry, not possible.')
  502. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  503. return false
  504. end
  505.  
  506. if tile and tile:getItemById(3137) then
  507. self:sendCancelMessage('Sorry, not possible.')
  508. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  509. return false
  510. end
  511.  
  512. if tile and tile:getItemById(3138) then
  513. self:sendCancelMessage('Sorry, not possible.')
  514. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  515. return false
  516. end
  517.  
  518. if tile and tile:getItemById(3219) then
  519. self:sendCancelMessage('Sorry, not possible.')
  520. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  521. return false
  522. end
  523.  
  524. if tile and tile:getItemById(3220) then
  525. self:sendCancelMessage('Sorry, not possible.')
  526. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  527. return false
  528. end
  529.  
  530. if tile and tile:getItemById(4834) then
  531. self:sendCancelMessage('Sorry, not possible.')
  532. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  533. return false
  534. end
  535.  
  536. if tile and tile:getItemById(4835) then
  537. self:sendCancelMessage('Sorry, not possible.')
  538. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  539. return false
  540. end
  541.  
  542. if tile and tile:getItemById(4836) then
  543. self:sendCancelMessage('Sorry, not possible.')
  544. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  545. return false
  546. end
  547.  
  548. if tile and tile:getItemById(4837) then
  549. self:sendCancelMessage('Sorry, not possible.')
  550. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  551. return false
  552. end
  553.  
  554. if tile and tile:getItemById(8276) then
  555. self:sendCancelMessage('Sorry, not possible.')
  556. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  557. return false
  558. end
  559.  
  560. if tile and tile:getItemById(8277) then
  561. self:sendCancelMessage('Sorry, not possible.')
  562. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  563. return false
  564. end
  565.  
  566. if tile and tile:getItemById(8279) then
  567. self:sendCancelMessage('Sorry, not possible.')
  568. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  569. return false
  570. end
  571.  
  572. if tile and tile:getItemById(8280) then
  573. self:sendCancelMessage('Sorry, not possible.')
  574. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  575. return false
  576. end
  577.  
  578. if tile and tile:getItemById(8281) then
  579. self:sendCancelMessage('Sorry, not possible.')
  580. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  581. return false
  582. end
  583.  
  584. if tile and tile:getItemById(8282) then
  585. self:sendCancelMessage('Sorry, not possible.')
  586. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  587. return false
  588. end
  589.  
  590. if tile and tile:getItemById(8283) then
  591. self:sendCancelMessage('Sorry, not possible.')
  592. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  593. return false
  594. end
  595.  
  596. if tile and tile:getItemById(8284) then
  597. self:sendCancelMessage('Sorry, not possible.')
  598. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  599. return false
  600. end
  601.  
  602. if tile and tile:getItemById(8285) then
  603. self:sendCancelMessage('Sorry, not possible.')
  604. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  605. return false
  606. end
  607.  
  608. if tile and tile:getItemById(8286) then
  609. self:sendCancelMessage('Sorry, not possible.')
  610. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  611. return false
  612. end
  613.  
  614. if tile and tile:getItemById(9574) then
  615. self:sendCancelMessage('Sorry, not possible.')
  616. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  617. return false
  618. end
  619.  
  620. if tile and tile:getItemById(9606) then
  621. self:sendCancelMessage('Sorry, not possible.')
  622. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  623. return false
  624. end
  625.  
  626. if tile and tile:getItemById(9846) then
  627. self:sendCancelMessage('Sorry, not possible.')
  628. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  629. return false
  630. end
  631.  
  632. if tile and tile:getItemById(1386) then
  633. self:sendCancelMessage('Sorry, not possible.')
  634. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  635. return false
  636. end
  637.  
  638. if tile and tile:getItemById(3678) then
  639. self:sendCancelMessage('Sorry, not possible.')
  640. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  641. return false
  642. end
  643.  
  644. if tile and tile:getItemById(5543) then
  645. self:sendCancelMessage('Sorry, not possible.')
  646. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  647. return false
  648. end
  649.  
  650. if tile and tile:getItemById(8599) then
  651. self:sendCancelMessage('Sorry, not possible.')
  652. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  653. return false
  654. end
  655.  
  656. if tile and tile:getItemById(1385) then
  657. self:sendCancelMessage('Sorry, not possible.')
  658. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  659. return false
  660. end
  661.  
  662. if tile and tile:getItemById(1396) then
  663. self:sendCancelMessage('Sorry, not possible.')
  664. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  665. return false
  666. end
  667.  
  668. if tile and tile:getItemById(5258) then
  669. self:sendCancelMessage('Sorry, not possible.')
  670. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  671. return false
  672. end
  673.  
  674. if tile and tile:getItemById(5259) then
  675. self:sendCancelMessage('Sorry, not possible.')
  676. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  677. return false
  678. end
  679.  
  680. if tile and tile:getItemById(5260) then
  681. self:sendCancelMessage('Sorry, not possible.')
  682. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  683. return false
  684. end
  685.  
  686. if tile and tile:getItemById(3687) then
  687. self:sendCancelMessage('Sorry, not possible.')
  688. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  689. return false
  690. end
  691.  
  692. if tile and tile:getItemById(3688) then
  693. self:sendCancelMessage('Sorry, not possible.')
  694. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  695. return false
  696. end
  697.  
  698. if tile and tile:getItemById(1398) then
  699. self:sendCancelMessage('Sorry, not possible.')
  700. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  701. return false
  702. end
  703.  
  704. if tile and tile:getItemById(1400) then
  705. self:sendCancelMessage('Sorry, not possible.')
  706. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  707. return false
  708. end
  709.  
  710. if tile and tile:getItemById(1402) then
  711. self:sendCancelMessage('Sorry, not possible.')
  712. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  713. return false
  714. end
  715.  
  716. if tile and tile:getItemById(1404) then
  717. self:sendCancelMessage('Sorry, not possible.')
  718. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  719. return false
  720. end
  721.  
  722. if tile and tile:getItemById(3681) then
  723. self:sendCancelMessage('Sorry, not possible.')
  724. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  725. return false
  726. end
  727.  
  728. if tile and tile:getItemById(3685) then
  729. self:sendCancelMessage('Sorry, not possible.')
  730. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  731. return false
  732. end
  733.  
  734. if tile and tile:getItemById(22862) then
  735. self:sendCancelMessage('Sorry, not possible.')
  736. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  737. return false
  738. end
  739.  
  740. if tile and tile:getItemById(22863) then
  741. self:sendCancelMessage('Sorry, not possible.')
  742. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  743. return false
  744. end
  745.  
  746. if tile and tile:getItemById(5691) then
  747. self:sendCancelMessage('Sorry, not possible.')
  748. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  749. return false
  750. end
  751.  
  752. if tile and tile:getItemById(19674) then
  753. self:sendCancelMessage('Sorry, not possible.')
  754. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  755. return false
  756. end
  757.  
  758. if tile and tile:getItemById(19675) then
  759. self:sendCancelMessage('Sorry, not possible.')
  760. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  761. return false
  762. end
  763.  
  764. if tile and tile:getItemById(22864) then
  765. self:sendCancelMessage('Sorry, not possible.')
  766. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  767. return false
  768. end
  769.  
  770. if tile and tile:getItemById(22865) then
  771. self:sendCancelMessage('Sorry, not possible.')
  772. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  773. return false
  774. end
  775.  
  776. if tile and tile:getItemById(22866) then
  777. self:sendCancelMessage('Sorry, not possible.')
  778. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  779. return false
  780. end
  781.  
  782. if tile and tile:getItemById(22867) then
  783. self:sendCancelMessage('Sorry, not possible.')
  784. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  785. return false
  786. end
  787.  
  788. if tile and tile:getItemById(9573) then
  789. self:sendCancelMessage('Sorry, not possible.')
  790. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  791. return false
  792. end
  793.  
  794. if tile and tile:getItemById(1390) then
  795. self:sendCancelMessage('Sorry, not possible.')
  796. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  797. return false
  798. end
  799.  
  800. if tile and tile:getItemById(1392) then
  801. self:sendCancelMessage('Sorry, not possible.')
  802. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  803. return false
  804. end
  805.  
  806. if tile and tile:getItemById(1394) then
  807. self:sendCancelMessage('Sorry, not possible.')
  808. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  809. return false
  810. end
  811.  
  812. if tile and tile:getItemById(1388) then
  813. self:sendCancelMessage('Sorry, not possible.')
  814. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  815. return false
  816. end
  817.  
  818. if tile and tile:getItemById(459) then
  819. self:sendCancelMessage('Sorry, not possible.')
  820. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  821. return false
  822. end
  823.  
  824. if tile and tile:getItemById(383) then
  825. self:sendCancelMessage('Sorry, not possible.')
  826. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  827. return false
  828. end
  829.  
  830. if tile and tile:getItemById(385) then
  831. self:sendCancelMessage('Sorry, not possible.')
  832. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  833. return false
  834. end
  835.  
  836.  
  837. if tile and tile:getItemById(392) then
  838. self:sendCancelMessage('Sorry, not possible.')
  839. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  840. return false
  841. end
  842.  
  843. -----
  844. if tile and tile:getItemById(469) then
  845. self:sendCancelMessage('Sorry, not possible.')
  846. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  847. return false
  848. end
  849.  
  850.  
  851. if tile and tile:getItemById(470) then
  852. self:sendCancelMessage('Sorry, not possible.')
  853. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  854. return false
  855. end
  856.  
  857.  
  858. if tile and tile:getItemById(482) then
  859. self:sendCancelMessage('Sorry, not possible.')
  860. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  861. return false
  862. end
  863.  
  864. if tile and tile:getItemById(484) then
  865. self:sendCancelMessage('Sorry, not possible.')
  866. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  867. return false
  868. end
  869.  
  870.  
  871. if tile and tile:getItemById(485) then
  872. self:sendCancelMessage('Sorry, not possible.')
  873. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  874. return false
  875. end
  876.  
  877.  
  878. if tile and tile:getItemById(489) then
  879. self:sendCancelMessage('Sorry, not possible.')
  880. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  881. return false
  882. end
  883.  
  884. if tile and tile:getItemById(5731) then
  885. self:sendCancelMessage('Sorry, not possible.')
  886. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  887. return false
  888. end
  889.  
  890.  
  891. if tile and tile:getItemById(462) then
  892. self:sendCancelMessage('Sorry, not possible.')
  893. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  894. return false
  895. end
  896.  
  897.  
  898. if tile and tile:getItemById(475) then
  899. self:sendCancelMessage('Sorry, not possible.')
  900. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  901. return false
  902. end
  903.  
  904.  
  905. if tile and tile:getItemById(476) then
  906. self:sendCancelMessage('Sorry, not possible.')
  907. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  908. return false
  909. end
  910.  
  911. if tile and tile:getItemById(479) then
  912. self:sendCancelMessage('Sorry, not possible.')
  913. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  914. return false
  915. end
  916.  
  917. if tile and tile:getItemById(480) then
  918. self:sendCancelMessage('Sorry, not possible.')
  919. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  920. return false
  921. end
  922.  
  923. if tile and tile:getItemById(924) then
  924. self:sendCancelMessage('Sorry, not possible.')
  925. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  926. return false
  927. end
  928.  
  929.  
  930. if tile and tile:getItemById(5081) then
  931. self:sendCancelMessage('Sorry, not possible.')
  932. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  933. return false
  934. end
  935.  
  936. if tile and tile:getItemById(6127) then
  937. self:sendCancelMessage('Sorry, not possible.')
  938. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  939. return false
  940. end
  941.  
  942. if tile and tile:getItemById(6128) then
  943. self:sendCancelMessage('Sorry, not possible.')
  944. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  945. return false
  946. end
  947.  
  948. if tile and tile:getItemById(6129) then
  949. self:sendCancelMessage('Sorry, not possible.')
  950. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  951. return false
  952. end
  953.  
  954.  
  955. if tile and tile:getItemById(6130) then
  956. self:sendCancelMessage('Sorry, not possible.')
  957. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  958. return false
  959. end
  960.  
  961. if tile and tile:getItemById(6173) then
  962. self:sendCancelMessage('Sorry, not possible.')
  963. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  964. return false
  965. end
  966.  
  967. if tile and tile:getItemById(6174) then
  968. self:sendCancelMessage('Sorry, not possible.')
  969. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  970. return false
  971. end
  972.  
  973.  
  974. if tile and tile:getItemById(6917) then
  975. self:sendCancelMessage('Sorry, not possible.')
  976. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  977. return false
  978. end
  979.  
  980.  
  981. if tile and tile:getItemById(6918) then
  982. self:sendCancelMessage('Sorry, not possible.')
  983. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  984. return false
  985. end
  986.  
  987.  
  988. if tile and tile:getItemById(6919) then
  989. self:sendCancelMessage('Sorry, not possible.')
  990. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  991. return false
  992. end
  993.  
  994. if tile and tile:getItemById(6920) then
  995. self:sendCancelMessage('Sorry, not possible.')
  996. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  997. return false
  998. end
  999.  
  1000. if tile and tile:getItemById(6921) then
  1001. self:sendCancelMessage('Sorry, not possible.')
  1002. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1003. return false
  1004. end
  1005.  
  1006.  
  1007. if tile and tile:getItemById(6922) then
  1008. self:sendCancelMessage('Sorry, not possible.')
  1009. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1010. return false
  1011. end
  1012.  
  1013.  
  1014. if tile and tile:getItemById(6923) then
  1015. self:sendCancelMessage('Sorry, not possible.')
  1016. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1017. return false
  1018. end
  1019.  
  1020.  
  1021. if tile and tile:getItemById(6924) then
  1022. self:sendCancelMessage('Sorry, not possible.')
  1023. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1024. return false
  1025. end
  1026.  
  1027.  
  1028. if tile and tile:getItemById(8559) then
  1029. self:sendCancelMessage('Sorry, not possible.')
  1030. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1031. return false
  1032. end
  1033.  
  1034. if tile and tile:getItemById(8560) then
  1035. self:sendCancelMessage('Sorry, not possible.')
  1036. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1037. return false
  1038. end
  1039.  
  1040.  
  1041. if tile and tile:getItemById(8561) then
  1042. self:sendCancelMessage('Sorry, not possible.')
  1043. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1044. return false
  1045. end
  1046.  
  1047. if tile and tile:getItemById(8562) then
  1048. self:sendCancelMessage('Sorry, not possible.')
  1049. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1050. return false
  1051. end
  1052.  
  1053. if tile and tile:getItemById(8563) then
  1054. self:sendCancelMessage('Sorry, not possible.')
  1055. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1056. return false
  1057. end
  1058.  
  1059. if tile and tile:getItemById(8564) then
  1060. self:sendCancelMessage('Sorry, not possible.')
  1061. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1062. return false
  1063. end
  1064.  
  1065. if tile and tile:getItemById(8565) then
  1066. self:sendCancelMessage('Sorry, not possible.')
  1067. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1068. return false
  1069. end
  1070.  
  1071. if tile and tile:getItemById(8566) then
  1072. self:sendCancelMessage('Sorry, not possible.')
  1073. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1074. return false
  1075. end
  1076.  
  1077. if tile and tile:getItemById(6909) then
  1078. self:sendCancelMessage('Sorry, not possible.')
  1079. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1080. return false
  1081. end
  1082.  
  1083. if tile and tile:getItemById(6911) then
  1084. self:sendCancelMessage('Sorry, not possible.')
  1085. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1086. return false
  1087. end
  1088.  
  1089. if tile and tile:getItemById(6913) then
  1090. self:sendCancelMessage('Sorry, not possible.')
  1091. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1092. return false
  1093. end
  1094.  
  1095. if tile and tile:getItemById(6915) then
  1096. self:sendCancelMessage('Sorry, not possible.')
  1097. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1098. return false
  1099. end
  1100.  
  1101. if tile and tile:getItemById(8372) then
  1102. self:sendCancelMessage('Sorry, not possible.')
  1103. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1104. return false
  1105. end
  1106.  
  1107. if tile and tile:getItemById(8374) then
  1108. self:sendCancelMessage('Sorry, not possible.')
  1109. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1110. return false
  1111. end
  1112.  
  1113. if tile and tile:getItemById(8376) then
  1114. self:sendCancelMessage('Sorry, not possible.')
  1115. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1116. return false
  1117. end
  1118.  
  1119. if tile and tile:getItemById(8378) then
  1120. self:sendCancelMessage('Sorry, not possible.')
  1121. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1122. return false
  1123. end
  1124.  
  1125. if tile and tile:getItemById(8595) then
  1126. self:sendCancelMessage('Sorry, not possible.')
  1127. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1128. return false
  1129. end
  1130.  
  1131. if tile and tile:getItemById(8596) then
  1132. self:sendCancelMessage('Sorry, not possible.')
  1133. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1134. return false
  1135. end
  1136.  
  1137. if tile and tile:getItemById(8709) then
  1138. self:sendCancelMessage('Sorry, not possible.')
  1139. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1140. return false
  1141. end
  1142.  
  1143. if tile and tile:getItemById(8715) then
  1144. self:sendCancelMessage('Sorry, not possible.')
  1145. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1146. return false
  1147. end
  1148.  
  1149. if tile and tile:getItemById(8716) then
  1150. self:sendCancelMessage('Sorry, not possible.')
  1151. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1152. return false
  1153. end
  1154.  
  1155. if tile and tile:getItemById(9625) then
  1156. self:sendCancelMessage('Sorry, not possible.')
  1157. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1158. return false
  1159. end
  1160.  
  1161. if tile and tile:getItemById(11123) then
  1162. self:sendCancelMessage('Sorry, not possible.')
  1163. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1164. return false
  1165. end
  1166.  
  1167. if tile and tile:getItemById(12694) then
  1168. self:sendCancelMessage('Sorry, not possible.')
  1169. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1170. return false
  1171. end
  1172.  
  1173. if tile and tile:getItemById(384) then
  1174. self:sendCancelMessage('Sorry, not possible.')
  1175. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1176. return false
  1177. end
  1178.  
  1179. if tile and tile:getItemById(418) then
  1180. self:sendCancelMessage('Sorry, not possible.')
  1181. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1182. return false
  1183. end
  1184.  
  1185. if tile and tile:getItemById(12696) then
  1186. self:sendCancelMessage('Sorry, not possible.')
  1187. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1188. return false
  1189. end
  1190.  
  1191. --------------
  1192.  
  1193.  
  1194. if tile and tile:getItemById(15029) then
  1195. self:sendCancelMessage('Sorry, not possible.')
  1196. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1197. return false
  1198. end
  1199.  
  1200. if tile and tile:getItemById(15030) then
  1201. self:sendCancelMessage('Sorry, not possible.')
  1202. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1203. return false
  1204. end
  1205.  
  1206. if tile and tile:getItemById(15031) then
  1207. self:sendCancelMessage('Sorry, not possible.')
  1208. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1209. return false
  1210. end
  1211.  
  1212. if tile and tile:getItemById(15032) then
  1213. self:sendCancelMessage('Sorry, not possible.')
  1214. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1215. return false
  1216. end
  1217.  
  1218. if tile and tile:getItemById(15033) then
  1219. self:sendCancelMessage('Sorry, not possible.')
  1220. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1221. return false
  1222. end
  1223.  
  1224. if tile and tile:getItemById(15034) then
  1225. self:sendCancelMessage('Sorry, not possible.')
  1226. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1227. return false
  1228. end
  1229.  
  1230. if tile and tile:getItemById(15035) then
  1231. self:sendCancelMessage('Sorry, not possible.')
  1232. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1233. return false
  1234. end
  1235.  
  1236. if tile and tile:getItemById(15036) then
  1237. self:sendCancelMessage('Sorry, not possible.')
  1238. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1239. return false
  1240. end
  1241.  
  1242. if tile and tile:getItemById(15037) then
  1243. self:sendCancelMessage('Sorry, not possible.')
  1244. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1245. return false
  1246. end
  1247.  
  1248. if tile and tile:getItemById(15038) then
  1249. self:sendCancelMessage('Sorry, not possible.')
  1250. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1251. return false
  1252. end
  1253.  
  1254. if tile and tile:getItemById(15039) then
  1255. self:sendCancelMessage('Sorry, not possible.')
  1256. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1257. return false
  1258. end
  1259.  
  1260. if tile and tile:getItemById(15040) then
  1261. self:sendCancelMessage('Sorry, not possible.')
  1262. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1263. return false
  1264. end
  1265.  
  1266. if tile and tile:getItemById(15041) then
  1267. self:sendCancelMessage('Sorry, not possible.')
  1268. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1269. return false
  1270. end
  1271.  
  1272. if tile and tile:getItemById(15042) then
  1273. self:sendCancelMessage('Sorry, not possible.')
  1274. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1275. return false
  1276. end
  1277.  
  1278. if tile and tile:getItemById(15043) then
  1279. self:sendCancelMessage('Sorry, not possible.')
  1280. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1281. return false
  1282. end
  1283.  
  1284. if tile and tile:getItemById(15044) then
  1285. self:sendCancelMessage('Sorry, not possible.')
  1286. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1287. return false
  1288. end
  1289.  
  1290. if tile and tile:getItemById(15045) then
  1291. self:sendCancelMessage('Sorry, not possible.')
  1292. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1293. return false
  1294. end
  1295.  
  1296. if tile and tile:getItemById(15046) then
  1297. self:sendCancelMessage('Sorry, not possible.')
  1298. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1299. return false
  1300. end
  1301.  
  1302. if tile and tile:getItemById(15047) then
  1303. self:sendCancelMessage('Sorry, not possible.')
  1304. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1305. return false
  1306. end
  1307.  
  1308. if tile and tile:getItemById(15048) then
  1309. self:sendCancelMessage('Sorry, not possible.')
  1310. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1311. return false
  1312. end
  1313.  
  1314. if tile and tile:getItemById(15049) then
  1315. self:sendCancelMessage('Sorry, not possible.')
  1316. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1317. return false
  1318. end
  1319.  
  1320. if tile and tile:getItemById(15050) then
  1321. self:sendCancelMessage('Sorry, not possible.')
  1322. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1323. return false
  1324. end
  1325.  
  1326. if tile and tile:getItemById(15051) then
  1327. self:sendCancelMessage('Sorry, not possible.')
  1328. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1329. return false
  1330. end
  1331.  
  1332. if tile and tile:getItemById(15052) then
  1333. self:sendCancelMessage('Sorry, not possible.')
  1334. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1335. return false
  1336. end
  1337.  
  1338. if tile and tile:getItemById(15053) then
  1339. self:sendCancelMessage('Sorry, not possible.')
  1340. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1341. return false
  1342. end
  1343.  
  1344. if tile and tile:getItemById(15054) then
  1345. self:sendCancelMessage('Sorry, not possible.')
  1346. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1347. return false
  1348. end
  1349.  
  1350. if tile and tile:getItemById(15055) then
  1351. self:sendCancelMessage('Sorry, not possible.')
  1352. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1353. return false
  1354. end
  1355.  
  1356. if tile and tile:getItemById(15056) then
  1357. self:sendCancelMessage('Sorry, not possible.')
  1358. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1359. return false
  1360. end
  1361.  
  1362. if tile and tile:getItemById(15057) then
  1363. self:sendCancelMessage('Sorry, not possible.')
  1364. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1365. return false
  1366. end
  1367.  
  1368. if tile and tile:getItemById(15058) then
  1369. self:sendCancelMessage('Sorry, not possible.')
  1370. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1371. return false
  1372. end
  1373.  
  1374. if tile and tile:getItemById(15059) then
  1375. self:sendCancelMessage('Sorry, not possible.')
  1376. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1377. return false
  1378. end
  1379.  
  1380. if tile and tile:getItemById(15060) then
  1381. self:sendCancelMessage('Sorry, not possible.')
  1382. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1383. return false
  1384. end
  1385.  
  1386. if tile and tile:getItemById(15061) then
  1387. self:sendCancelMessage('Sorry, not possible.')
  1388. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1389. return false
  1390. end
  1391.  
  1392. if tile and tile:getItemById(15062) then
  1393. self:sendCancelMessage('Sorry, not possible.')
  1394. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1395. return false
  1396. end
  1397.  
  1398. if tile and tile:getItemById(15063) then
  1399. self:sendCancelMessage('Sorry, not possible.')
  1400. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1401. return false
  1402. end
  1403.  
  1404. if tile and tile:getItemById(15064) then
  1405. self:sendCancelMessage('Sorry, not possible.')
  1406. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1407. return false
  1408. end
  1409.  
  1410. if tile and tile:getItemById(15179) then
  1411. self:sendCancelMessage('Sorry, not possible.')
  1412. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1413. return false
  1414. end
  1415.  
  1416. if tile and tile:getItemById(15181) then
  1417. self:sendCancelMessage('Sorry, not possible.')
  1418. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1419. return false
  1420. end
  1421.  
  1422. if tile and tile:getItemById(15183) then
  1423. self:sendCancelMessage('Sorry, not possible.')
  1424. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1425. return false
  1426. end
  1427.  
  1428. if tile and tile:getItemById(15185) then
  1429. self:sendCancelMessage('Sorry, not possible.')
  1430. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1431. return false
  1432. end
  1433.  
  1434. if tile and tile:getItemById(17557) then
  1435. self:sendCancelMessage('Sorry, not possible.')
  1436. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1437. return false
  1438. end
  1439.  
  1440. if tile and tile:getItemById(17559) then
  1441. self:sendCancelMessage('Sorry, not possible.')
  1442. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1443. return false
  1444. end
  1445.  
  1446. if tile and tile:getItemById(17561) then
  1447. self:sendCancelMessage('Sorry, not possible.')
  1448. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1449. return false
  1450. end
  1451.  
  1452. if tile and tile:getItemById(17563) then
  1453. self:sendCancelMessage('Sorry, not possible.')
  1454. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1455. return false
  1456. end
  1457.  
  1458. if tile and tile:getItemById(17766) then
  1459. self:sendCancelMessage('Sorry, not possible.')
  1460. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1461. return false
  1462. end
  1463.  
  1464. if tile and tile:getItemById(17767) then
  1465. self:sendCancelMessage('Sorry, not possible.')
  1466. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1467. return false
  1468. end
  1469.  
  1470. if tile and tile:getItemById(17768) then
  1471. self:sendCancelMessage('Sorry, not possible.')
  1472. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1473. return false
  1474. end
  1475.  
  1476. if tile and tile:getItemById(18234) then
  1477. self:sendCancelMessage('Sorry, not possible.')
  1478. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1479. return false
  1480. end
  1481.  
  1482. if tile and tile:getItemById(18530) then
  1483. self:sendCancelMessage('Sorry, not possible.')
  1484. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1485. return false
  1486. end
  1487.  
  1488. if tile and tile:getItemById(18531) then
  1489. self:sendCancelMessage('Sorry, not possible.')
  1490. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1491. return false
  1492. end
  1493.  
  1494. if tile and tile:getItemById(18532) then
  1495. self:sendCancelMessage('Sorry, not possible.')
  1496. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1497. return false
  1498. end
  1499.  
  1500. if tile and tile:getItemById(18533) then
  1501. self:sendCancelMessage('Sorry, not possible.')
  1502. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1503. return false
  1504. end
  1505.  
  1506. if tile and tile:getItemById(18534) then
  1507. self:sendCancelMessage('Sorry, not possible.')
  1508. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1509. return false
  1510. end
  1511.  
  1512. if tile and tile:getItemById(18535) then
  1513. self:sendCancelMessage('Sorry, not possible.')
  1514. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1515. return false
  1516. end
  1517.  
  1518. if tile and tile:getItemById(18960) then
  1519. self:sendCancelMessage('Sorry, not possible.')
  1520. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1521. return false
  1522. end
  1523.  
  1524. if tile and tile:getItemById(18962) then
  1525. self:sendCancelMessage('Sorry, not possible.')
  1526. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1527. return false
  1528. end
  1529.  
  1530. if tile and tile:getItemById(18964) then
  1531. self:sendCancelMessage('Sorry, not possible.')
  1532. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1533. return false
  1534. end
  1535.  
  1536. if tile and tile:getItemById(18966) then
  1537. self:sendCancelMessage('Sorry, not possible.')
  1538. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1539. return false
  1540. end
  1541.  
  1542. if tile and tile:getItemById(18968) then
  1543. self:sendCancelMessage('Sorry, not possible.')
  1544. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1545. return false
  1546. end
  1547.  
  1548. if tile and tile:getItemById(18970) then
  1549. self:sendCancelMessage('Sorry, not possible.')
  1550. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1551. return false
  1552. end
  1553.  
  1554. if tile and tile:getItemById(18972) then
  1555. self:sendCancelMessage('Sorry, not possible.')
  1556. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1557. return false
  1558. end
  1559.  
  1560. if tile and tile:getItemById(18974) then
  1561. self:sendCancelMessage('Sorry, not possible.')
  1562. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1563. return false
  1564. end
  1565.  
  1566. if tile and tile:getItemById(19516) then
  1567. self:sendCancelMessage('Sorry, not possible.')
  1568. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1569. return false
  1570. end
  1571.  
  1572. if tile and tile:getItemById(19518) then
  1573. self:sendCancelMessage('Sorry, not possible.')
  1574. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1575. return false
  1576. end
  1577.  
  1578. if tile and tile:getItemById(19519) then
  1579. self:sendCancelMessage('Sorry, not possible.')
  1580. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1581. return false
  1582. end
  1583.  
  1584. if tile and tile:getItemById(20967) then
  1585. self:sendCancelMessage('Sorry, not possible.')
  1586. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1587. return false
  1588. end
  1589.  
  1590. if tile and tile:getItemById(20969) then
  1591. self:sendCancelMessage('Sorry, not possible.')
  1592. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1593. return false
  1594. end
  1595.  
  1596. if tile and tile:getItemById(20971) then
  1597. self:sendCancelMessage('Sorry, not possible.')
  1598. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1599. return false
  1600. end
  1601.  
  1602. if tile and tile:getItemById(20973) then
  1603. self:sendCancelMessage('Sorry, not possible.')
  1604. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1605. return false
  1606. end
  1607.  
  1608. if tile and tile:getItemById(21536) then
  1609. self:sendCancelMessage('Sorry, not possible.')
  1610. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1611. return false
  1612. end
  1613.  
  1614. if tile and tile:getItemById(21552) then
  1615. self:sendCancelMessage('Sorry, not possible.')
  1616. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1617. return false
  1618. end
  1619.  
  1620. if tile and tile:getItemById(21924) then
  1621. self:sendCancelMessage('Sorry, not possible.')
  1622. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1623. return false
  1624. end
  1625.  
  1626. if tile and tile:getItemById(21925) then
  1627. self:sendCancelMessage('Sorry, not possible.')
  1628. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1629. return false
  1630. end
  1631.  
  1632. if tile and tile:getItemById(22587) then
  1633. self:sendCancelMessage('Sorry, not possible.')
  1634. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1635. return false
  1636. end
  1637.  
  1638. if tile and tile:getItemById(22588) then
  1639. self:sendCancelMessage('Sorry, not possible.')
  1640. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1641. return false
  1642. end
  1643.  
  1644. if tile and tile:getItemById(22589) then
  1645. self:sendCancelMessage('Sorry, not possible.')
  1646. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1647. return false
  1648. end
  1649.  
  1650. if tile and tile:getItemById(22590) then
  1651. self:sendCancelMessage('Sorry, not possible.')
  1652. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1653. return false
  1654. end
  1655.  
  1656. if tile and tile:getItemById(22593) then
  1657. self:sendCancelMessage('Sorry, not possible.')
  1658. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1659. return false
  1660. end
  1661.  
  1662. if tile and tile:getItemById(22594) then
  1663. self:sendCancelMessage('Sorry, not possible.')
  1664. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1665. return false
  1666. end
  1667.  
  1668. if tile and tile:getItemById(22595) then
  1669. self:sendCancelMessage('Sorry, not possible.')
  1670. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1671. return false
  1672. end
  1673.  
  1674. if tile and tile:getItemById(22596) then
  1675. self:sendCancelMessage('Sorry, not possible.')
  1676. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1677. return false
  1678. end
  1679.  
  1680. if tile and tile:getItemById(22597) then
  1681. self:sendCancelMessage('Sorry, not possible.')
  1682. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1683. return false
  1684. end
  1685.  
  1686. if tile and tile:getItemById(22859) then
  1687. self:sendCancelMessage('Sorry, not possible.')
  1688. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1689. return false
  1690. end
  1691.  
  1692. if tile and tile:getItemById(22860) then
  1693. self:sendCancelMessage('Sorry, not possible.')
  1694. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1695. return false
  1696. end
  1697.  
  1698.  
  1699. if tile and tile:getItemById(23713) then
  1700. self:sendCancelMessage('Sorry, not possible.')
  1701. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1702. return false
  1703. end
  1704.  
  1705.  
  1706. if tile and tile:getItemById(23715) then
  1707. self:sendCancelMessage('Sorry, not possible.')
  1708. self:getPosition():sendMagicEffect(CONST_ME_POFF)
  1709. return false
  1710. end--]]
  1711.  
  1712.  
  1713.  
  1714. -- Do not let the player move the boss corpse.
  1715. if item:getAttribute(ITEM_ATTRIBUTE_CORPSEOWNER) == 2^31 - 1 then
  1716. self:sendCancelMessage('Sorry, not possible.')
  1717. return false
  1718. end
  1719.  
  1720. return true
  1721. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement