Jump to content
  • 0

Increase item effect depending on the number of online guild member.


ran0120

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.04
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/18/23
  • Last Seen:  

I'm trying to create an item for a guild leader in which the effect will be:

+20 MATK per online guild member

 

Here's my current script:

     set .@gid, getcharid(2);
     if ( strcharinfo(0) == getguildmaster(getcharid(2)) ) {
         getguildmember .@gid;
         bonus bMatk,$@guildmembercount*20;
     }
     if ( getcharid(2) == 0 ) {
         end;
     }
         end;

It does work though the value still adds even if the guild members are offline. Is there away to add an online check on this script?

 

Edit: NVM. Made it work. Just added a login check in the item script and a seperate Log In/Log Out Event NPC to equip/unequip the item to refresh it's effect when a guild member logs in or out.

Edited by ran0120
FIXED.
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...