KyleEzra

Custom Item bonus Exp Script Help

Recommended Posts

PLEASE HELP ME! i'm thinking of a script that if i use the equipment it has

1% chance to boost the character EXP by 50% for 10 minutes if he killed a

level 75 or higher level monster

I tried several scripts but it failed.

 

Edited by KyleEzra

Share this post


Link to post
Share on other sites
On ‎08‎/‎03‎/‎2018 at 11:16 AM, KyleEzra said:

PLEASE HELP ME! i'm thinking of a script that if i use the equipment it has

1% chance to boost the character EXP by 50% for 10 minutes if he killed a

level 75 or higher level monster

I tried several scripts but it failed.

 

As I reviewed the item_bonus.txt, this is impossible. Unless you have knowledge on programming to create your own item bonus.

Share this post


Link to post
Share on other sites
-	script	sample	-1,{
	
	OnNPCKillEvent:
		if (isequipped(<item_id>)) {
			if (rand(100) < 1) 
				if (getmonsterinfo(killedrid, MOB_LV) >= 75) {
					sc_start SC_EXPBOOST, (600 * 1000), 50;
				}
		}
		end;
}

 

  • Like 1

Share this post


Link to post
Share on other sites
13 hours ago, Emistry said:
-	script	sample	-1,{
	
	OnNPCKillEvent:
		if (isequipped(<item_id>)) {
			if (rand(100) < 1) 
				if (getmonsterinfo(killedrid, MOB_LV) >= 75) {
					sc_start SC_EXPBOOST, (600 * 1000), 50;
				}
		}
		end;
}

 

There you go OP. Emistry at your service :P /heh

Share this post


Link to post
Share on other sites
On 3/31/2018 at 10:27 AM, Emistry said:
-	script	sample	-1,{
	
	OnNPCKillEvent:
		if (isequipped(<item_id>)) {
			if (rand(100) < 1) 
				if (getmonsterinfo(killedrid, MOB_LV) >= 75) {
					sc_start SC_EXPBOOST, (600 * 1000), 50;
				}
		}
		end;
}

 

this one is working perfectly, thanks Emistry

Edited by KyleEzra

Share this post


Link to post
Share on other sites
On 3/31/2018 at 11:52 PM, philfix.sai said:

There you go OP. Emistry at your service :P /heh

yup he saves the day again :D

Share this post


Link to post
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
Reply to this topic...

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