Jump to content
  • 0

guild member warper


Question

Posted (edited)

can i request an npc that when you talk to it. it'll list all the player in your guild. and if no one is in your guild it'll say.


"you don't have guild members"

or if you don't have a guild it'll say

"you don't have a guild"

anyway, after it lists all your guild members it gives you the option of warping to where they are.

after you select the guild member you wan't to see.

if the character is offline it the npc say he is offline otherwise if hes online you warp to his location.

 

ohh..  and  it'll also tell you if your guild member is currently on another of their characters (in the same account of course)

Edited by caspa

1 answer to this question

Recommended Posts

Posted


prontera,155,181,5 script Sample 757,{

.@guild_id = getcharid(2);

if( !.@guild_id ){

mes "You dont have guild.";

}else{

query_sql( "SELECT `account_id`,`char_id`,`online`,`name` FROM `guild_member` WHERE `guild_id`='"+.@guild_id+"'",.@aid,.@cid,.@online,.@name$ );

mes "Select a guild member.";

.@i = select( implode( .@name$,":" ) ) - 1;

if( !.@online[.@i] ){

if( isloggedin( .@aid[.@i] ) ){

mes "He online with other characters..";

}else{

mes "He is offline.";

}

}else{

if( select( "Warp to him","Cancel" ) == 1 ){

getmapxy( .@map$,.@x,.@y,0,.@name$[.@i] );

warp .@map$,.@x,.@y;

}

}

}

close;

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...