Jump to content
  • 0

Bonus effect without items tru function script OnPCStatCalcEvent


BabaVoss

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.03
  • Content Count:  79
  • Reputation:   0
  • Joined:  06/17/20
  • Last Seen:  

Hi guys is it possible to make a function script or like onpcloginevent script or OnPCStatCalcEvent script

-	script	agibase	-1,{

OnPCLoginEvent:
	if (readparam(bAgi)>=150) 
	bonus bDelayRate,-90;
	end;
}
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

Use bonus_script instead (See docs -> script_commands). So you can handle it more easily.

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.03
  • Content Count:  79
  • Reputation:   0
  • Joined:  06/17/20
  • Last Seen:  

On 6/6/2023 at 12:15 PM, Start_ said:

Use bonus_script instead (See docs -> script_commands). So you can handle it more easily.

thank you for your reply, I dont want it to be attach on items. Is there other way?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   169
  • Joined:  04/05/13
  • Last Seen:  

It doesn't attached to item. Try it on healer npc.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

OnPCLoginEvent:
	if (readparam(bAgi)>=150) 
		bonus_script "{ bonus bDelayRate,-90; }", 86400, 8;
	end;

 

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