Jump to content
  • 0
Dolphin86

Could someone modify this script for me ?

Question

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

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.