Dolphin86 Posted April 13 Share Posted April 13 (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: [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; } 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)) { [email protected] = rand(100); if ([email protected] < 5) { [email protected]_id = 969; } else if ([email protected] < 25) { [email protected]_id = 724; } else if ([email protected] < 75) { [email protected]_id = 7049; } else { // nothing } if ([email protected]_id) { getitem [email protected]_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 by Dolphin86 Quote Link to comment Share on other sites More sharing options...
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: [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; }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)) { [email protected] = rand(100); if ([email protected] < 5) { [email protected]_id = 969; } else if ([email protected] < 25) { [email protected]_id = 724; } else if ([email protected] < 75) { [email protected]_id = 7049; } else { // nothing } if ([email protected]_id) { getitem [email protected]_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_KAFRA1here 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