Jump to content
  • 0
Sign in to follow this  
maynard

edit my copy paste script

Question

The script will let a GM send invitation to all player, the player has a choice if he will decline or participate.Its working somehow and you can optimized or change it as much as you want to make it better. The thing I want is, I want it to be an array so that all gm can use this. If you can see it only works to GM Maynard. I want it to be 3 people or more,

GM Maynard,name1,name2,name3,,,,; I will edit the name.

Actually I dont know how to script, I just copy paste part of different script and paste it together.

Im using rathena.

 

- script event_inviter -1,{
OnInit:
bindatcmd "gmevent",strnpcinfo(3)+"::OnTest",10,99;
    end;
 
OnTest:
addrid(0);
.@gm_name$ = "GM maynard";
if( getgmlevel() > 1 || (checkvending() >= 1 || checkchatting() == 1) ){
dispbottom "You really did it :D";
end;
 
}else{
 
mes "^FF0000"+strcharinfo(0)+"^000000,You are being summoned by: ^0000FF" + .@gm_name$;
next;
 
.@i = select("Decline:Warp to GM.");
if (!getcharid(0,.@gm_name$)) {
mes .@gm_name$ + " is not online.";
close;
}
getmapxy(.@map$,.@x,.@y,0,.@gm_name$);
if (.@i == 1)
mes "Ok if you say so";
else
warp .@map$,.@x,.@y;
close;
}
}
  • [*]
Reply [*]Report [*]
 
[*] 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.