Jump to content
  • 0

Could someone modify this script for me ?


Dolphin86

Question


  • Group:  Members
  • Topic Count:  268
  • Topics Per Day:  0.06
  • Content Count:  736
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

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 by Dolphin86
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  268
  • Topics Per Day:  0.06
  • Content Count:  736
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

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 by Dolphin86
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...