Dolphin86 Posted April 14 Share Posted April 14 (edited) can someone edit this npc so that it will respawn back in the same map instantly and only respawn on walk path area only, and also add special effect refining while progress (mine) and sucsess special effect when get an item, thanks Spoiler - script sample_main -1,{ OnPCDieEvent: if (getmapflag(strnpcinfo(3), mf_pvp)) { getmapxy(@map$, @x, @y, BL_PC); callsub(L_DropItem, 969); callsub(L_DropItem, 724); callsub(L_DropItem, 7049); } end; L_DropItem: [email protected]_id = getarg(0, 0); if ([email protected]_id) { [email protected] = countitem([email protected]_id); delitem [email protected]_id, [email protected]; makeitem [email protected]_id, [email protected], @map$, @x, @y; } return; } neko_isle,69,108,4 script Normal Crystal 1288,{ if (countitem(6010)) { [email protected] = rand(100); if ([email protected] < 1) { [email protected]_id = 969; } else if ([email protected] < 25) { [email protected]_id = 724; } else if ([email protected] < 90) { [email protected]_id = 7049; } else { // nothing } if ([email protected]_id) { while(1){ if(.mine == .minemax){ movenpc strnpcinfo(3), rand(300), rand(300), rand(8); end; } progressbar "GREEN",5; getitem [email protected]_id, 1; .mine++; } } } end; OnInit: .minemax = 100; } //prontera,1,1,4 duplicate(Normal Crystal) Normal Crystal#2 1288 //prontera,1,1,4 duplicate(Normal Crystal) Normal Crystal#3 1288 Edited April 14 by Dolphin86 Quote Link to comment Share on other sites More sharing options...
can someone edit this npc so that it will respawn back in the same map instantly and only respawn on walk path area only, and also add special effect refining while progress (mine) and sucsess special effect when get an item, thanks
- script sample_main -1,{ OnPCDieEvent: if (getmapflag(strnpcinfo(3), mf_pvp)) { getmapxy(@map$, @x, @y, BL_PC); callsub(L_DropItem, 969); callsub(L_DropItem, 724); callsub(L_DropItem, 7049); } end; L_DropItem: [email protected]_id = getarg(0, 0); if ([email protected]_id) { [email protected] = countitem([email protected]_id); delitem [email protected]_id, [email protected]; makeitem [email protected]_id, [email protected], @map$, @x, @y; } return; } neko_isle,69,108,4 script Normal Crystal 1288,{ if (countitem(6010)) { [email protected] = rand(100); if ([email protected] < 1) { [email protected]_id = 969; } else if ([email protected] < 25) { [email protected]_id = 724; } else if ([email protected] < 90) { [email protected]_id = 7049; } else { // nothing } if ([email protected]_id) { while(1){ if(.mine == .minemax){ movenpc strnpcinfo(3), rand(300), rand(300), rand(8); end; } progressbar "GREEN",5; getitem [email protected]_id, 1; .mine++; } } } end; OnInit: .minemax = 100; } //prontera,1,1,4 duplicate(Normal Crystal) Normal Crystal#2 1288 //prontera,1,1,4 duplicate(Normal Crystal) Normal Crystal#3 1288
Edited by Dolphin86Link to comment
Share on other sites