Jump to content
  • 0
Sign in to follow this  
Cabrera

Offline invitation script :3

Question

Hey all just wondering if its posibble to invite people to a guild even if he/she is offline?

When the player invited cms online this is the mesage he gets: The guild "xxx" has invited you to join them. To accept type /accept or to reject type /reject along with the guildname.

This should be a mesage in a diferent colour so that the player cn easily see it.

It should not be a pop up coz then ths wld iritate players if too many invitations are sent to them.

The guild name is also required to accept. Example /accept xxx thx guys

ohmy.pnghttp--,,--//rathena.org/board/public/style_emoticons/default/ohmy.png [/url]]

 

(im using rA's mod btw(if it has anything to do with rA's script syntax changes), i fixed all its buggy shit courtesy of the original eamod so i aint got the heart to leave it :P)

Thnx in advance ! Posted this in rA but its practically dead for no reason -_-

 

 

Bump

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

sql table

create table guild_invite (id int(11) unsigned primary key auto_increment,char_id int(11) unsigned,guild_id int(11) unsigned,key (char_id),key (guild_id),unique (char_id,guild_id)) engine = innodb;
source modification

http://upaste.me/648510601a30ea563

 

and the script

http://upaste.me/a50910600302d4ea5

 

 

EDIT: oh wait, 100th post !

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

rAthena isn't dead yet,

but its truth that over here has more helpful scripters (in rA its always answered by same person ...)

 

I think your request probably needs source modification

especially we don't have a script command like *guildjoin .. something like that

 

so you need 3 custom commands

@guildinvite

@guildaccept

@guildreject

 

@guildinvite and @guildreject can simulate with *bindatcmd

but @guildaccept must touch the source at least for having a *guildjoin script command

 

actually ... its much better to write this entirely inside atcommand.c

the problem is, I can write this easily and cope with hercules emulator

but you are using ramod so ... you have to figure out how to convert into ramod

 

 

so ...

you want bindatcmd version or atcommand.c version ?

Share this post


Link to post
Share on other sites
  • 0

rAthena isn't dead yet,

but its truth that over here has more helpful scripters (in rA its always answered by same person ...)

 

I think your request probably needs source modification

especially we don't have a script command like *guildjoin .. something like that

 

so you need 3 custom commands

@guildinvite

@guildaccept

@guildreject

 

@guildinvite and @guildreject can simulate with *bindatcmd

but @guildaccept must touch the source at least for having a *guildjoin script command

 

actually ... its much better to write this entirely inside atcommand.c

the problem is, I can write this easily and cope with hercules emulator

but you are using ramod so ... you have to figure out how to convert into ramod

 

 

so ...

you want bindatcmd version or atcommand.c version ?

Hey again annie! <3, I think bindatcmd is simpler and works on that mod too xD thnx in advance :)

 

The only thing about bindatcmd is the groups.conf doesnt recongnise it but it works ingame. funny lol i donno if its ramods buggy server files or is it the way rA's conf works

a good example is his @joinbg thing

it says [Error] Unidentified @ command. Removing...

But still it works ingame xD

Edited by Cabrera

Share this post


Link to post
Share on other sites
  • 0

 

sql table

create table guild_invite (id int(11) unsigned primary key auto_increment,char_id int(11) unsigned,guild_id int(11) unsigned,key (char_id),key (guild_id),unique (char_id,guild_id)) engine = innodb;
source modification

http://upaste.me/648510601a30ea563

 

and the script

http://upaste.me/a50910600302d4ea5

 

 

EDIT: oh wait, 100th post !

when it comes to source mod im always getting this kind or error... i hope you help me

24gvlzr.jpg

Share this post


Link to post
Share on other sites
  • 0

 

 

sql table

create table guild_invite (id int(11) unsigned primary key auto_increment,char_id int(11) unsigned,guild_id int(11) unsigned,key (char_id),key (guild_id),unique (char_id,guild_id)) engine = innodb;
source modification

http://upaste.me/648510601a30ea563

 

and the script

http://upaste.me/a50910600302d4ea5

 

 

EDIT: oh wait, 100th post !

when it comes to source mod im always getting this kind or error... i hope you help me

24gvlzr.jpg

 

you either didn't applied the patch or compiled the server after it

Share this post


Link to post
Share on other sites
  • 0

i always did ... hmmm is there really a unique (char_id,guild_id:o i miss that THING!!!!!!!!whaaaat.. how to do this unique (char_id,guild_id)?

Share this post


Link to post
Share on other sites
  • 0

 

sql table

create table guild_invite (id int(11) unsigned primary key auto_increment,char_id int(11) unsigned,guild_id int(11) unsigned,key (char_id),key (guild_id),unique (char_id,guild_id)) engine = innodb;
source modification

http://upaste.me/648510601a30ea563

 

and the script

http://upaste.me/a50910600302d4ea5

 

 

EDIT: oh wait, 100th post !

annie.. im having this problem when i use @guildaccept ...here's a screen shot

97jsq9.jpg

Share this post


Link to post
Share on other sites
  • 0

What happen if 2 or more guild invites him? at the same time he is offline ?

Also are the command are available on the person who has invite powers on the guild?

Edited by Wynne

Share this post


Link to post
Share on other sites
  • 0

What happen if 2 or more guild invites him? at the same time he is offline ?

then type @invitelist to show all the guilds that has invited you

.

.

Also are the command are available on the person who has invite powers on the guild?

only @guildinvite available to guild master

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
Answer this question...

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