Advertisement
Guest User

mapper.msdp.bylins.set

a guest
Oct 10th, 2016
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. #var MapOutputWindow 0
  2.  
  3. #action {/^#Connection established\./}
  4. {
  5. #var MapperWorldName $HOSTNAME;
  6. #wclear $MapOutputWindow;
  7. #wname $MapOutputWindow {MSDP Automap - $MapperWorldName};
  8. #message mapper off;
  9. #var PrevVNum 0;
  10. #var CurrentVNum 0;
  11. #var AutoRun 0;
  12. #read maps/$MapperWorldName.msdp.map
  13. }
  14. {automap}
  15. #action {/^#Connection lost\./} {#mapper write maps/$MapperWorldName.msdp.map} {5} {automap}
  16. #action {/^#Connection closed by user\./} {#mapper write maps/$MapperWorldName.msdp.map} {5} {automap}
  17.  
  18. #mapper clear
  19.  
  20. #mapper add direction {вниз,вн,down,d} -1 -1 0 {вверх,вв,up,u}
  21. #mapper add direction {восток,в,east,e} 1 0 0 {запад,з,west,w}
  22. #mapper add direction {север,с,north,n} 0 1 0 {юг,ю,south,s}
  23.  
  24. #mapper add flag {forest} {"} {green}
  25. #mapper add flag {city} {"} {white}
  26. #mapper add flag {inside} {"} {grey}
  27. #mapper add flag {swim water} {~} {blue}
  28. #mapper add flag {no swim water} {~} {light blue}
  29. #mapper add flag {field} {"} {yellow}
  30. #mapper add flag {hills} {^} {brown}
  31. #mapper add flag {mountain} {^} {white}
  32. #mapper add flag {road} {:} {white}
  33. #mapper add flag {stone road} {:} {grey}
  34. #mapper add flag {wild road} {:} {charcoal}
  35. #mapper add flag {flying} {^} {red}
  36.  
  37. #mapper add flag {продавец} {$} {light green}
  38. #mapper add flag {квестер} {@} {yellow}
  39. #mapper add flag {кузнец} {%} {brown}
  40. #mapper add flag {опасно} {!} {light red}
  41. #mapper add flag {учитель} {*} {green}
  42. #mapper add flag {жопа} {Ж} {light red}
  43. #mapper add flag {неисследовано} {?} {brown}
  44.  
  45. #alias redrawMap
  46. {
  47. #wclear $MapOutputWindow;
  48. #mapper print normal header flags exits comment w$MapOutputWindow $MapVNum
  49. }
  50. {automap}
  51. #alias onRoom
  52. {
  53. #mapper add room $MsdpRoomVnum {$MsdpRoomName} {} {$MsdpRoomArea} {} {$MsdpRoomTerrain};
  54. #mapper reset flag $MsdpRoomVnum неисследовано;
  55. #if {$MsdpRoomExitsLength > 0}
  56. {
  57. #loop {1, $MsdpRoomExitsLength}
  58. {
  59. #mapper get id {$MsdpRoomExitsValue%0} ExitVNum;
  60. #if {$ExitVNum == 0}
  61. {
  62. #mapper add room {$MsdpRoomExitsValue%0} {?} {} {} {} {неисследовано}
  63. };
  64. #mapper add exit $MsdpRoomVnum {$MsdpRoomExitsKey%0} {$MsdpRoomExitsValue%0}
  65. }
  66. };
  67. #var PrevVNum {$CurrentVNum};
  68. #var CurrentVNum {$MsdpRoomVnum};
  69. #var MapVNum {$CurrentVNum};
  70. redrawMap;
  71. #if {$AutoRun == 1} {stepAutoRun}
  72. }
  73. {automap}
  74.  
  75. #action TEXT {/^#oob MSDP ROOM/} {onRoom; #drop} {5} {automap}
  76.  
  77. #alias запвых {#mapper add exit $PrevVNum {$COMMAND} $CurrentVNum {};redrawMap} {automap}
  78. #alias здесь
  79. {
  80. #mapper set flag $MapVNum %1;
  81. #strcmp %1 опасно {#mapper set avoidance $MapVNum 100};
  82. #strcmp %1 жопа {#mapper set avoidance $MapVNum 0};
  83. redrawMap
  84. }
  85. {automap}
  86. #alias здесьне {#mapper reset flag $MapVNum %1;redrawMap} {automap}
  87. #alias коммент {#mapper set comment $MapVNum {%%0};redrawMap} {automap}
  88. #alias {/^проход (\w+) (.*)/} {#mapper set pass $MapVNum {%%0} {%%1};redrawMap} {automap}
  89. #alias путьсюда {#mapper path $CurrentVNum $MapVNum} {automap}
  90.  
  91. #alias кближнему
  92. {
  93. #mapper search near $MapVNum flag %1 TargetVNum;
  94. #strcmp {$TargetVNum} 0 {}
  95. {
  96. #var AutoRun 1;
  97. stepAutoRun
  98. }
  99. }
  100. {automap}
  101.  
  102. #alias stepAutoRun
  103. {
  104. #strcmp $CurrentVNum $TargetVNum {#var AutoRun 0};
  105. #if {$AutoRun == 1}
  106. {
  107. #mapper path $CurrentVNum $TargetVNum AutoRunStep;
  108. #strcmp {$AutoRunStep} {}
  109. {
  110. #var AutoRun {0}
  111. }
  112. {
  113. $AutoRunStep
  114. }
  115. }
  116. }
  117. {automap}
  118. #alias бежсюда
  119. {
  120. #var TargetVNum $MapVNum;
  121. #var AutoRun 1;
  122. stepAutoRun
  123. }
  124. {automap}
  125. #alias стопбеж {#var AutoRun 0} {automap}
  126.  
  127. #alias покарте
  128. {
  129. #mapper get exit %1 $MapVNum NextMapVNum;
  130. #if {$NextMapVNum != 0}
  131. {
  132. #var MapVNum $NextMapVNum;
  133. redrawMap
  134. }
  135. }
  136. {automap}
  137.  
  138. #hot {Alt+UP} {покарте север} {automap}
  139. #hot {Alt+LEFT} {покарте запад} {automap}
  140. #hot {Alt+RIGHT} {покарте восток} {automap}
  141. #hot {Alt+DOWN} {покарте юг} {automap}
  142. #hot {Alt+0} {#var MapVNum $CurrentVNum;redrawMap} {automap}
  143.  
  144. #telnet MSDP on
  145. #oob MSDP add ROOM
  146. #message oob ON
  147.  
  148. #group enable automap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement