Jump to content
  • 0

guild member warper


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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;

}

Link to comment
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.   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.

×
×
  • Create New...