skipjack94 Posted November 18, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 44 Reputation: 0 Joined: 08/27/12 Last Seen: November 15, 2024 Share Posted November 18, 2012 can someone help me? i want make a warp for guild like warp 1 just for guild "triplex" warp 2 for guild "ransu" warp 3 for guild "ksiw" warp 4 for guid "Acsow" can someone help me to make a script? Quote Link to comment Share on other sites More sharing options...
Ryokem Posted November 18, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 205 Reputation: 19 Joined: 10/12/12 Last Seen: November 7, 2013 Share Posted November 18, 2012 (edited) 1 warp: <map>,<x>,<y>,<z> script warp_1 45,2,2,{ OnTouch: set .@gid, <value>; //ID of the guild named "triplex"; if( getcharid(2) == .@gid ) warp <to_map>, <to_x>, <to_y>; end; } The other warps are the same, changing the .@gid variable. Also, you can make the same warp portal warping players in different maps based on their curret guild, without creating more warps. <map>,<x>,<y>,<z> script warp_1 45,2,2,{ OnTouch: if( getcharid(2) == <triplex ID> ) warp <to_map>, <to_x>, <to_y>; else if( getcharid(2) == <ransu ID> ) warp <to_map>, <to_x>, <to_y>; // else if( [...] ) end; } Or, more functional: <map>,<x>,<y>,<z> script warp_1 45,2,2,{ OnTouch: for( .@i = 0; .@i < getarraysize(.gid); .@i++ ) { if( getcharid(3) == .gid[.@i] ) { warp .to_map$[.@i], .to_x[.@i], .to_y[.@i]; break; } } end; OnInit: setarray .gid, <triplex ID>, <ransu ID>, <ksiw ID>, <Acsow ID>; setarray .to_map$, "<map 1>", "<map 2>", "<map 3>", "<map 4>"; setarray .to_x, <x 1>, <x 2>, <x 3>, <x 4>; setarray .to_y, <y 1>, <y 2>, <y 3>, <y 4>; } Edited November 18, 2012 by Ryokem Quote Link to comment Share on other sites More sharing options...
skipjack94 Posted November 18, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 44 Reputation: 0 Joined: 08/27/12 Last Seen: November 15, 2024 Author Share Posted November 18, 2012 thx sir but changing .@gid variable? i not understand Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 18, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 hours ago Share Posted November 18, 2012 try this http://pastebin.com/raw.php?i=9HBQxkQk Quote Link to comment Share on other sites More sharing options...
Question
skipjack94
can someone help me?
i want make a warp for guild like warp 1 just for guild "triplex"
warp 2 for guild "ransu"
warp 3 for guild "ksiw"
warp 4 for guid "Acsow"
can someone help me to make a script?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.