getserverdef

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
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 11these 2 can be add laterbut 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 tooVAR_MAX_CHATSIZE ?

 
Last edited by a moderator:
interesting, I'll check with fellow colleagues to hear their thoughts

 
I can write this one

http://upaste.me/a73c1057844f2d601

please review

tested with

Code:
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
 
Last edited by a moderator:
Back
Top