Jump to content
  • 0

need some advise for kama script


zaruramen

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/27/15
  • Last Seen:  

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;

}

 

 

 

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

What kind of item do you want to drop on death? Random item from inventory?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/27/15
  • Last Seen:  

yes random alike pvp nightmare.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/27/15
  • Last Seen:  

tested not error but not working. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Are you sure you have the karma system enabled?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/27/15
  • Last Seen:  

yes I use pvp mode2

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

-	script	zaruramenkarma	-1,{
	OnPCDieEvent:
	if (Karma) {
		dispbottom "Your karma is: "+Karma;
		end;
	}
}

Use that to check if you have Karma points.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  08/27/15
  • Last Seen:  

hmmmm I use this script then kill other but it not show my karma point. maybe because my SVN how to fix this? I use SVN 17713.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

It's recommended to use the Git instead of SVN.

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