mrlongshen 22 Posted November 29, 2013 prontera,164,171,4 script Gold Room 10005,{ mes "Do you want to enter Gold Room ?"; mes "This gold room is sponsor by Maybank2u"; menu "Ok",-,"No thanks.",L_No; warp "sakura.gat",0,0; close;OnInit: waitingroom "[ Gold Room ]",0;end;L_No:close;}- script GoldRoom -1,{OnInit: monster "sakura",0,0,"Gold Resident 1",3113,30,"GoldRoom::OnMobKilled"; monster "sakura",0,0,"Gold Resident 2",3142,30,"GoldRoom::OnMobKilled"; monster "sakura",0,0,"Gold Resident 3",3119,30,"GoldRoom::OnMobKilled"; monster "sakura",0,0,"Gold Resident 4",3133,30,"GoldRoom::OnMobKilled"; monster "sakura",0,0,"Gold Resident 5",3122,30,"GoldRoom::OnMobKilled"; end;OnMobKilled: set $@ran, rand(1,3); if ($@ran == 1) getitem 969,1; if ($@ran == 2) getitem 969,2; if ($@ran == 3) getitem 969,5; } can someone take look on this script, why its not automatic respawn the mobs after kill the mobs ? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted November 29, 2013 prontera,164,171,4 script Gold Room 10005,{ mes "Do you want to enter Gold Room ?"; mes "This gold room is sponsor by Maybank2u"; menu "Ok",-,"No thanks.",L_No; close2; warp "sakura.gat",0,0; end;OnInit: waitingroom "[ Gold Room ]",0; end; L_No: close; OnMobKilled: set @ran, rand(1,3); if (@ran == 1) getitem 969,1; else if (@ran == 2) getitem 969,2; else getitem 969,5; end;}sakura,0,0,0,0 monster Gold Resident 1 3113,30,0,0,"Gold Room::OnMobKilled"sakura,0,0,0,0 monster Gold Resident 2 3142,30,0,0,"Gold Room::OnMobKilled"sakura,0,0,0,0 monster Gold Resident 3 3119,30,0,0,"Gold Room::OnMobKilled"sakura,0,0,0,0 monster Gold Resident 4 3133,30,0,0,"Gold Room::OnMobKilled"sakura,0,0,0,0 monster Gold Resident 5 3122,30,0,0,"Gold Room::OnMobKilled" Here you go. 1 mrlongshen reacted to this Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted November 29, 2013 thx bro. now its working Quote Share this post Link to post Share on other sites
can someone take look on this script, why its not automatic respawn the mobs after kill the mobs ?
Share this post
Link to post
Share on other sites