Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. /*
  2. Server Side:
  3.  
  4. /db/import/instance_db.txt
  5. 302,Bloody Branch Room,3600,300,temple,100,98
  6.  
  7. /db/pre(re)/item_db.txt edit it to....
  8. 12103,Bloody_Dead_Branch,Bloody Branch,2,10000,,200,,,,,0xFFFFFFFF,63,2,,,,,,{ .@map$ = getvariableofnpc(.map$, "bbroom"); if ( strcharinfo(3) != instance_mapname(.@map$,instance_id()) ) { dispbottom "You can only use Bloody Brach at Bloody Brach Room", 0xff0000; getitem 12103,1; end; } monster("this",-1,-1,"--ja--",-1-MOBG_Bloody_Dead_Branch,1,""); },{},{}
  9.  
  10. */
  11.  
  12. prontera,163,93,4 script Bloody Branch Room::bbroom 571,{
  13. .@party_id = getcharid(1);
  14. getpartymember getcharid(1),0;
  15. copyarray .@name$[0], $@partymembername$[0], $@partymembercount;
  16.  
  17. if (!.@party_id) {
  18. mes .NPC$;
  19. mes "Create or join a party.";
  20. close;
  21. }
  22. if (.Ins_back == true && getcharid(1) == jura_partyid) {
  23. mes .NPC$;
  24. mes "Instance Generated";
  25. mes "Please enter the instance.";
  26. next;
  27. switch(select("Enter "+.Ins_name$)) {
  28. callsub InsEnter;
  29. }
  30. }
  31. OnMenu:
  32. mes .NPC$;
  33. mes "^ff0000Level Requirement: "+.Ins_level+"^000000";
  34. mes "Min Player: ^0000ff1^000000";
  35. mes "Re-Enter: "+((.Ins_back == true) ?"^00C000YES^000000":"^FF0000NO^000000");
  36. next;
  37. if (BaseLevel < .Ins_level) {
  38. mes .NPC$;
  39. mes "Check level requirements";
  40. close;
  41. }
  42. if (getcharid(0) == getpartyleader(.@party_id,2)) {
  43. mes .NPC$;
  44. mes "Party Name: ^0000ff"+getpartyname(.@party_id)+"^000000";
  45. mes "Party Member List:";
  46. for(.@i = 0; .@i < .@count; .@i++)
  47. mes (.@i + 1)+". ^ff0000"+.@name$[.@i]+"^000000";
  48. next;
  49. switch(select("Generate "+.Ins_name$)) {
  50. instance_create(.Ins_name$);
  51. callsub InsEnter;
  52. }
  53. }
  54. mes .NPC$;
  55. mes "Party Name: ^0000ff"+getpartyname(.@party_id)+"^000000";
  56. mes "Party Member List:";
  57. for(.@i = 0; .@i < .@count; .@i++)
  58. mes (.@i + 1)+". ^ff0000"+.@name$[.@i]+"^000000";
  59. next;
  60. switch(select("Enter "+.Ins_name$)) {
  61. callsub InsEnter;
  62. }
  63. end;
  64.  
  65. InsEnter:
  66. switch(instance_enter(.Ins_name$)) {
  67. case IE_OTHER:
  68. mes .NPC$;
  69. mes " - ^ff0000ERROR^000000 -";
  70. mes "select ^0000ffproperly^000000,";
  71. mes "^0000ffGenerate Instance^000000 first or ^0000ffRe-Party^000000.";
  72. mes "Only ^0000ffParty Leader^000000 can generate instance.";
  73. close;
  74. case IE_NOINSTANCE:
  75. mes .NPC$;
  76. mes " - ^ff0000NO INSTANCE^000000 -";
  77. mes "^0000ffGenerate Instance^000000 first or ^0000ffRe-Party^000000.";
  78. mes "Only ^0000ffParty Leader^000000 can generate instance.";
  79. close;
  80. case IE_NOMEMBER:
  81. mes .NPC$;
  82. mes "Create or join a party first.";
  83. close;
  84. case IE_OK:
  85. mapannounce strnpcinfo(4), strcharinfo(0)+" of the party, "+getpartyname(getcharid(1))+", is entering the instance, "+.Ins_name$+".",bc_map,"0x00ff99",FW_NORMAL,12;
  86. end;
  87. }
  88. end;
  89.  
  90. OnInit:
  91. .NPC$ = "^800080[ BLOODY BRANCH ROOM ]^000000";
  92. .Ins_name$ = "Bloody Branch Room";
  93. .Ins_level = 100;
  94. .Ins_back = true;
  95. end;
  96. }
  97.  
  98. temple,0,0,0 script #hidden_ninja 111,{
  99. OnInstanceInit:
  100. initnpctimer;
  101. end;
  102. OnTimer15000:
  103. stopnpctimer;
  104. mapannounce instance_mapname(strnpcinfo(4),instance_id()), "Bloody Branch Room MVP Drops Card 0.10%", bc_map,"0xff0099";
  105. end;
  106.  
  107. OnInit:
  108. disablenpc strnpcinfo(0);
  109. }
  110.  
  111.  
  112. temple,92,106,4 script Exit#temple 570,{
  113. mes "Do you want to exit the instance?";
  114. next;
  115. if(select("Yes:No")==2) close;
  116. warp "SavePoint",0,0;
  117. end;
  118. }
  119.  
  120. temple mapflag droprate 6:10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement