Jump to content
  • 0

Pro devs can help me about loop?


Question

Posted

Hi there,

I have a while loop script in my item. that loop will check every second if the player's map has a mapflag of pvp. if yes it will be taken off.
anyway i did this cause item_noequip does not automatically take off equipment or nullify it if u just hit @pvpon it need to rewarp or manually take off the item in order to take the restriction... anyway the real issue here is 

if all of my player is wearing that item with loop script. will it cause Lag or server failure on my server?

Ty in advance for enlightening me.

5 answers to this question

Recommended Posts

  • 0
Posted

Why not just create a hidden function that will check the players' equipment every X minute(s)? I think that would be better and more effective. 

I already did that. 

and its already working. im just wondering if all of my players are wearing with this loop script to check every seconds. will it cause server issues or lag on my server?

  • 0
Posted

 

Why not just create a hidden function that will check the players' equipment every X minute(s)? I think that would be better and more effective. 

I already did that. 

and its already working. im just wondering if all of my players are wearing with this loop script to check every seconds. will it cause server issues or lag on my server?

 

If there are only few people wearing it, I think that would be fine. I also do not think it will cause lag or any issue to your server. In my server, I have so many hidden functions to check cheaters and random rewards and bonuses and I do not experience any problem (I used to have 850+ players)

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