Jump to content
Sign in to follow this  
AnnieRuru

getserverdef

Recommended Posts

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3525

 

I want this *getserverdef script command in hercules

I used it quite intensively during rathena

now I move here I want to use them again

 

they are just a simple script command that just read a variable from the source code

you guys can add this in an instant

.

.

VAR_VIP_SCRIPT 10VAR_MIN_STORAGE 11
these 2 can be add later

but 0-9 I want them so badly

 

 

EDIT:

https://github.com/HerculesWS/Hercules/blob/master/src/map/chat.h#L24

I change the 20 into 30

struct map_session_data* usersd[30];
this will increase the chat room size limit into 30 players

 

this is useful if making battleground script that use chat room to create a higher amount of battleground team members

is there a way to read this "20" ?

 

oh yes

https://github.com/HerculesWS/Hercules/blob/master/src/map/chat.c#L39

cd->limit = min(limit, ARRAYLENGTH(cd->usersd));
I want this one too

VAR_MAX_CHATSIZE ?

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

I can write this one

http://upaste.me/a73c1057844f2d601

please review

 

tested with

prontera,155,184,5	script	dfjskdfhds	100,{	for ( .@i = 0; .@i <= 12; .@i++ ) {		if ( .@i == 10 || .@i == 11 ) continue;		dispbottom getserverdef(.@i) +"";	}	end;}
VAR_VIP_SCRIPT and VAR_MIN_STORAGE can be add later after you guys done VIP system Edited by AnnieRuru

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.