Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. set #lpc 20
  2. set %d 12
  3. set %Journal #jindex
  4. set %auto 1 ;se volete che lo faccia in automatico di fronte a voi sostituite 0 con 1
  5.  
  6. loop:
  7. if #jindex > %Journal
  8. {
  9. set %Journal %Journal + 1
  10. scanjournal %Journal
  11. if ( you_have_been_knocked_of in #journal || you_fall_off_of_your_mount in #journal ) && #jcolor = 946
  12. {
  13. set %lpc 200
  14. gosub teleport
  15. set %lpc 20
  16. }
  17. }
  18. goto loop
  19.  
  20. sub teleport
  21. ;event exmsg #charid 3 30 ora va
  22. set %ltarget #ltargetid
  23. set %lkind #LTARGETKIND
  24. ; if #AR > 60
  25. ; {
  26. ; event macro 15 14
  27. ; wait 12
  28. ; }
  29. ;event macro 15 21
  30.  
  31. ;wait 1
  32. finditem UTL _C , #backpackid
  33. if #findkind = -1 2
  34. {
  35. event exmsg #charid 3 30 Teleport Finite!!!
  36. return
  37. }
  38. set #lobjectid #findid
  39. event macro 17 0
  40. if ( %auto = 1 )
  41. {
  42. ;event exmsg #charid 3 30 ora anche
  43. target 40
  44. set %x #CHARPOSX
  45. set %y #CHARPOSY
  46. set %z #CHARPOSZ
  47. if #CHARDIR = 0 1 ;N
  48. set %y %y - %d
  49. if #CHARDIR = 1 2 ;NE
  50. set %y %y - %d
  51. set %x %x + %d
  52. if #CHARDIR = 2 1 ;E
  53. set %x %x + %d
  54. if #CHARDIR = 3 2 ;SE
  55. set %x %x + %d
  56. set %y %y + %d
  57. if #CHARDIR = 4 1 ;S
  58. set %y %y + %d
  59. if #CHARDIR = 5 2 ;SW
  60. set %y %y + %d
  61. set %x %x - %d
  62. if #CHARDIR = 6 1 ;W
  63. set %x %x - %d
  64. if #CHARDIR = 7 2 ;WN
  65. set %x %x - %d
  66. set %y %y - %d
  67. set #ltargetx %x
  68. set #ltargety %y
  69. set #ltargetz %z
  70. set #ltargetkind 2
  71. event macro 22 0
  72. }
  73. set #LTARGETKIND %lkind
  74. set #ltargetid %ltarget
  75. set %Journal #jindex
  76. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement