Jump to content
  • 0

need some advise for kama script


Question

Posted

hello

 

I search about kama and manner point and dead penalty for 2week I have a little information to write a complete script. I would like to write a script that will check a kama point then if who have a kama point is dead will drop a item alike nightmare pvp . So is possible to write like this? I have already try notting error and it doesn't work.

 

- script deaddrop -1,{

 

 

 

OnPCDieEvent:

if kama >1;

@dropitem random,equip,300

close;

}

 

 

 

 

10 answers to this question

Recommended Posts

Posted

Like this?

-	script	zaruramenkarma	-1,{
	OnPCDieEvent:
	if (Karma) {
		getinventorylist;
		.@item = @inventorylist_id[rand(@inventorylist_count)];
		getmapxy(.@map$,.@mapx,.@mapy,0);
		delitem .@item,1;
		makeitem .@item,1,.@map$,.@mapx+rand(-2,2),.@mapy+rand(-2,2);
		end;
	}
}

Untested

Posted

Like this?

-	script	zaruramenkarma	-1,{
	OnPCDieEvent:
	if (Karma) {
		getinventorylist;
		.@item = @inventorylist_id[rand(@inventorylist_count)];
		getmapxy(.@map$,.@mapx,.@mapy,0);
		delitem .@item,1;
		makeitem .@item,1,.@map$,.@mapx+rand(-2,2),.@mapy+rand(-2,2);
		end;
	}
}

Untested

 

this would do the job but it will remove any refinement/cards on it, try using makeitem2 and delitem2

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...