Jump to content

MikZ

Members
  • Content Count

    461
  • Joined

  • Last visited

Everything posted by MikZ

  1. Hi! Good day! Updated my Git file and i notice changes in plugin makefile. MYPLUGINS := $(MYPLUGINS) Am i doing this correctly? MYPLUGINS := $(plugin1 plugin2 plugin3) or MYPLUGINS := $(plugin1) $(plugin2) $(plugin3) ?? after compiling my plugin disappears. /sob Please help me. thanks!
  2. Hi Good day! May I request a multi currency Shop like @Emistry but with different function like. select(" Poring Coin", TCG","Hourly"); Case 1: Poring Coin All items are for rent for 7 days Case 2: TCG All items are normal (tradeable) Case 3: Hourly All items are account bind. Wanted to have 1 NPC for all than having separate one per Currency. Is this possible? thanks!
  3. MikZ

    MVP PARTY REWARD

    Good day! Wanted to ask how to make this script to give MVP reward to party within the screen area. - script MVPBadge FAKE_NPC,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 70 ) { if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 30212, 1, .@partymemberaid[ rand( .@c ) ]; //announce "Party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), 0; } else { getitem 30212, 1; //announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), 0; } } end; } Im trying to improvise using the script from mission hunting yet i don't know how. T_T OnNPCKillEvent: if (!getcharid(CHAR_ID_PARTY) || !.Party) { if (!#Mission_Count || !Mission0) end; for (set .@i, 0; .@i<.Quests; set .@i,.@i+1) { if (strmobinfo(1,killedrid) == strmobinfo(1,getd("Mission"+.@i))) { if (getd("Mission"+.@i+"_") < #Mission_Count) { dispbottom "[Hunting Mission] Killed "+(set(getd("Mission"+.@i+"_"),getd("Mission"+.@i+"_")+1))+" of "+#Mission_Count+" "+strmobinfo(1,killedrid)+"."; end; } } } } else if (.Party) { set .@mob, killedrid; getmapxy(.@map1$, .@x1, .@y1, UNITTYPE_PC); getpartymember getcharid(CHAR_ID_PARTY),1; getpartymember getcharid(CHAR_ID_PARTY),2; for(set .@i,0; .@i<$@partymembercount; set .@i,.@i+1) { if (isloggedin($@partymemberaid[.@i], $@partymembercid[.@i])) { attachrid $@partymemberaid[.@i]; if (#Mission_Count && Mission0 && Hp > 0) { getmapxy(.@map2$, .@x2, .@y2, UNITTYPE_PC); if ((.@map1$ == .@map2$ || .Party == 1) && (distance(.@x1,.@y1,.@x2,.@y2) <= 30 || .Party < 3)) { for(set .@j,0; .@j<.Quests; set .@j,.@j+1) { if (strmobinfo(1,.@mob) == strmobinfo(1,getd("Mission"+.@j))) { if (getd("Mission"+.@j+"_") < #Mission_Count) { dispbottom "[Hunting Mission] Killed "+(set(getd("Mission"+.@j+"_"),getd("Mission"+.@j+"_")+1))+" of "+#Mission_Count+" "+strmobinfo(1,.@mob)+"."; break; } } } } } } } } OnInit: set .Party,3; // Party options: 0 (exclude party kills), 1 (include party kills), 2 (same map only), 3 (screen are only)
  4. Good day! May i know where to edit duration effect of poem of bragi skill it only last 10secs. thanks!
  5. thanks, how about the shop?
  6. Good day Hercules master Scripters! May i request your support please. I am trying to make some twist the hunting mission script. I wanted to have getitem poring coin directly to players inventory instead of mission points, as well as change mission points to poring coin in the shop. please help me what to do. this is to allow player to simply trade coins.
  7. MikZ

    Private DeadBranch

    Yes been thinking of that, but i don't know which map. 06guild_01 ~ 08 already in my files. I believe it is related with instancing the map.
  8. Good day! I am using @AnnieRuru private DB from rathena. However I am getting mapindex_name2id: Map " " not found. (attached image) Please help me how to fixed this. Here's the script: //===== rAthena Script ======================================= //= Private MVP & Branch Room //===== By: ================================================== //= AnnieRuru //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= Allows players to rent an MVP room for personal use, //= or for a party or guild. //===== Additional Comments: ================================= //= 1.0 First version, edited. [Euphy] //============================================================ prontera,148,174,5 script Private MVP Room 100,{ mes "[Private MVP Room]"; mes "Please select a private MVP room."; if ( getvariableofnpc( .rentcost, "MVP Summoner" ) ) mes "The cost to rent a room for "+ getvariableofnpc( .timeout, "MVP Summoner" ) +" minutes is "+ callfunc("F_InsertComma", getvariableofnpc( .rentcost, "MVP Summoner" ) ) +" zeny."; else mes "You can only use the room for only "+ getvariableofnpc( .timeout, "MVP Summoner" ) +" minutes."; mes " "; for ( .@i = 1; .@i <= 8; .@i++ ) if ( getvariableofnpc( .renttime[.@i], "MVP Summoner" ) ) mes "Room #"+ .@i +" = "+ .color$[ .type[.@i] ] + .whoinuse$[.@i] +"^000000"; next; .@room = select( "MVP Room 1 ["+ getmapusers("06guild_01") +"]", "MVP Room 2 ["+ getmapusers("06guild_02") +"]", "MVP Room 3 ["+ getmapusers("06guild_03") +"]", "MVP Room 4 ["+ getmapusers("06guild_04") +"]", "MVP Room 5 ["+ getmapusers("06guild_05") +"]", "MVP Room 6 ["+ getmapusers("06guild_06") +"]", "MVP Room 7 ["+ getmapusers("06guild_07") +"]", "MVP Room 8 ["+ getmapusers("06guild_08") +"]"); if ( getvariableofnpc( .renttime[.@room], "MVP Summoner" ) ) { if ( .inuseid[.@room] == getcharid( .type[.@room] ) ) { warp "06guild_0"+ .@room, 0,0; close; } else { mes "[Private MVP Room]"; mes "This room is reserved for "; mes .color$[ .type[.@room] ] + .whoinuse$[.@room] +"^000000."; mes "Please select another."; close; } } mes "[Private MVP Room]"; mes "Reserve this room for..."; next; set .@type, select( "For my party members", "For my guild members", "For personal account use" ); if ( !getcharid(.@type) ) { mes "[Private MVP Room]"; mes "You do not own a "+( ( .@type == 1 )? "Party" : "Guild" )+"."; close; } else if ( Zeny < getvariableofnpc( .rentcost, "MVP Summoner" ) ) { mes "You don't have enough zeny to rent a room."; close; } else if ( getvariableofnpc( .renttime[.@room], "MVP Summoner" ) ) { mes "[Private MVP Room]"; mes "I'm sorry, somebody else has already registered this room faster than you."; close; } for ( .@i = 1; .@i <= 8; .@i++ ) { if ( ( getvariableofnpc( .renttime[.@i], "MVP Summoner" ) ) && .@type == .type[.@i] && getcharid(.@type) == .inuseid[.@i] ) { mes "[Private MVP Room]"; mes "You already rented Room#"+ .@i +". Use that room instead."; close; } } set .type[.@room], .@type; set .inuseid[.@room], getcharid(.@type); set .whoinuse$[.@room], strcharinfo( ( .@type == 3 )? 0 : .@type ); Zeny -= getvariableofnpc( .rentcost, "MVP Summoner" ); warp "06guild_0"+ .@room, 0,0; killmonsterall "06guild_0"+ .@room; donpcevent "MVP Summoner#"+ .@room +"::OnEnterMap"; close; OnInit: .color$[1] = "^EE8800"; // party color .color$[2] = "^70CC11"; // guild color .color$[3] = "^0000FF"; // account color end; } - script MVP Summoner -1,{ mes "[MVP Summoner]"; mes "Time left: " + callfunc( "Time2Str", .renttime[ atoi( strnpcinfo(2) ) ] + .timeout * 60 ); mes "Hi, what can I do for you?"; next; switch ( select(.menu$) ) { case 1: mes "[MVP Summoner]"; if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) { mes "I cannot offer heal service when there are monsters around."; close; } sc_end SC_STONE; sc_end SC_SLOWDOWN; sc_end SC_FREEZE; sc_end SC_SLEEP; sc_end SC_CURSE; sc_end SC_SILENCE; sc_end SC_CONFUSION; sc_end SC_BLIND; sc_end SC_BLEEDING; sc_end SC_DECREASEAGI; sc_end SC_POISON; sc_end SC_HALLUCINATION; sc_end SC_STRIPWEAPON; sc_end SC_STRIPARMOR; sc_end SC_STRIPHELM; sc_end SC_STRIPSHIELD; sc_end SC_CHANGEUNDEAD; sc_end SC_ORCISH; sc_end SC_BERSERK; sc_end SC_SKE; sc_end SC_SWOO; sc_end SC_SKA; percentheal 100,100; specialeffect2 EF_HEAL; mes "You are completely healed."; close; case 2: if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) { mes "[MVP Summoner]"; mes "I cannot summon another MVP when there are monsters around."; close; } else if ( .mvpcost ) { mes "[MVP Summoner]"; mes "The cost to summon an MVP is "+ callfunc( "F_InsertComma", .mvpcost ) +" zeny."; next; set .@menu, select(.mvpid_menu$) -1; mes "[MVP Summoner]"; if ( Zeny < .mvpcost ) { mes "You don't have enough zeny to summon an MVP."; close; } } else { set .@menu, select(.mvpid_menu$) -1; mes "[MVP Summoner]"; } mes "Please get ready."; close2; if ( Zeny < .mvpcost ) end; Zeny -= .mvpcost; monster "this", 0, 0, "--ja--", .mvpid[.@menu], 1, strnpcinfo(3)+"::OnMobDead"; end; case 3: if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) { mes "[MVP Summoner]"; mes "I cannot summon another mini-boss when there are monsters around."; close; } else if ( .bosscost ) { mes "[MVP Summoner]"; mes "The cost to summon a mini-boss is "+ callfunc( "F_InsertComma", .bosscost ) +" zeny."; next; set .@menu, select(.bossid_menu$) -1; mes "[MVP Summoner]"; if ( Zeny < .bosscost ) { mes "You doesn't have enough zeny to summon a mini-boss."; close; } } else { set .@menu, select(.bossid_menu$) -1; mes "[MVP Summoner]"; } mes "Please get ready."; close2; if ( Zeny < .bosscost ) end; Zeny -= .bosscost; monster "this", 0, 0, "--ja--", .bossid[.@menu], 1, strnpcinfo(3)+"::OnMobDead"; end; case 4: if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) > 0 ) { mes "[MVP Summoner]"; mes "I cannot offer this service when there are monsters around."; close; } close2; callshop "MVP room#branch", 1; end; case 5: mes "[MVP Summoner]"; mes "Are you sure you want to leave this room?"; next; if ( select( "Yes:No") == 1 ) warp .respawnmap$, .respawnx, .respawny; close; case 6: mes "[MVP Summoner]"; if ( getmapusers( strcharinfo(3) ) > 1 ) { mes "There are still some players in this room. Make sure you are the last member in this room to use this option."; close; } mes "Are you sure you want to give up this room?"; if ( .rentcost ) mes "You will need to pay again to enter this room."; next; if ( select( "Yes", "No" ) == 2 ) close; awake strnpcinfo(0); end; } close; OnMobDead: end; OnEnterMap: .@id = atoi( strnpcinfo(2) ); .renttime[.@id] = gettimetick(2); sleep .timeout * 60000; mapwarp strnpcinfo(4), .respawnmap$, .respawnx, .respawny; .renttime[.@id] = 0; killmonsterall strnpcinfo(4); end; OnInit: if ( !getstrlen( strnpcinfo(2) ) ) { // Config --------------------------------------------------------------------------------------- // Room rental time, in minutes. // When time runs out, all players inside the room will be kicked out. // Do NOT set this to zero! set .timeout, 60; set .rentcost, 100000; // Zeny cost for renting a room (0 = free) set .mvpcost, 100000; // Zeny cost to summon an MVP (0 = free) set .bosscost, 50000; // Zeny cost to summon a boss monster (0 = free) // Options setting inside MVP room set .@menu[1], 1; // Turn Heal option On/Off set .@menu[2], 1; // Turn MVP Summoning On/Off set .@menu[3], 1; // Turn Mini boss Summoning On/Off set .@menu[4], 0; // Sell items (branches) On/Off (see shop below, before the mapflags) // Respawn point when players leave the room set .respawnmap$, "prontera"; set .respawnx, 150; set .respawny, 174; setarray .mvpid[0], 1511,// Amon Ra 1647,// Assassin Cross Eremes 1785,// Atroce 1630,// Bacsojin 1039,// Baphomet 1874,// Beelzebub 1272,// Dark Lord 1719,// Datale 1046,// Doppelgangger 1389,// Dracula 1112,// Drake 1115,// Eddga 1418,// Evil Snake Lord 1871,// Fallen Bishop 1252,// Garm 1768,// Gloom Under Night 1086,// Golden Thief Bug 1885,// Gopinich 1649,// High Priest Magaleta 1651,// High Wizard Katrinn 1832,// Ifrit 1492,// Incantation Samurai 1734,// Kiel D-01 1251,// Knight of Windstorm 1779,// Ktullanux 1688,// Lady Tanee 1646,// Lord Knight Seyren 1373,// Lord of Death 1147,// Maya 1059,// Mistress 1150,// Moonlight Flower 1087,// Orc Hero 1190,// Orc Lord 1038,// Osiris 1157,// Pharaoh 1159,// Phreeoni 1623,// RSX 0806 1650,// Sniper Shecil 1583,// Tao Gunka 1708,// Thanatos 1312,// Turtle General 1751,// Valkyrie Randgris 1685,// Vesper 1648,// Whitesmith Harword 1917,// Wounded Morroc 1658;// Ygnizem setarray .bossid[0], 1096,// Angeling 1388,// Archangeling 1795,// Bloody Knight 1830,// Bow Guardian 1839,// Byorgue 1309,// Cat O' Nine Tail 1283,// Chimera 1302,// Dark Illusion 1198,// Dark Priest 1582,// Deviling 1091,// Dragon Fly 1093,// Eclipse 1205,// Executioner 1783,// Galion 1592,// Gangster 1120,// Ghostring 1259,// Gryphon 1720,// Hydro 1090,// Mastering 1289,// Maya Purple 1262,// Mutant Dragon 1203,// Mysteltainn 1870,// Necromancer 1295,// Owl Baron 1829,// Sword Guardian 1204,// Tirfing 1089,// Toad 1092,// Vagabond Wolf 1765;// Valkyrie // Config Ends ------------------------------------------------------------------------ if ( !.timeout ) set .timeout, 60; .menu$ = ( .@menu[1] ? "Heal" : "" ) +":" ; .menu$ = .menu$ + ( .@menu[2] ? "Summon MVP" : "" ) +":"; .menu$ = .menu$ + ( .@menu[3] ? "Summon Mini-boss" : "" ) +":"; .menu$ = .menu$ + ( .@menu[4] ? "Buy branches" : "" ) +":"; .menu$ = .menu$ + "Leave this room:Give up this room"; if ( .@menu[2] ) { .@size = getarraysize( .mvpid ); for ( .@i = 0; .@i < .@size; .@i++ ) .mvpid_menu$ = .mvpid_menu$ + getmonsterinfo( .mvpid[.@i], MOB_NAME ) +":"; } if ( .@menu[3] ) { .@size = getarraysize( .bossid ); for ( .@i = 0; .@i < .@size; .@i++ ) .bossid_menu$ = .bossid_menu$ + getmonsterinfo( .bossid[.@i], MOB_NAME ) +":"; } } else { mapannounce strnpcinfo(4), "An administrator has refreshed the server. Please re-register this room.", bc_map; mapwarp strnpcinfo(4), .respawnmap$, .respawnx, .respawny; } end; } - shop MVP room#branch -1,604:100000,12103:1000000 06guild_01,49,49,4 duplicate(MVP Summoner) MVP Summoner#1 116 06guild_02,49,49,4 duplicate(MVP Summoner) MVP Summoner#2 116 06guild_03,49,49,4 duplicate(MVP Summoner) MVP Summoner#3 116 06guild_04,49,49,4 duplicate(MVP Summoner) MVP Summoner#4 116 06guild_05,49,49,4 duplicate(MVP Summoner) MVP Summoner#5 116 06guild_06,49,49,4 duplicate(MVP Summoner) MVP Summoner#6 116 06guild_07,49,49,4 duplicate(MVP Summoner) MVP Summoner#7 116 06guild_08,49,49,4 duplicate(MVP Summoner) MVP Summoner#8 116 06guild_01 mapflag nowarpto 06guild_02 mapflag nowarpto 06guild_03 mapflag nowarpto 06guild_04 mapflag nowarpto 06guild_05 mapflag nowarpto 06guild_06 mapflag nowarpto 06guild_07 mapflag nowarpto 06guild_08 mapflag nowarpto 06guild_01 mapflag nomemo 06guild_02 mapflag nomemo 06guild_03 mapflag nomemo 06guild_04 mapflag nomemo 06guild_05 mapflag nomemo 06guild_06 mapflag nomemo 06guild_07 mapflag nomemo 06guild_08 mapflag nomemo 06guild_01 mapflag noteleport 06guild_02 mapflag noteleport 06guild_03 mapflag noteleport 06guild_04 mapflag noteleport 06guild_05 mapflag noteleport 06guild_06 mapflag noteleport 06guild_07 mapflag noteleport 06guild_08 mapflag noteleport 06guild_01 mapflag nosave SavePoint 06guild_02 mapflag nosave SavePoint 06guild_03 mapflag nosave SavePoint 06guild_04 mapflag nosave SavePoint 06guild_05 mapflag nosave SavePoint 06guild_06 mapflag nosave SavePoint 06guild_07 mapflag nosave SavePoint 06guild_08 mapflag nosave SavePoint 06guild_01 mapflag nopenalty 06guild_02 mapflag nopenalty 06guild_03 mapflag nopenalty 06guild_04 mapflag nopenalty 06guild_05 mapflag nopenalty 06guild_06 mapflag nopenalty 06guild_07 mapflag nopenalty 06guild_08 mapflag nopenalty
  9. Good day! Wanted to know where to edit command list if you type @commands? wanted to edit commands with definition on it. Thank in advance!
  10. Good day! Master Developers, May I request a plugin in for @autoattack with set MAP ZONE. not allowed in PVP and GVG. I requested before to allow @autoattack in specific map was answered/coded by dastgir and this time is the other way around. (Previous Request) Specification: @autoattack will be disabled upon: death @go in town, Specific Maps Like: in PVP room in GVG room WOE Maps With Skill (if possible skills in F11 and F12) Was taken from here by goddamiet Thanks!
  11. MikZ

    Exp Event PUB

    Anyone pleasE?
  12. MikZ

    Exp Event PUB

    Good day! I have Exp event here, I am seeking assistant how to place them in pub. like the ROTD. Wanted to have: OnInit: waitingroom "[Exp Event]:"+.rotd$[.today_Exp]+" ",0; end; Yet i don't know how. please help me. script below. que_temsky,48,136,3 script Rates 4_F_JPNCHIBI,{ if(getgmlevel() >=90) { mes "Change Rate!"; next; switch(select("50X Exp:75X Exp:100x Exp:15X Exp:30X Exp:3X DR:5X DR:10x DR:15X DR:30X DR:NVM")) { case 1: announce "Exp Rate is back to 50x started", bc_all; setbattleflag "base_exp_rate", 5000; setbattleflag "job_exp_rate", 5000; atcommand "@reloadmobdb"; close; break; case 2: announce "75x Exp Rate Event has started", bc_all; setbattleflag "base_exp_rate", 7500; setbattleflag "job_exp_rate", 7500; atcommand "@reloadmobdb"; close; break; case 3: announce "100x Exp Rate Event has started", bc_all; setbattleflag "base_exp_rate", 10000; setbattleflag "job_exp_rate", 10000; atcommand "@reloadmobdb"; close; break; case 4: announce "15x Exp Rate Event has started", bc_all; setbattleflag "base_exp_rate", 1500; setbattleflag "job_exp_rate", 1500; atcommand "@reloadmobdb"; close; break; case 5: announce "120x Exp Rate Event has started", bc_all; setbattleflag "base_exp_rate", 12000; setbattleflag "job_exp_rate", 12000; atcommand "@reloadmobdb"; close; break; case 6: announce "Drop Rate is back to 3x started", bc_all; setbattleflag "item_rate_common", 300; setbattleflag "item_rate_heal", 300; setbattleflag "item_rate_use", 300; setbattleflag "item_rate_equip", 300; setbattleflag "item_rate_equip_boss", 300; atcommand "@reloadmobdb"; close; break; case 7: announce "5x Drop rate Event has started", bc_all; setbattleflag "item_rate_common", 500; setbattleflag "item_rate_heal", 500; setbattleflag "item_rate_use", 500; setbattleflag "item_rate_equip", 500; setbattleflag "item_rate_equip_boss", 500; atcommand "@reloadmobdb"; close; break; case 8: announce "10x Drop rate Event has started", bc_all; setbattleflag "item_rate_common", 1000; setbattleflag "item_rate_heal", 1000; setbattleflag "item_rate_use", 1000; setbattleflag "item_rate_equip", 1000; setbattleflag "item_rate_equip_boss", 1000; atcommand "@reloadmobdb"; close; break; case 9: announce "15x Drop rate Event has started", bc_all; setbattleflag "item_rate_common", 1500; setbattleflag "item_rate_heal", 1500; setbattleflag "item_rate_use", 1500; setbattleflag "item_rate_equip", 1500; setbattleflag "item_rate_equip_boss", 1500; atcommand "@reloadmobdb"; close; break; case 10: announce "30x Drop rate Event has started", bc_all; setbattleflag "item_rate_common", 3000; setbattleflag "item_rate_heal", 3000; setbattleflag "item_rate_use", 3000; setbattleflag "item_rate_equip", 3000; setbattleflag "item_rate_equip_boss", 3000; atcommand "@reloadmobdb"; close; break; case 11: mes "Very well, I shall be here if you change your mind."; close; break; } } }
  13. Good day! Wanted to ask. How to retrieve or reset code if players forgot their code? Is there a way GM can help them? @request plugin from @Dastgir here. Please help me. Thanks!
  14. Good day! May I know if there is a group permission allowing admin 99 to trade the items that has " nodrop: true notrade: true noselltonpc: true nocart: true nogstorage: true nomail: true noauction: true" How? thanks!
  15. MikZ

    No such directory

    Good day! How to make this work? ./login-server.sh has ./login-server ./map-server.sh has ./map-server ./char-server.sh has char-server on script, however when running it says ./login-server, ./map-server and char-server no such directory. what file should i need to run the script? #/bin/sh #Hi my naem is Kirt and I liek anime ulimit -Sc unlimited while [ 2 ] ; do if [ -f .stopserver2 ] ; then echo server marked down >> server-log.txt else echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> start-log.txt ./login-server fi sleep 5 done
  16. Good day Master scripters. Seeking for assistance please. How to set the barricade permanent if I enable them no other command can disable them unless I disable them. I want them to be permanent until I disable them. Scenario is: If I @reloadscript the barricade will disappear. If I restart the server the barricade will disappear too // ============================= /* Novice Barricade: http://herc.ws/board/topic/13730-gate-script-request/ ---------------------------- by: Legend compatible w/: Hercules ---------------------------- Description: * Enables you to activate or deactivate barricades on "new_1-1" map * Can be activated by using "@barricade" command * Visual barricades were added (NPC dummies) */ // ============================= - script request#3 FAKE_NPC,{ OnInit: bindatcmd "barricade",strnpcinfo(3)+"::OnMain",99,99; .npc$ = "[ Barricade Manager ]"; .map$ = "new_1-1"; .checkbarricade = 0; delwall "OnBarricade"; disablenpc "Barricade#1"; disablenpc "Barricade#2"; disablenpc "Barricade#3"; disablenpc "Barricade#4"; end; OnMain: mes .npc$; mes "What would you like to do?"; mes "Status: "+(.checkbarricade? "[ ^28bf00Active^000000 ]":"[ ^777777Inactive^000000 ]"); next; menu (.checkbarricade? "^777777Disable Barricades^000000":"^28bf00Enable Barricades^000000"),L_status, "Nevermind",L_close; L_status: close2; if (!.checkbarricade) { .checkbarricade = 1; dispbottom "Barricades were deployed!"; setwall .map$,68,113,4,4,1,"OnBarricade"; enablenpc "Barricade#1"; enablenpc "Barricade#2"; enablenpc "Barricade#3"; enablenpc "Barricade#4"; end; } .checkbarricade = 0; dispbottom "Barricades were removed!"; delwall "OnBarricade"; disablenpc "Barricade#1"; disablenpc "Barricade#2"; disablenpc "Barricade#3"; disablenpc "Barricade#4"; end; L_close: mes .npc$; mes "Anytime you wish"; close; } // -- NPC Dummies & Duplicates new_1-1,68,113,4 script Barricade#1 BARRICADE,{ end; } new_1-1,68,112,4 duplicate(Barricade#1) Barricade#2 BARRICADE new_1-1,68,111,4 duplicate(Barricade#1) Barricade#3 BARRICADE new_1-1,68,110,4 duplicate(Barricade#1) Barricade#4 BARRICADE Kindly Disregard: SOLVE OnInit: bindatcmd "barricade",strnpcinfo(3)+"::OnMain",99,99; .npc$ = "[ Barricade Manager ]"; .map$ = "new_1-1"; setwall .map$,68,113,4,4,1,"OnBarricade"; end;
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.