Jump to content
  • 0

Guild Dungeon Warper


Vincent

Question


  • Group:  Members
  • Topic Count:  130
  • Topics Per Day:  0.03
  • Content Count:  528
  • Reputation:   18
  • Joined:  09/11/12
  • Last Seen:  

Hi,

i looking for a Warper that allows the Member from a Guild who owns a Castel to warp to all Guild doungens.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script Warper_ -1,{

function Disp; function Pick;

.@gid = getcharid(2);

while( .@i < .size_guild && .guild_id[.@i] != .@gid ) .@i++;

if( .@i == .size_guild ) end;

menu "Guild Dungeons",GD;

// ------------------- Functions -------------------

// ~ Array @c[] holds all (x,y) coordinates.

// ~ Use @c[2] EXCEPT when maps begin dynamically

// at 0: use @c[0] and Pick() offset 1.

// --------------------------------------------------

function Disp {

set @menu$,"";

if(getarg(0)=="") {

set @menu$,getarg(1);

return;

}

for(set .@i,getarg(1); .@i<=getarg(2); set .@i,.@i+1)

set @menu$, @menu$+getarg(0)+" "+.@i+":";

return;

}

function Pick {

if(getarg(0)=="") {

set .@i, select(@menu$);

warp getarg(.@i),@c[.@i*2],@c[.@i*2+1];

} else {

set .@i, select(@menu$)-getarg(1,0);

warp getarg(0)+((.@i<10)?"0":"")+.@i,@c[.@i*2],@c[.@i*2+1];

}

getmapxy(lastwarp$,lastwarpx,lastwarpy,0);

close;

}

GD: setarray @c[2],119,93,39,161,50,44,116,45,199,195,200,124;

Disp("","Baldur:Luina:Valkyrie:Britoniah:Arunafeltz:Schwaltzvalt");

Pick("","gld_dun01","gld_dun02","gld_dun03","gld_dun04","arug_dun01","schg_dun01");

OnAgitEnd:

OnAgitEnd2:

OnInit:

sleep 2;

deletearray .guild_id;

.size_guild = query_sql( "SELECT `guild_id` FROM `guild_castle` WHERE `guild_id` != 0", .guild_id );

end;

}

prontera,159,192,4 duplicate(Warper_) Warper#1_ 811

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  130
  • Topics Per Day:  0.03
  • Content Count:  528
  • Reputation:   18
  • Joined:  09/11/12
  • Last Seen:  

Thanks works fine :9

Link to comment
Share on other sites


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

there seems to be a  problem.. coz when i click the npc nothing is happening.....

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

If you don't own any castle, the npc does nothing.

Link to comment
Share on other sites


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

oh.... so that's why!! THX!!

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