Dolphin86 Posted April 13, 2022 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 757 Reputation: 17 Joined: 01/07/12 Last Seen: April 27 Share Posted April 13, 2022 (edited) the script consist 2 part that are needed to be modify, generally this is a mining script that @Emistry created back 2000, Part 1 : pvp here is the original script 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: .@item_id = getarg(0, 0); if (.@item_id) { .@countitem = countitem(.@item_id); delitem .@item_id, .@countitem; makeitem .@item_id, .@countitem, @map$, @x, @y; } return; } can someone to modify this as stated below -any player that killed by pvp in that specific map 5% of his 969, 724, 7049 in his inventory goes straight to the attacker inventory, please mark where is the map in the script so that later i can edit and put in my map Part 2 : The Mining Script here is the original script Spoiler prontera,1,1,4 script Sample 4_F_KAFRA1,{ if (countitem(47003)) { .@rate = rand(100); if (.@rate < 5) { .@item_id = 969; } else if (.@rate < 25) { .@item_id = 724; } else if (.@rate < 75) { .@item_id = 7049; } else { // nothing } if (.@item_id) { getitem .@item_id, 1; movenpc strnpcinfo(3), rand(300), rand(300), rand(8); } } end; } prontera,1,1,4 duplicate(Sample) Sample#1 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#2 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#3 4_F_KAFRA1 here are the modification list requested: -Generally the minerals / NPC did spawn but they do spawn at un walkable area too, please make it spawn on walkable area only -player can mine at the same npc for the max of 100 times before it will destroy it self and spawn on other location -player can mine at the mineral/npc 100 time by auto, no need to click multiple times -for each gap of 100 mining time there will be 5 second of waiting thanks.. (^___^)/ Edited April 13, 2022 by Dolphin86 Quote Link to comment Share on other sites More sharing options...
0 Dolphin86 Posted April 14, 2022 Group: Members Topic Count: 280 Topics Per Day: 0.06 Content Count: 757 Reputation: 17 Joined: 01/07/12 Last Seen: April 27 Author Share Posted April 14, 2022 (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: .@item_id = getarg(0, 0); if (.@item_id) { .@countitem = countitem(.@item_id); delitem .@item_id, .@countitem; makeitem .@item_id, .@countitem, @map$, @x, @y; } return; } neko_isle,69,108,4 script Normal Crystal 1288,{ if (countitem(6010)) { .@rate = rand(100); if (.@rate < 1) { .@item_id = 969; } else if (.@rate < 25) { .@item_id = 724; } else if (.@rate < 90) { .@item_id = 7049; } else { // nothing } if (.@item_id) { while(1){ if(.mine == .minemax){ movenpc strnpcinfo(3), rand(300), rand(300), rand(8); end; } progressbar "GREEN",5; getitem .@item_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, 2022 by Dolphin86 Quote Link to comment Share on other sites More sharing options...
Question
Dolphin86
the script consist 2 part that are needed to be modify, generally this is a mining script that @Emistry created back 2000,
Part 1 : pvp
here is the original script
- 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: .@item_id = getarg(0, 0); if (.@item_id) { .@countitem = countitem(.@item_id); delitem .@item_id, .@countitem; makeitem .@item_id, .@countitem, @map$, @x, @y; } return; }
can someone to modify this as stated below
-any player that killed by pvp in that specific map 5% of his 969, 724, 7049 in his inventory goes straight to the attacker inventory, please mark where is the map in the script so that later i can edit and put in my map
Part 2 : The Mining Script
here is the original script
prontera,1,1,4 script Sample 4_F_KAFRA1,{ if (countitem(47003)) { .@rate = rand(100); if (.@rate < 5) { .@item_id = 969; } else if (.@rate < 25) { .@item_id = 724; } else if (.@rate < 75) { .@item_id = 7049; } else { // nothing } if (.@item_id) { getitem .@item_id, 1; movenpc strnpcinfo(3), rand(300), rand(300), rand(8); } } end; } prontera,1,1,4 duplicate(Sample) Sample#1 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#2 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#3 4_F_KAFRA1
here are the modification list requested:
-Generally the minerals / NPC did spawn but they do spawn at un walkable area too, please make it spawn on walkable area only
-player can mine at the same npc for the max of 100 times before it will destroy it self and spawn on other location
-player can mine at the mineral/npc 100 time by auto, no need to click multiple times
-for each gap of 100 mining time there will be 5 second of waiting
thanks.. (^___^)/
Edited by Dolphin86Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.