Jump to content
  • 0

Guild limit script


Fresh prince

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Hello rathena!

Im requesting a script that will check the number of your guild members and if it's over 30 members when entering a castle, you will be warped in prontera saying that "your guild members are over the limit".

Can you please include and array for certain castles like gondul and sacre altar to be restricted only for my request.

Thank you masters!

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  


- query_sql "SELECT `connect_member` FROM `guild` WHERE `guild_id` = '" +getcharid(2)+ "'",.@c;

+ query_sql "SELECT `guild_lv` FROM `guild` WHERE `guild_id` = '" +getcharid(2)+ "'",.@c;

- if ( .@c > 30 ) {

+ if ( .@c > 11 ) {

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   20
  • Joined:  02/05/13
  • Last Seen:  

Prince this topic has already been discussed, Search is your best tutor ever. You can't do it with just script, you need some sql in there too. Check the link for more info.

 

http://rathena.org/board/topic/57869-guild-level-check/

Edited by Shio Devs
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   54
  • Joined:  12/23/12
  • Last Seen:  

You could edit the source to change the max members to 30, unless this is for a one off castle of course.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

A script that contains a sql query i understand that of course.

Your link did not exactly hit home but gave me an idea in how to make one.

I saw the source edit as well but didn't need to go that far. Planned just for an event or so.

Thanks masters for your attention and directions!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

This will check the online member only and if the online members are > 30 then they can't enter the castle : http://pastebin.com/raw.php?i=j716V4Ru

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Sir pats you mean the first 30 can get in but the 31st above will get warp out?

Thanks a lot!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

No it's not. You want it that way? My script will check if online members of your guild is > 30. In the castle or not. If so, all guild members who enters the guild_vs1 will be warped out. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

It it possible tht instead of checking whos online,

It check for the guild level instead like say it should be equal or less than guild level 11. If your guild level is above 11, you will be warp away once you get in. That way the guild was set to 30 people automatically.

The concern about your script master pat is say woe is about to end for example and a guild has been defending a castle for an hour already (30 members) then the last seconds the 31st member logs in O.O

Disaster >.< Thanks master pat!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Sir pats I just tested this it doesn't wok.

 

http://pastebin.com/raw.php?i=j716V4Ru

 

please help

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

don't use query_sql here

use attachrid-on-all-accounts addrid better

[paste=dbdfw23gsxm]

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